From 0fa259bf4a2a6db4f504f960daba7f038a57962b Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 9 Apr 2016 13:08:55 +0200 Subject: [PATCH] Some rewrites: - generic customer-related classes/interfaces has been moved to jcustomer-core. - reordered imports (sorted) - added jcustomer-core (new project) --- lib/jcustomer-core.jar | Bin 0 -> 5872 bytes lib/jshop-core.jar | Bin 49064 -> 44482 bytes nbproject/project.properties | 4 ++ .../model/basket/BasketSessionBeanRemote.java | 2 +- .../customer/CustomerSessionBeanRemote.java | 62 ------------------ .../model/receipt/ReceiptBeanRemote.java | 2 +- 6 files changed, 6 insertions(+), 64 deletions(-) create mode 100644 lib/jcustomer-core.jar delete mode 100644 src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java diff --git a/lib/jcustomer-core.jar b/lib/jcustomer-core.jar new file mode 100644 index 0000000000000000000000000000000000000000..255e0d347367c857944ceb227a3bfb9b9528c550 GIT binary patch literal 5872 zcmb_gO>7&-6@J5itw>p-WJ#7BXJsokNkyXM*s&eCt{GaY8T}ciBtT67W3^gK>yTV^ zxk{`WIph+wK-xol=&h$*TeMEwv<=$k79c>b0dniLhoWc?y*23f_J>-o#I59df!*2J zeSh=j&G+8Sy@hB@B1#ecXy=D_$#->8jF#qBOOuu5`QkTU5Z!B$ehAXi&wug3F39;F zz}+HUDlJ#$=c=nyOY=)gLw~3>t;u!GZ0bhiHF;)gIwO@DzAvR+McvV4e8bNhQ?F*E zvZ*PSwl(?sKGR>HntpKY@}%CdG_#@9CO41dGjk-FEkjJjs3h8f0qF`Q9*tZKVFm}ZFbv2Yo6 zV@s=ruosTQ?hPkI&diDAG%dy23yx~~2R}8&F)@5Ehl}%hrtG@9R703-?cdk7^(I0? z+nV#dH>K8;X7h`0{`hAIeT805(U~NTbkiuE<;M#Woud~eguI-ju_T=r)Z5fdU8%WI zx>mU(NW38^Q^r(SO2b-LYI|CosOMjw|MO3n+R5kWYRh!q@?n~bALMG;s@{S_N@F?Xc)9=ZO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?fLET-GH(NCTtVQp4Rc(mga4wJACj6`b zSQw?t=S?Bn;9CR#eNN&ZF1>-OP zs)mZ9&)piP=OtCKR8mDsWE`TRWE6+2?I8}KpxJ(2I;E(X7`5iTk;pX^BJr8?CVt~z zJ8uyy9}dr&v1+>#txxhGh>j;M;zx(rEL}wX!4mx}+J2gT^4i_xWvmrPNxm=. - */ -package org.mxchange.jshopcore.model.customer; - -import java.io.Serializable; -import javax.ejb.Remote; -import org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException; - -/** - * An interface for customer beans - *

- * @author Roland Haeder - */ -@Remote -public interface CustomerSessionBeanRemote extends Serializable { - - /** - * Fills given customer instance with all available data - *

- * @param customer Initial Customer instance - *

- * @return Prepared Customer instance - */ - Customer 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 - */ - boolean isReqistered (final Customer customer); - - /** - * Registers the customer and creates a customer number after succesful - * persisting. - *

- * @param customer Initial customer instance - *

- * @return Prepared Customer instance - *

- * @throws - * org.mxchange.jshopcore.exceptions.CustomerAlreadyRegisteredException If - * the customer is already registered. - */ - Customer registerCustomer (final Customer customer) throws CustomerAlreadyRegisteredException; -} diff --git a/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java b/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java index 3e21191..1a4d12d 100644 --- a/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java @@ -18,7 +18,7 @@ package org.mxchange.jshopcore.model.receipt; import java.io.Serializable; import javax.ejb.Remote; -import org.mxchange.jshopcore.model.customer.Customer; +import org.mxchange.jcustomercore.model.customer.Customer; /** * A remote interface for official recipt creation -- 2.39.5