]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java
Continued:
[jcustomer-lib.git] / src / org / mxchange / jshopcore / model / product / AdminProductSessionBeanRemote.java
index 3d5397818ee1517f6a14ac1611d588a66b9ddf97..9cf68f8ab36dec4f569104a0eca03d712b404436 100644 (file)
@@ -17,7 +17,7 @@
 package org.mxchange.jshopcore.model.product;
 
 import java.io.Serializable;
-import java.util.Deque;
+import java.util.List;
 import javax.ejb.Remote;
 import org.mxchange.jshopcore.exceptions.CannotAddProductException;
 import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
@@ -35,14 +35,15 @@ public interface AdminProductSessionBeanRemote extends Serializable {
         *
         * @return All products
         */
-       public Deque<Product> getAllProducts ();
+       public List<Product> getAllProducts ();
 
        /**
         * Adds given product data from request to database
         *
         * @param product Product instance
+        * @return Updated product instance
         * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
         * @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If something unexpected happened
         */
-       public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
+       public Product doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
 }