From: Roland Häder Date: Fri, 5 Aug 2016 14:27:19 +0000 (+0200) Subject: added business method unlockUserAccount() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f03a6e291dceea907da093c0d8884bc219dbc6c;p=juser-lib.git added business method unlockUserAccount() --- diff --git a/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java index 4c93085..1f92944 100644 --- a/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java @@ -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 + *

+ * @param user User account to be unlocked, must be status LOCKED + * @param baseUrl Base URL for all URLs + *

+ * @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 *