]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java
Cleanup through inspection + updated jar(s)
[jcustomer-lib.git] / src / org / mxchange / jshopcore / model / product / ProductSessionBeanRemote.java
index da1aea38b63183e1bb8ff58c99d9386218dc91f1..a644d745324d0c8c258af6226106e0e60047fae0 100644 (file)
 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;
 
 /**
  * An interface for non-admin purposes
- *
+ * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
 @Remote
 public interface ProductSessionBeanRemote extends Serializable {
 
-       /**
-        * Adds given product to database. This method is typically used in admin
-        * area.
-        *
-        * @param product Product instance to add
-        * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
-        * @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If the product cannot be added
-        */
-       public void doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
-
-       /**
-        * Some "getter" for all products. This method is typically used in admin
-        * area.
-        *
-        * @return A Deque of all products
-        */
-       public Deque<Product> getAllProducts ();
-
        /**
         * Some "getter" for a linked list of only available products
-        *
+        * <p>
         * @return Only available products
         */
-       public Deque<Product> getAvailableProducts ();
+       List<Product> getAvailableProducts ();
 }