X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjshopcore%2Fmodel%2Fproduct%2FAdminProductSessionBeanRemote.java;h=039b2c78bb70c0ebfd45306bfa01436c06d018f2;hb=42f309299ed8ff01eaf5b605183bab1df23e6fa0;hp=b07c3c5b94830ea52859d87972bfdefdf8fa19a0;hpb=8ff7ded93d58c588fa28e442f6970e4547c14d53;p=jcustomer-lib.git diff --git a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java index b07c3c5..039b2c7 100644 --- a/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java +++ b/src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java @@ -17,33 +17,38 @@ package org.mxchange.jshopcore.model.product; import java.io.Serializable; -import java.rmi.RemoteException; -import java.util.Deque; +import java.util.List; import javax.ejb.Remote; +import org.mxchange.jshopcore.exceptions.CannotAddProductException; import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException; /** * Product interface for "ADMIN" role - * - * @author Roland Haeder + *
+ * @author Roland Haeder
* @return All products
- * @throws java.rmi.RemoteException If anything went wrong
*/
- public Deque
* @param product Product instance
- * @throws java.rmi.RemoteException If something unexpected happened
- * @throws org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
+ *
+ * @return Updated product instance
+ *
+ * @throws
+ * org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException If the
+ * given product title is already used
+ * @throws org.mxchange.jshopcore.exceptions.CannotAddProductException If
+ * something unexpected happened
*/
- public void doAdminAddProduct (final Product product) throws RemoteException, ProductTitleAlreadyUsedException;
+ Product doAdminAddProduct (final Product product) throws ProductTitleAlreadyUsedException, CannotAddProductException;
}