package org.mxchange.jshopcore.model.basket;
import java.io.Serializable;
-import java.rmi.RemoteException;
-import java.util.Map;
+import java.util.List;
import javax.ejb.Remote;
-import org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException;
+import org.mxchange.jshopcore.model.customer.Customer;
/**
* An interface for a basket bean
public interface BasketSessionBeanRemote extends Serializable {
/**
- * Adds given item instance to this basket
+ * Registers the order list of tems with the customer
*
- * @param item Item instance to add
- * @throws org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException If the item as already been added
+ * @param customer Customer instance
+ * @param itemList Ordered items list
*/
- public void addItem (final AddableBasketItem item) throws BasketItemAlreadyAddedException;
-
- /**
- * Checks if the basket is empty
- *
- * @return Whether the basket is empty
- * @throws java.rmi.RemoteException If something bad happens
- */
- public boolean isEmpty () throws RemoteException;
-
- /**
- * Checks whether the given product as already been added. If the product's
- * item id number was found in basket, the corresponding item instance will
- * be set
- *
- * @param item Item instance to check
- * @return Whether the given item has been found
- */
- public boolean isAdded (final AddableBasketItem item);
-
- /**
- * Some "getter" for all entries in this basket
- *
- * @return Map on all basket items
- */
- public Map<Long, AddableBasketItem> getAll ();
-
- /**
- * Getter for last entry
- *
- * @return Last added item in basket
- */
- public AddableBasketItem getLast ();
-
- /**
- * Getter for last num rows
- *
- * @return Last num rows
- */
- public int getLastNumRows ();
+ public void registerItems (final Customer customer, final List<AddableBasketItem> itemList);
}