From 0ae9a2b376b2e9ff872a3ef04bde84f31b47ecc6 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 26 Apr 2016 16:42:37 +0200 Subject: [PATCH] added business method linkUser() --- lib/juser-core.jar | Bin 50441 -> 52425 bytes .../model/user/UserSessionBeanRemote.java | 27 ++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/lib/juser-core.jar b/lib/juser-core.jar index 94a100228dbaa711229cd79e8fffb572411d3443..a77f33a4a57f790f4c9089ae1f0b44dd92a34074 100644 GIT binary patch delta 2418 zcmaJ?eN0nV6uCQO|QMYe=&M$}}B zF4Nc?9Dy;>%|FJRn^06Lp!gM|&W%kordy(BOWa4cnJhX#Chp$zYQx23O-}B)zx(^0 zd+vGX-fn+aI^QbEo>EB{K}a|uYHOQMPM58%Z7%1YgYS3=Azt6Sa$&m97i)54uc>{# zW17YhYAUKi8B(-H|6gb17u3o~(?AQs_x zOG<|u$p%p4?Ro^>i#e+~ODwMnQB>rL-%&U6 zfEI&U0VIh@kUK>m?yO$Frq)?q4MQ;&P;5r9#a9c{;bxx=zKCBHHQ3(lnibWtF;7nj zvyjkVVVx!j`5?q4vN%v-o!}o#a0@{#ok{|E5+~NbUCk2N(ftF;ivl{6tnGSqdXpP8 zBqwD^Lxd@n8d9BkT|2~rsY^vX*4}ALb*OqU&dX!9rzH>lbRjR2{NcPrXLTD^**&F# z7$a#N%$jhyUn%%2xVFA=1RW)NtT-b?RSPOLd(^#5t&94YSYjy+Bbj_zow5-5dt;VU24#st6T`(w@&8ojU!*Tvj$Nt2U}} zu+Il9hac!H4ZNxjj7N-!Dn}Gim7u;a6%I`{Wc^>@WG?V(CbB@?)Cf*Aw)9p`^oayp zb|%7Ox;eXi^ibkY8q~Dh1j~*Z)vBJ?^yp!qkO7q~CP)lKC$d9ie|-6NF5Y%WJ`Pp0H@Bt7cBeAG$rIWwMg&qhf(Aor`-nYsOn*ph*p9Ga}M z!l3@*cNfpCqgrOqahu4QL9z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~B3EJ3I(RQt4{nPF z{Fm8&=7(kBEI5WAp*P<wYN_IPwLdvF;$NhUTkwg_oK3=Mj!=PZ>3b2nEsKd6eW$`H|Zmokhmoa2~ z0mI>2G3*RMo^e^c?oz%SJ-ogr9#+?A9{6PB+|%)$MubR|a1ORV5gK+(Sm-rPj@o~| zp+SfQf6Z0<6|xap>I~2~!Cvpx30Z9Q;8r%Q4ze@O2+Cr88-^^pT61W%s(2!HmK QdIxf#nizz-&J(Hs0lF@ghyVZp diff --git a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java index e05fb14..162af97 100644 --- a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java @@ -31,6 +31,22 @@ import org.mxchange.jusercore.exceptions.UserNotFoundException; @Remote public interface UserSessionBeanRemote extends Serializable { + /** + * Creates the user instance and links it with the set contact instance + *

+ * @param user User instance to + *

+ * @return Updated user instance + *

+ * @throws + * org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException When + * the user name is already used + * @throws + * org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException + * When the email address is already used + */ + User linkUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException; + /** * Updates entiity from given user instance and returns updated instance. *

@@ -48,7 +64,8 @@ public interface UserSessionBeanRemote extends Serializable { *

* @return User instance * - * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the user is not found + * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the + * user is not found */ User findUserById (final Long userId) throws UserNotFoundException; @@ -59,8 +76,12 @@ public interface UserSessionBeanRemote extends Serializable { *

* @return Updated user instance *

- * @throws org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException When the user name is already used - * @throws org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException When the email address is already used + * @throws + * org.mxchange.jusercore.exceptions.UserNameAlreadyRegisteredException When + * the user name is already used + * @throws + * org.mxchange.jusercore.exceptions.EmailAddressAlreadyRegisteredException + * When the email address is already used */ User addUser (final User user) throws UserNameAlreadyRegisteredException, EmailAddressAlreadyRegisteredException; -- 2.39.2