]> git.mxchange.org Git - jproduct-lib.git/commitdiff
added business method getCurrentBasket()
authorRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 16:54:12 +0000 (18:54 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 16:54:12 +0000 (18:54 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java

index 457d22a841f9eff52d6c4dc931c7813cddc43778..915e2c6267b3a5ca14adb881d18d3b2a0b272bfa 100644 (file)
@@ -29,6 +29,14 @@ import org.mxchange.jcustomercore.model.customer.Customer;
 @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> getCurrentBasked ();
+
        /**
         * Clears this bean from previous usage
         */
@@ -37,7 +45,7 @@ public interface BasketSessionBeanRemote extends Serializable {
        /**
         * Registers the order list of tems with the customer
         * <p>
-        * @param customer Customer instance
+        * @param customer     Customer instance
         * @param orderedItems Ordered items list
         * <p>
         * @return Access key