]> git.mxchange.org Git - juser-lib.git/commitdiff
added remote business method for locking user accouints (please cherry-pick this)
authorRoland Häder <roland@mxchange.org>
Fri, 5 Aug 2016 12:54:27 +0000 (14:54 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 5 Aug 2016 12:54:27 +0000 (14:54 +0200)
src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java

index 1b2a926df0f6c92105302cb76f6c5ecea87316c4..5062d8b9599cd42d0c5a7c9b4437397d0e53d796 100644 (file)
@@ -20,6 +20,9 @@ import java.io.Serializable;
 import javax.ejb.Remote;
 import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
 import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
+import org.mxchange.jusercore.exceptions.UserNotFoundException;
+import org.mxchange.jusercore.exceptions.UserStatusLockedException;
+import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException;
 
 /**
  * An interface for administrative user beans
@@ -29,6 +32,18 @@ import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
 @Remote
 public interface AdminUserSessionBeanRemote extends Serializable {
 
+       /**
+        * Locks given user account with given reason
+        * <p>
+        * @param user User account to be locked, must be status CONFIRMED
+        * @param userLockReason Lock reason
+        * <p>
+        * @throws UserStatusLockedException The account is already locked
+        * @throws UserStatusUnconfirmedException The account is not confirmed
+        * @throws UserNotFoundException The user account is not found
+        */
+       void lockUserAccount (final User user, final String userLockReason) throws UserStatusLockedException, UserStatusUnconfirmedException, UserNotFoundException;
+
        /**
         * Creates the user instance and links it with the set contact instance
         * <p>