From 9ec97411cf7e30f060718e37632deaa03437caee Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 16 Sep 2015 10:20:54 +0200 Subject: [PATCH] =?utf8?q?Continued:=20-=20added=20new=20methods=20for=20h?= =?utf8?q?andling=20customer=20registration=20-=20updated=20jars=20Signed-?= =?utf8?q?off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- lib/jshop-core.jar | Bin 29304 -> 29515 bytes .../model/basket/BasketSessionBeanRemote.java | 10 ++++++++ .../customer/CustomerSessionBeanRemote.java | 23 ++++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar index ffdfed6b8336dff31017701d431501ef76f74c2c..eda325ad96c4276316490de4a45cd21f95ecefb3 100644 GIT binary patch delta 1252 zcmZ{iTS!z<6o%J6XJ*daXB@|D9MdH67BrJe%_w3Q$}lY}!o-*?o14x!<7m$&)l)&# z>iQ5=^biqY7z92@y%=glMbU*Gf-ZzF84*kmMeD3H6+?6mdw*;H>#{d{uk3p<|54bw zw#qs)fDu5q)ql!XBg=%qIaysjDQA4GQGsQmo_Rs4!Nam8KNC>|*!xJdGM&=;9DTSL zG~#i|oXc)uzLeH6y>gSv$vtwVj*T&;TVmstX_sdBtS@9%OwNaz@v?AHbImVt+X^VX z?NjOXleIE{I{bJ=ET42%Zq|Z(svVj!ST|#|tHCcykG)O_fRsRIXc^wK6;F;dj0xW3 zTVqz@AY-j#{{jFk00;T|iqRKvlvxxoDqvE;ETAA79^H6oWHglwXSN+m9tdY}!tKHK z!1+}|CqM^!$`@duSpp^RrrVy?4m>|10jMLO9vD9di||&;uzK$2)HG!@z%nzHSZV?p zJPMR3;8mbhfW1F&M*%LJFu3ulT#ZM9M_vCplhRaSv4P!6hfxI7(`!|sKWN3irv5RR zwh?qziGFg^-X+uzCeo-eNVCuoK-n}qNbwQr_CQ~E7sPE2anfvHu>=apwrT<3fuWo!XCvET;x?Pq zb)V4M342potLQ^lwU`_Imsr8}NI>m&JQmSf_Cds_7QyeNt89#JVA|teJQLNLe>S>> zHFs<~b1LS=@z|Q2y(1Uj$qdE2n78BY%%AZLb7UaNd^eC_?i?It&JK<+TN4rH^~64= zIoZpMCAIZjvY*%fA#HtnC}LCF`cKEAKDB$fs^m2p-SzM9+IV>ozpNc8j$yCVvp45*;NxC{T8mvb$u%D$mj@s3H{!x@1W{JTbRk!*D47VoK delta 1044 zcmY+DUr1AN6vxlK*SovBKRTxsWjRHiGlSU_xjI7=b1Rc9Qx{rM);6beZB`HxCPgn5 z6$hfiJs3Xp7z|Q^eDop3@W};5X@8+0OClkNe)rsIZ1B6E^ZWk3=ePSi=XYm6acdtq zb6bm$VF1tr$ivRNW{03>Q0@upY{5oYb*R96&PBY>JMfBNOwUB*6k46<>WLP9Z;DQ| zDSEuY8&cVOh)KSIm?zY#O!$Q23<^f1E}nu{a=R8dO^X64vSm&Sk~u5d((LA3b0$mo zeA)i^c9{TBCZMIRC}AmX)||&mv$UXp=Zu~LN(BqKuzz)Dc26ONrrq#>yvUAw?o&!*ag5z8PK2c=6aL#IZ@%Py@%cz7c z1`r@e!ncwOmus%#o!Ua30gN2DSjp_TTpPiaG6$|U=2V$kf{y(az&6NaPZPx=WPydv zILKyC9;|7vkPz$2O>~SuO;a6S5x^^Aw5JFwqMH&Iy+=ek>ujq`s7W9(#Ie3V8i>)2) zt4_s-Q~p-s?ob=?TIc|AArvDv_lJp3`v-_61Luij14Be>*iRe|pCrBscN5)%+B`nk zOLHNj&Cf>sX7z4t^cRznjsjIlYa1)-`fpZnOG{qAI@QvB}AL_^F itemList); } diff --git a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java index f07443e..633bbf0 100644 --- a/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java @@ -26,4 +26,27 @@ import javax.ejb.Remote; */ @Remote public interface CustomerSessionBeanRemote extends Serializable { + + /** + * Fills given customer instance with all available data + * + * @param customer Customer instance + */ + public void fillCustomerData (final Customer customer); + + /** + * Checks if the the given customer instance is already registered + * + * @param customer Customer instance + * @return Whether the customer is already registered + */ + public boolean isReqistered (final Customer customer); + + /** + * Registers the customer and creates a customer number after succesful + * persisting. + * + * @param customer Customer instance + */ + public void registerCustomer (final Customer customer); } -- 2.39.5