From 7d47ec497dbc4354b6c78c70af8726b0dfdce460 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 6 Oct 2015 15:39:59 +0200 Subject: [PATCH] =?utf8?q?Continued:=20-=20renamed=20exception=20+=20added?= =?utf8?q?=20new=20one=20-=20updated=20jar=20Signed-off-by:Roland=20H?= =?utf8?q?=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/juser-core.jar | Bin 13411 -> 15206 bytes .../UserRegistrationSessionBeanRemote.java | 8 ++-- .../model/user/UserSessionBeanRemote.java | 35 +++++++++++++++--- 3 files changed, 35 insertions(+), 8 deletions(-) diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 30c2eb8281ea781cce326a635f5476b122507439..bacd4604eea1d39d40cef3cc12fc6e84825e17ef 100644 GIT binary patch delta 1839 zcmZuxYfPJE6h2?Cqm(l0D6W+DElAgn+3V&4I>W7Og|2KZ3nL2Vv;A~9z}eC{gbmph zbuig+;N6X3_RAPkmq_B}hks1WjMJz;+;m3cOcqUC%o2ZKd`~YxVQt=Xp69&h_PyWt zo?rLQj(km6ZCtMyT0Y=AqkVfSGs_QfSJHpJr6lf8*SDK5pZRk2@a#xbugm)yvks20li zf(m2+z&7dylejx+8LrQ9a)e;H>oxOe%B zNlmII-{!nNNj3mK2P>s{tdtpn>)9 zVj+~1cnMAunjqUGp)-VDCNxFpEFmQH3ZZj^rU}gudbNOy*GRlh;tdjSl6Z^6+a%s0 zab67<)G#Yo!$oYw@0WmK2I|R^Y@-FXPfMmAw z)u{ua5P$yG_CSb5yYpKQWzVfCV`ke}lr8Th|LO16jTR!%p@klJObv6XT}G5C4}k)P z@E3C_E|>-?jzBSt@h{>iRKYR0ACALTH~|fC658Mtj#so`r`dqNRoL;I*@Skp3vY1V zZ?>b^V!{tN@3k244(FFRud}%DHs_-jJGz+(Kj(ay8E_4=<2>g<=0b(lfK!||T21&J z=M$V8t#!G=2{^h)j}bk-NKX(wxkyhD9nZVQrpo&ibd4Krmju$cHe6QG)SPwJ^1+MO zo%O^lE;p&&uJm9%?P?-+)fFOTbq6xcgyU{6!H?a0?lN&JJ-(GwvK$9JC5(nf-jJl> zll{$&&8pDjvFAqGQbgOWo_{y1rbZYO7g+IdFiB?0NW1lYV z*sd+bonAe4E_zL}3Vqh9!uPzkbc&^s2H?p{akG>=ugCMc!t9{arvriy?VY;D>(Sbj y7l8I`Krue&OV^zAnPl^umaMiy{Mo0aZvNyuk2@C&xHj8#dOoRZRRCpMDC_^H`3E8Z delta 991 zcmZuwT}V@57=F*$=5m|+(X~*Ip>F5w%$A$le$*)KXOTuoHSj`8FOsfSWSEtvv(hxR z=Bud@24Q#+l`y*SLZ~3^ray}4qR5E;u8at}Qu^NGatR&yp7(j)^L#&t?>S$ZKOHgD zRIAiFfHeSf;h4e2&xT`x5uWiExr9Gm3^9i*q4Jb-VZBwqY7P!^rOWTOP)Xx=TIRx` zUDlbeV{cRdG(y9S5a*--czb8{fWv*d)#@@KJGIE_{{jyEu)Z^ie8(k{hAK4;H(ZZpcH?fPvdWiKByF{#ySbr*m0fNf}R|sMRg9J!0L@=y{t6CUQX<;<} z(Dq)NW`O;0zyJr~kQT<`1G&g+BA|w&SR}2*a(g7_1eo9?o7n<(I0YNwGz8!bR6;9M zLmST8LtIqx<~w9f7igdx8^m?k=fS2k?9VnfTC>8vjWdf z#(~(x4%e0-|3)W%Lw2a?mL9t&m0ODx-cO-Gh`v&mDXjNZkhA4h;;`zmI`&a;J zR6_EZh+1^$4azuW%*NKBK{3A_>-yEmj5I>s!8U2Wzzfx6SkEp9~3JSc)zsLU3BY>HPsw%RsH=} a@dtB!a3(ghV^z7)XaNgMYXF7{Y4tyv$`4im 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; } -- 2.39.5