]> git.mxchange.org Git - jproduct-lib.git/commitdiff
Continued:
authorRoland Haeder <roland@mxchange.org>
Mon, 21 Sep 2015 10:04:50 +0000 (12:04 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 21 Sep 2015 10:04:50 +0000 (12:04 +0200)
- added missing methods for setting customer and access key
- updated jars
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcoreee.jar
lib/jshop-core.jar
src/org/mxchange/jshopcore/model/basket/BasketSessionBeanRemote.java
src/org/mxchange/jshopcore/model/receipt/ReceiptBeanRemote.java

index 42674a26cdfe924a0f1bbc181451a5e055c6db1b..6061f285cd719c267ee2f1a5e8a526abc4202328 100644 (file)
Binary files a/lib/jcoreee.jar and b/lib/jcoreee.jar differ
index 5f4906c7ffb49defc0f43891ed5564ef2af01111..4fed9f73c33604283902aa6f749660ecf52e01d2 100644 (file)
Binary files a/lib/jshop-core.jar and b/lib/jshop-core.jar differ
index 54bbf59ecc9de8ba6ec1f0378b8b4eda4533a41a..d64e5db2bf54f825d07ee2401cd6d7c4d913b116 100644 (file)
@@ -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<AddableBasketItem> itemList);
+       public String registerItems (final Customer customer, final List<AddableBasketItem> itemList);
 }
index 2328adc98c89e64537010df4926e6beeb90361b0..6e64228d085a5dc9887abb8672fa64e470461e70 100644 (file)
@@ -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 ();
 }