From: Roland Haeder 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=0ae9a2b376b2e9ff872a3ef04bde84f31b47ecc6;p=juser-login-lib.git added business method linkUser() --- diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 94a1002..a77f33a 100644 Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ 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;