From 693a5fd44d00d73e9a9ad2541f4c76e166993e62 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 7 Oct 2015 12:05:09 +0200 Subject: [PATCH] =?utf8?q?Continued:=20-=20added=20methods=20for=20checkin?= =?utf8?q?g=20user=20name=20and=20email=20address=20-=20renamed=20loginUse?= =?utf8?q?r()=20to=20validateUserAccountStatus()=20-=20removed=20registerU?= =?utf8?q?ser()=20as=20this=20bean=20is=20not=20doing=20registrations=20-?= =?utf8?q?=20updated=20jars=20Signed-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/juser-core.jar | Bin 15206 -> 16582 bytes .../login/UserLoginSessionBeanRemote.java | 5 +++-- .../UserRegistrationSessionBeanRemote.java | 16 ++++++++++++++++ .../model/user/UserSessionBeanRemote.java | 16 ++-------------- 4 files changed, 21 insertions(+), 16 deletions(-) diff --git a/lib/juser-core.jar b/lib/juser-core.jar index fb01a7a3244d1f8ae8e23b1a930e03628f4e4ed8..cc3731c80a7e0f7cd3fb40011743ea015d4e3d38 100644 GIT binary patch delta 3791 zcmbVPYfN0%5uS5**)_{$fn`~q#@Lw0vf#z$jbmdB7=wWl+t`WS6t0&W41ry;yI{Lb zx*-qe(dL0q8@Fnu_<{2yY8^);3Q4OYg(*XU@!b=AJWW?w#3>=Y%?V$YOO6Z6fNKm{+~Z!HM~%iwfvpm2mqHFIu@- z)N%Kz@X8T)+PXRNf@m?v_Hvi5bY=BSba&q+`q#e&5kDPL6J@SWEvg;Xr*$pbKOULV zqJh)$r_MYz*FhF?+bPFR9{G{Sn^|*xbK#zp-wCokFdiI_?v=OF^W@F6CebEuS@PI_ z`TeH4&Ia`9=y)i&TabN9k3_UFU1sIyHad=kX2Jpe!1$ytsN{c4+%cieYAU6YL(m?X zmAWk%;HTVMVziYMKqeAYKvqgYZv&^09h6`LXwx9s3z>r6R^@x2#5;zLiq>IB%P_N? z(!qO7Epk!@IOt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lnc~LMpXLmHOf?slaK*iN?=#n5v2FPo z0KVnl!rT?BtZm*dFImdvy(X8Td`9a|`85>z>0Q=DzcBZoO;CP_QM}Y#q%@_2^U8Z_ zrkrgyr|$aV?w<~08b9sprhc3WJSgYO+N!kpmxN7vTTKt^lFaHHti_Ta6VJKi*!73C>Eu~P9wL<|n#-S{N zqO=FZ;%}Zip-M~1&SJ!WN^@Vl)b5H2xf6SHd-(G%Ij#eh*n&wsQG4UgO)PPoQ zja3U7uP-18or_%&D|B33xk>BBABhq9M$&nc_N9IwlkBVW`R;dIx!vXgrQHQ@43-at1t80Zylr*ON3+b!H0bQ)NTE(0%OlY!0HV!$ul4&f$YvVj?xX`mbx2C6aN zKs^>1cuKe?(LId{4aHk~)|YPH-Px@UC1$hACjy1gk%w4J^&=kzttf<7K1Ho4#x#yi z??eeoMWssuXqdtxy;T+prQ<4VcGK!VK8M zBLdb~A!_kt*rm>jt;?ir4=*7sB$P4>yw9>=1 z7N#a!NIV&T_)Xdw_V>^$mL0V)Dz9f>%V<55is3z?x z3X=3lBws~E!nS5RH#~yEzmXn^tMwZ}uR3z;C(U4?DBDqN2i{^HN{|8sIKFG<(TTf^B~|F*QUb;6sa+jD$4?xQ zcQKKKpTXcMr|PK8Q_b$lVk{B=m^VScU9wI?A--L%8Z`t`x@%NRo5+Hefg!QiF@ zaTrL+QWvVNl(*hLaDN@`BUCC+ssARE0wh@^A0h4kMOD*xJl+dD;kvxiuM5gyxzF`kE4ZBu9N(laS!ykzCFd JkTF~Q{{x3c&Cvh= diff --git a/src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java b/src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java index 1ddcce0..1bd74cb 100644 --- a/src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java @@ -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 *

* @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; } diff --git a/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java b/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java index 1f68bda..f03fab6 100644 --- a/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/register/UserRegistrationSessionBeanRemote.java @@ -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); } diff --git a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java index ebae0b4..ed47256 100644 --- a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java @@ -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 - * + *

* @return User name list */ public List getUserNameList (); /** * Some "getter" for a full email address list - * + *

* @return User name list */ public List 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. - *

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