]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java
Introduced new exceptions
[jcustomer-lib.git] / src / org / mxchange / jshopcore / model / basket / BasketSessionBeanRemote.java
index 94661c460b1c43874dee76dc3f42f4ac5999eccb..cc83e8849d10c3ad822b36d855c528b5902157b4 100644 (file)
@@ -17,9 +17,7 @@
 package org.mxchange.jshopcore.model.basket;
 
 import java.io.Serializable;
-import java.util.Map;
 import javax.ejb.Remote;
-import org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException;
 
 /**
  * An interface for a basket bean
@@ -28,50 +26,4 @@ import org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException;
  */
 @Remote
 public interface BasketSessionBeanRemote extends Serializable {
-
-       /**
-        * Adds given item instance to this basket
-        *
-        * @param item Item instance to add
-        * @throws org.mxchange.jshopcore.exceptions.BasketItemAlreadyAddedException If the item as already been added
-        */
-       public void addItem (final AddableBasketItem item) throws BasketItemAlreadyAddedException;
-
-       /**
-        * Checks if the basket is empty
-        *
-        * @return Whether the basket is empty
-        */
-       public boolean isEmpty ();
-
-       /**
-        * 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 ();
 }