From 0a27b5f4f6d88e49fee7801f0f66b08b91487710 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 5 Sep 2017 22:17:33 +0200 Subject: [PATCH] Continued: - let's have UserNotFoundException be thrown when the provided user instance was not found by persistence provider MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../jusercore/model/user/UserSessionBeanRemote.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java index 15ede4b..5c223c7 100644 --- a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java @@ -37,7 +37,7 @@ public interface UserSessionBeanRemote extends Serializable { * Updates user's password (must be set encrypted before calling this * method) and records the password change in user's password history. *

- * @param user User instance with updated password + * @param user User instance with updated password * @param baseUrl Base URL for all links *

* @return Password history entry with updated user instance @@ -52,7 +52,7 @@ public interface UserSessionBeanRemote extends Serializable { * Changes the user' account status to CONFIRMED if the status is * UNCONFIRMED, else proper exceptions are thrown. *

- * @param user Unconfirmed user instance + * @param user Unconfirmed user instance * @param baseUrl Base URL *

* @return Updated user instance @@ -120,15 +120,17 @@ public interface UserSessionBeanRemote extends Serializable { * @param user Initial User instance *

* @return Prepared User instance + *

+ * @throws UserNotFoundException If the user was not found */ - User fillUserData (final User user); + User fillUserData (final User user) throws UserNotFoundException; /** * Some "getter" for a full user name list *

* @return User name list */ - List getUserNameList (); + List allUserNames (); /** * Some "getter" for a full email address list -- 2.39.5