]> git.mxchange.org Git - juser-lib.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Wed, 7 Oct 2015 10:05:09 +0000 (12:05 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 7 Oct 2015 11:19:04 +0000 (13:19 +0200)
- added methods for checking user name and email address
- renamed loginUser() to validateUserAccountStatus()
- removed registerUser() as this bean is not doing registrations
- updated jars
Signed-off-by:Roland Häder <roland@mxchange.org>

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

index fb01a7a3244d1f8ae8e23b1a930e03628f4e4ed8..cc3731c80a7e0f7cd3fb40011743ea015d4e3d38 100644 (file)
Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ
index 1ddcce09c7879b7c45f4ecefd21cf6f4e3ee7efa..1bd74cbcc50b43a792d4c17642bcff932d3ff9f8 100644 (file)
@@ -32,12 +32,13 @@ import org.mxchange.jusercore.model.user.User;
 public interface UserLoginSessionBeanRemote extends Serializable {
 
        /**
-        * Registers given user data, if not yet found
+        * Validates if the user is a confirmed account and returns the full user instance
         * <p>
         * @param user User instance to register
+        * @return Full confirmed user account
         * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the user account was not found
         * @throws org.mxchange.jusercore.exceptions.UserStatusLockedException If the user account is locked
         * @throws org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException If the user account is unconfirmed
         */
-       public void loginUser (final User user) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException;
+       public User validateUserAccountStatus (final User user) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException;
 }
index 1f68bda29d1087f18ec8615b2126e3bd8b5e8782..f03fab6e88627972dd262da2cb288ead724c40d8 100644 (file)
@@ -39,4 +39,20 @@ public interface UserRegistrationSessionBeanRemote extends Serializable {
         * @throws org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException If the email address has already been registered
         */
        public User registerUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException;
+
+       /**
+        * Checks if the user's name is already registered
+        *
+        * @param user User instance to check
+        * @return Whether the user's name has already been registered
+        */
+       public boolean isUserNameRegistered (final User user);
+
+       /**
+        * Checks if the user's email address is already registered
+        *
+        * @param user User instance to check
+        * @return Whether the user's email address has already been registered
+        */
+       public boolean isEmailAddressRegistered (final User user);
 }
index ebae0b49bbb56ac8954932c561acc297a7ae0876..ed4725649fbc78191f8bc15aaf99db9e6f952077 100644 (file)
@@ -19,8 +19,6 @@ package org.mxchange.jusercore.model.user;
 import java.io.Serializable;
 import java.util.List;
 import javax.ejb.Remote;
-import org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException;
-import org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException;
 
 /**
  * An interface for user beans
@@ -40,14 +38,14 @@ public interface UserSessionBeanRemote extends Serializable {
 
        /**
         * Some "getter" for a full user name list
-        *
+        * <p>
         * @return User name list
         */
        public List<String> getUserNameList ();
 
        /**
         * Some "getter" for a full email address list
-        *
+        * <p>
         * @return User name list
         */
        public List<String> getEmailAddressList ();
@@ -67,14 +65,4 @@ public interface UserSessionBeanRemote extends Serializable {
         * @return Whether the user is already registered
         */
        public boolean isEmailAddressReqistered (final User user);
-
-       /**
-        * Registers the user.
-        * <p>
-        * @param user Initial customer instance
-        * @return Prepared Customer instance
-        * @throws org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException If the user's user name is already registered.
-        * @throws org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException If the user's email address is already registered.
-        */
-       public User registerUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException;
 }