From: Roland Häder Date: Tue, 26 Apr 2016 14:42:37 +0000 (+0200) Subject: added business method linkUser() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e4e5608f4c7ea8985e1e35aee2a6fb7c36672eff;p=juser-login-lib.git added business method linkUser() --- 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;