]> git.mxchange.org Git - juser-lib.git/commitdiff
added business method for deleting user instance
authorRoland Häder <roland@mxchange.org>
Mon, 29 Aug 2016 09:25:17 +0000 (11:25 +0200)
committerRoland Häder <roland@mxchange.org>
Mon, 29 Aug 2016 09:45:22 +0000 (11:45 +0200)
src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java

index 2b2ccec04ed49d5c193618a62fa6a652381b2e95..1c25501f3b93371309a660a8403b8f1c5535e8ea 100644 (file)
@@ -33,6 +33,16 @@ import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException;
 @Remote
 public interface AdminUserSessionBeanRemote extends Serializable {
 
+       /**
+        * Deletes given user instance
+        * <p>
+        * @param user User instance to delete
+        * @param userDeleteReason Delete reason
+        * <p>
+        * @throws UserNotFoundException If the user account is not found
+        */
+       void deleteUser (final User user, final String userDeleteReason) throws UserNotFoundException;
+
        /**
         * Locks given user account with given reason
         * <p>