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