]> git.mxchange.org Git - jcustomer-lib.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Wed, 16 Sep 2015 08:20:54 +0000 (10:20 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 16 Sep 2015 08:20:54 +0000 (10:20 +0200)
- added new methods for handling customer registration
- updated jars
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jshop-core.jar
src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java
src/org/mxchange/jshopcore/model/customer/CustomerSessionBeanRemote.java

index ffdfed6b8336dff31017701d431501ef76f74c2c..eda325ad96c4276316490de4a45cd21f95ecefb3 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index cc83e8849d10c3ad822b36d855c528b5902157b4..2eb7d1ffaaaaa1ca5ceeb1f2a2af7f22b329f283 100644 (file)
@@ -17,7 +17,9 @@
 package org.mxchange.jshopcore.model.basket;
 
 import java.io.Serializable;
+import java.util.List;
 import javax.ejb.Remote;
+import org.mxchange.jshopcore.model.customer.Customer;
 
 /**
  * An interface for a basket bean
@@ -26,4 +28,12 @@ import javax.ejb.Remote;
  */
 @Remote
 public interface BasketSessionBeanRemote extends Serializable {
+
+       /**
+        * Registers the order list of tems with the customer
+        *
+        * @param customer Customer instance
+        * @param itemList Ordered items list
+        */
+       public void aregisterItems (final Customer customer, final List<AddableBasketItem> itemList);
 }
index f07443e20ec11200cf42b4bcc7ca54c54f53ec7c..633bbf00d15c349a02734ab1ce6dca9a0d748475 100644 (file)
@@ -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);
 }