]> git.mxchange.org Git - jshop-lib.git/commitdiff
added 2 new business methods (admin area). Maybe they have to be moved?
authorRoland Haeder <roland@mxchange.org>
Wed, 9 Sep 2015 09:09:34 +0000 (11:09 +0200)
committerRoland Haeder <roland@mxchange.org>
Wed, 9 Sep 2015 09:09:34 +0000 (11:09 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

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
         *