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
*/
@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);
}
*/
@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);
}