]> git.mxchange.org Git - juser-lib.git/commitdiff
added business method for checking user name existence
authorRoland Häder <roland@mxchange.org>
Thu, 21 Apr 2016 13:41:45 +0000 (15:41 +0200)
committerRoland Häder <roland@mxchange.org>
Thu, 21 Apr 2016 13:41:45 +0000 (15:41 +0200)
src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java

index 7065957526c315e05d0c3579ae32932b643ffe03..80a55f52d8a9e85f640cedbfd4aa0fa9c68e9113 100644 (file)
@@ -48,7 +48,9 @@ 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 +61,22 @@ 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;
 
@@ -119,6 +135,15 @@ public interface UserSessionBeanRemote extends Serializable {
         */
        boolean ifUserIdExists (final Long userId);
 
+       /**
+        * Checks if given user name is already used
+        * <p>
+        * @param userName User name to check
+        * <p>
+        * @return Whether given user name is found
+        */
+       boolean ifUserNameExists (final String userName);
+
        /**
         * Checks if given user exists
         * <p>