From: Roland Haeder Date: Mon, 21 Sep 2015 10:04:50 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ecbe2a2a98f37ffc530e9aff7cca1f27fe94a62f;p=jcustomer-lib.git Continued: - added missing methods for setting customer and access key - updated jars Signed-off-by:Roland Häder --- diff --git a/lib/jcoreee.jar b/lib/jcoreee.jar index 42674a2..6061f28 100644 Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ diff --git a/lib/jshop-core.jar b/lib/jshop-core.jar index 5f4906c..4fed9f7 100644 Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ diff --git a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java index 54bbf59..d64e5db 100644 --- a/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java @@ -34,6 +34,7 @@ public interface BasketSessionBeanRemote extends Serializable { * * @param customer Customer instance * @param itemList Ordered items list + * @return Access key */ - public void registerItems (final Customer customer, final List itemList); + public String registerItems (final Customer customer, final List itemList); } diff --git a/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java b/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java index 2328adc..6e64228 100644 --- a/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java @@ -18,6 +18,7 @@ package org.mxchange.jshopcore.model.receipt; import java.io.Serializable; import javax.ejb.Remote; +import org.mxchange.jshopcore.model.customer.Customer; /** * A remote interface for official recipt creation @@ -35,4 +36,40 @@ public interface ReceiptBeanRemote extends Serializable { * @return Wrapped byte stream */ public WrapableReceipt createReceiptFromAccessKey (final String accessKey); + + /** + * Fetches access key, if customer instance matches, else null is returned + * + * @param customer Customer instance + * @return Access key or null + */ + public String fetchAccessKey (final Customer customer); + + /** + * Setter for access key + * + * @param accessKey Access key + */ + public void setAccessKey (final String accessKey); + + /** + * Getter for access key + * + * @return Access key + */ + public String getAccessKey (); + + /** + * Setter for customer instance + * + * @param customer Customer instance + */ + public void setCustomer (final Customer customer); + + /** + * Getter for customer instance + * + * @return Customer instance + */ + public Customer getCustomer (); }