]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java
added 2 new business methods (admin area). Maybe they have to be moved?
[jcustomer-lib.git] / src / org / mxchange / jshopcore / model / product / ProductSessionBeanRemote.java
index cba78297972873caecdf55577729a251d0e7a5cf..7af2a19f03feff1c8c7d27f7543ca725e7a5123a 100644 (file)
@@ -29,6 +29,21 @@ import javax.ejb.Remote;
 @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
+        */
+       public void doAdminAddProduct (final Product product);
+
+       /**
+        * Some "getter" for all products. This method is typically used in admin
+        * area.
+        * @return A Deque of all products
+        * @throws java.rmi.RemoteException If anything went wrong
+        */
+       public Deque<Product> getAllProducts () throws RemoteException;
+
        /**
         * Some "getter" for a linked list of only available products
         *