]> git.mxchange.org Git - jshop-lib.git/blobdiff - src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java
Continued:
[jshop-lib.git] / src / org / mxchange / jshopcore / model / basket / BasketSessionBeanRemote.java
index 2eb7d1ffaaaaa1ca5ceeb1f2a2af7f22b329f283..c93b9b68339d0d20f90f0ca513eff840cb5922c6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Roland Haeder
+ * Copyright (C) 2016 - 2018 Free Software Foundation
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -19,21 +19,37 @@ 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;
+import org.mxchange.jcustomercore.model.customer.Customer;
 
 /**
  * An interface for a basket bean
- *
- * @author Roland Haeder<roland@mxchange.org>
+ * <p>
+ * @author Roland Hรคder<roland@mxchange.org>
  */
 @Remote
 public interface BasketSessionBeanRemote extends Serializable {
 
+       /**
+        * Returns user's current basket, or creates an empty initial if none is
+        * found.
+        * <p>
+        * @return User's current basked
+        */
+       Basket<AddableBasketItem> getCurrentBasket ();
+
+       /**
+        * Clears this bean from previous usage
+        */
+       void clear ();
+
        /**
         * Registers the order list of tems with the customer
-        *
-        * @param customer Customer instance
-        * @param itemList Ordered items list
+        * <p>
+        * @param customer     Customer instance
+        * @param orderedItems Ordered items list
+        * <p>
+        * @return Access key
         */
-       public void aregisterItems (final Customer customer, final List<AddableBasketItem> itemList);
+       String registerItems (final Customer customer, final List<AddableBasketItem> orderedItems);
+
 }