]> git.mxchange.org Git - juser-login-lib.git/commitdiff
added business method linkUser()
authorRoland Häder <roland@mxchange.org>
Tue, 26 Apr 2016 14:42:37 +0000 (16:42 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 26 Apr 2016 14:50:07 +0000 (16:50 +0200)
src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java

index e05fb14b7da474c92459c73a26486088c162730a..162af9732dc282e11f422e4b97ea816d94ffc500 100644 (file)
@@ -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
+        * <p>
+        * @param user User instance to
+        * <p>
+        * @return Updated user instance
+        * <p>
+        * @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.
         * <p>
@@ -48,7 +64,8 @@ public interface UserSessionBeanRemote extends Serializable {
         * <p>
         * @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 {
         * <p>
         * @return Updated user instance
         * <p>
-        * @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;