From: Roland Häder Date: Wed, 19 Apr 2017 16:54:12 +0000 (+0200) Subject: added business method getCurrentBasket() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9088951ac0fa2d8c97498606a5655c7c53c5a431;p=jshop-lib.git added business method getCurrentBasket() Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java index 457d22a..915e2c6 100644 --- a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java @@ -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. + *

+ * @return User's current basked + */ + Basket 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 *

- * @param customer Customer instance + * @param customer Customer instance * @param orderedItems Ordered items list *

* @return Access key