]> git.mxchange.org Git - juser-activity-lib.git/commitdiff
added business method unlockUserAccount()
authorRoland Häder <roland@mxchange.org>
Fri, 5 Aug 2016 14:27:19 +0000 (16:27 +0200)
committerRoland Häder <roland@mxchange.org>
Fri, 5 Aug 2016 14:27:19 +0000 (16:27 +0200)
src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java

index 4c93085170cc61ffc84276d23058880160c5cbd4..1f9294401028439681ad775e190e600912aaa597 100644 (file)
@@ -21,6 +21,7 @@ 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.UserStatusConfirmedException;
 import org.mxchange.jusercore.exceptions.UserStatusLockedException;
 import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException;
 
@@ -45,6 +46,18 @@ public interface AdminUserSessionBeanRemote extends Serializable {
         */
        void lockUserAccount (final User user, final String userLockReason, final String baseUrl) throws UserStatusLockedException, UserStatusUnconfirmedException, UserNotFoundException;
 
+       /**
+        * Unlocks given user account
+        * <p>
+        * @param user User account to be unlocked, must be status LOCKED
+        * @param baseUrl Base URL for all URLs
+        * <p>
+        * @throws UserStatusConfirmedException The account is already locked
+        * @throws UserStatusUnconfirmedException The account is not confirmed
+        * @throws UserNotFoundException The user account is not found
+        */
+       void unlockUserAccount (final User user, final String baseUrl) throws UserStatusConfirmedException, UserStatusUnconfirmedException, UserNotFoundException;
+
        /**
         * Creates the user instance and links it with the set contact instance
         * <p>