From: Roland Haeder Date: Wed, 9 Sep 2015 09:09:34 +0000 (+0200) Subject: added 2 new business methods (admin area). Maybe they have to be moved? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c11a4ab9c09eaa78517b6fa51c36deea4011f6fe;p=jshop-lib.git added 2 new business methods (admin area). Maybe they have to be moved? Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java index cba7829..7af2a19 100644 --- a/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/product/ProductSessionBeanRemote.java @@ -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 getAllProducts () throws RemoteException; + /** * Some "getter" for a linked list of only available products *