]> git.mxchange.org Git - juser-login-lib.git/commitdiff
added business method linkUser()
authorRoland Haeder <roland@mxchange.org>
Tue, 26 Apr 2016 14:42:37 +0000 (16:42 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 26 Apr 2016 17:10:19 +0000 (19:10 +0200)
lib/juser-core.jar
src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java

index 94a100228dbaa711229cd79e8fffb572411d3443..a77f33a4a57f790f4c9089ae1f0b44dd92a34074 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
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;