From c11a4ab9c09eaa78517b6fa51c36deea4011f6fe Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 9 Sep 2015 11:09:34 +0200 Subject: [PATCH] =?utf8?q?added=202=20new=20business=20methods=20(admin=20?= =?utf8?q?area).=20Maybe=20they=20have=20to=20be=20moved=3F=20Signed-off-b?= =?utf8?q?y:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../model/product/ProductSessionBeanRemote.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 * -- 2.39.5