]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jshopcore/model/product/AdminProductSessionBeanRemote.java
Cleanup through inspection + updated jar(s)
[jcustomer-lib.git] / src / org / mxchange / jshopcore / model / product / AdminProductSessionBeanRemote.java
index b07c3c5b94830ea52859d87972bfdefdf8fa19a0..039b2c78bb70c0ebfd45306bfa01436c06d018f2 100644 (file)
 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
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
  */
 @Remote
 public interface AdminProductSessionBeanRemote extends Serializable {
 
        /**
         * Some "getter" for a linked list of all products
-        *
+        * <p>
         * @return All products
-        * @throws java.rmi.RemoteException If anything went wrong
         */
-       public Deque<Product> getAllProducts () throws RemoteException;
+       List<Product> getAllProducts ();
 
        /**
         * Adds given product data from request to database
-        *
+        * <p>
         * @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
+        * <p>
+        * @return Updated product instance
+        * <p>
+        * @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;
 }