From: Roland Haeder Date: Tue, 6 Oct 2015 13:39:59 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d47ec497dbc4354b6c78c70af8726b0dfdce460;p=juser-login-lib.git Continued: - renamed exception + added new one - updated jar Signed-off-by:Roland Häder --- diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 30c2eb8..bacd460 100644 Binary files a/lib/juser-core.jar and b/lib/juser-core.jar differ diff --git a/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java b/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java index 8f50829..1f68bda 100644 --- a/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java @@ -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 { *

* @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; } diff --git a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java index a5b9449..d99c9ce 100644 --- a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java @@ -17,8 +17,10 @@ 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 getUserNameList (); + + /** + * Some "getter" for a full email address list + * + * @return User name list + */ + public List getEmailAddressList (); + + /** + * Checks if the the given user's name is already registered + *

+ * @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 *

* @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. *

* @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; }