From 30d95dad4a69d7ddfe40e8e47c7ab15829c3f4b5 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Roland=20H=C3=A4der?= <roland@mxchange.org>
Date: Fri, 5 Aug 2016 14:54:27 +0200
Subject: [PATCH] added remote business method for locking user accouints
 (please cherry-pick this)

---
 .../model/user/AdminUserSessionBeanRemote.java    | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java
index 1b2a926..5062d8b 100644
--- a/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java
+++ b/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java
@@ -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>
-- 
2.39.5