X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjshopcore%2Fmodel%2Fbasket%2FBasketSessionBeanRemote.java;h=010c0308baa2d74f0ee9e38363f792580514611a;hb=7244c58994941efc529687b0f49d33a3088b01cb;hp=de3f3a1ea19cc1ce4a927083f5dbaef4fae1b8c9;hpb=8ff7ded93d58c588fa28e442f6970e4547c14d53;p=jcustomer-lib.git diff --git a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java index de3f3a1..010c030 100644 --- a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java @@ -17,72 +17,24 @@ 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.model.customer.Customer; /** * An interface for a basket bean - * - * @author Roland Haeder + *

+ * @author Roland Haeder */ @Remote public interface BasketSessionBeanRemote extends Serializable { - /** - * Adds given item instance to this basket - * @param item Item instance to add - * @throws java.rmi.RemoteException If something bad happens - */ - public void addItem (final AddableBasketItem item) throws RemoteException; - - /** - * Adds given item instance to basket. Remember that the product instance - * itself is not added. Instead a AddableBasketItem is created which holds - * information about amoutn and item type. - * - * @param item Item instance - * @throws java.rmi.RemoteException If something bad happens - */ - public void addToBasket (final AddableBasketItem item) throws RemoteException; - - /** - * 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 - * @throws java.rmi.RemoteException If something bad happens - */ - public boolean isAdded (final AddableBasketItem item) throws RemoteException; - - /** - * Some "getter" for all entries in this basket - * - * @return Map on all basket items - * @throws java.rmi.RemoteException If something bad happens - */ - public Map getAll () throws RemoteException; - - /** - * Getter for last entry - * - * @return Last added item in basket - * @throws java.rmi.RemoteException If something bad happens - */ - public AddableBasketItem getLast () throws RemoteException; /** - * Getter for last num rows - * - * @return Last num rows + * Registers the order list of tems with the customer + *

+ * @param customer Customer instance + * @param itemList Ordered items list + * @return Access key */ - public int getLastNumRows (); + public String registerItems (final Customer customer, final List itemList); }