]> git.mxchange.org Git - juser-lib.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Tue, 6 Oct 2015 13:39:59 +0000 (15:39 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 6 Oct 2015 13:39:59 +0000 (15:39 +0200)
- renamed exception + added new one
- updated jar
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/juser-core.jar
src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java
src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java

index 30c2eb8281ea781cce326a635f5476b122507439..bacd4604eea1d39d40cef3cc12fc6e84825e17ef 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index 8f5082942e7467a9f54a68030c67932acce2ac88..1f68bda29d1087f18ec8615b2126e3bd8b5e8782 100644 (file)
@@ -18,7 +18,8 @@ package org.mxchange.jusercore.model.register;
 
 import java.io.Serializable;
 import javax.ejb.Remote;
-import org.mxchange.jusercore.exceptions.UserAlreadyRegisteredException;
+import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
+import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
 import org.mxchange.jusercore.model.user.User;
 
 /**
@@ -34,7 +35,8 @@ public interface UserRegistrationSessionBeanRemote extends Serializable {
         * <p>
         * @param user User instance to register
         * @return The fully registered user account
-        * @throws org.mxchange.jusercore.exceptions.UserAlreadyRegisteredException If the user has already been registered
+        * @throws org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException If the user name has already been registered
+        * @throws org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException If the email address has already been registered
         */
-       public User registerUser (final User user) throws UserAlreadyRegisteredException;
+       public User registerUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException;
 }
index a5b944975aa43ec9213f331db40f30bbb23fdd3d..d99c9ce006cf253a7c52d6573841e6d27b43046b 100644 (file)
 package org.mxchange.jusercore.model.user;
 
 import java.io.Serializable;
+import java.util.List;
 import javax.ejb.Remote;
-import org.mxchange.jusercore.exceptions.UserAlreadyRegisteredException;
+import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
+import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
 
 /**
  * An interface for user beans
@@ -37,19 +39,42 @@ public interface UserSessionBeanRemote extends Serializable {
        public User fillUserData (final User user);
 
        /**
-        * Checks if the the given user instance is already registered
+        * Some "getter" for a full user name list
+        *
+        * @return User name list
+        */
+       public List<String> getUserNameList ();
+
+       /**
+        * Some "getter" for a full email address list
+        *
+        * @return User name list
+        */
+       public List<String> getEmailAddressList ();
+
+       /**
+        * Checks if the the given user's name is already registered
+        * <p>
+        * @param user User instance
+        * @return Whether the user is already registered
+        */
+       public boolean isUserNameReqistered (final User user);
+
+       /**
+        * Checks if the the given user's email address is already registered
         * <p>
         * @param user User instance
         * @return Whether the user is already registered
         */
-       public boolean isReqistered (final User user);
+       public boolean isEmailAddressReqistered (final User user);
 
        /**
         * Registers the user.
         * <p>
         * @param user Initial customer instance
         * @return Prepared Customer instance
-        * @throws org.mxchange.jusercore.exceptions.UserAlreadyRegisteredException If the user is already registered.
+        * @throws org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException If the user name is already registered.
+        * @throws org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException If the email address is already registered
         */
-       public User registerUser (final User user) throws UserAlreadyRegisteredException;
+       public User registerUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException;
 }