]> git.mxchange.org Git - juser-lib.git/commitdiff
added new business method confirmAccount() for account confirmation ...
authorRoland Häder <roland@mxchange.org>
Thu, 19 May 2016 10:51:56 +0000 (12:51 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 19 May 2016 10:51:56 +0000 (12:51 +0200)
src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java

index e2a65ab190fcc5e247498b5c68799c8ad758cb4c..c739151f739ad78c0fc5a6b5d5469581a8a1d370 100644 (file)
@@ -22,6 +22,8 @@ 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;
 
 /**
  * An interface for user beans
@@ -31,6 +33,20 @@ import org.mxchange.jusercore.exceptions.UserNotFoundException;
 @Remote
 public interface UserSessionBeanRemote extends Serializable {
 
+       /**
+        * Changes the user' account status to CONFIRMED if the status is
+        * UNCONFIRMED, else propper exceptions are thrown.
+        * <p>
+        * @param user Unconfirmed user instance
+        * @param baseUrl Base URL
+        * <p>
+        * @return Updated user instance
+        * <p>
+        * @throws UserStatusConfirmedException If the user account is confirmed
+        * @throws UserStatusLockedException If the user account is locked
+        */
+       User confirmAccount (final User user, final String baseUrl) throws UserStatusConfirmedException, UserStatusLockedException;
+
        /**
         * Generates random user name that is available.
         * <p>