From e4e5608f4c7ea8985e1e35aee2a6fb7c36672eff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 26 Apr 2016 16:42:37 +0200 Subject: [PATCH] added business method linkUser() --- .../model/user/UserSessionBeanRemote.java | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java index e05fb14..162af97 100644 --- a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java @@ -31,6 +31,22 @@ import org.mxchange.jusercore.exceptions.UserNotFoundException; @Remote public interface UserSessionBeanRemote extends Serializable { + /** + * Creates the user instance and links it with the set contact instance + *

+ * @param user User instance to + *

+ * @return Updated user instance + *

+ * @throws + * org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException When + * the user name is already used + * @throws + * org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException + * When the email address is already used + */ + User linkUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException; + /** * Updates entiity from given user instance and returns updated instance. *

@@ -48,7 +64,8 @@ public interface UserSessionBeanRemote extends Serializable { *

* @return User instance * - * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the user is not found + * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the + * user is not found */ User findUserById (final Long userId) throws UserNotFoundException; @@ -59,8 +76,12 @@ public interface UserSessionBeanRemote extends Serializable { *

* @return Updated user instance *

- * @throws org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException When the user name is already used - * @throws org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException When the email address is already used + * @throws + * org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException When + * the user name is already used + * @throws + * org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException + * When the email address is already used */ User addUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException; -- 2.39.5