]> git.mxchange.org Git - jcustomer-lib.git/blobdiff - src/org/mxchange/jshopeelib/beans/remote/shop/ShopSessionBeanRemote.java
Well, if that is EJB, it sucks somehow: Logging not allowed and a complexer class...
[jcustomer-lib.git] / src / org / mxchange / jshopeelib / beans / remote / shop / ShopSessionBeanRemote.java
index 2076e2245b6323b259d01f6bce117c4400285482..7181d17db3801229ef3bdc2cd10333391b76ac78 100644 (file)
  */
 package org.mxchange.jshopeelib.beans.remote.shop;
 
+import java.io.Serializable;
 import java.rmi.RemoteException;
 import java.util.Deque;
-import java.util.Iterator;
 import javax.ejb.Remote;
 import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
 import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
 import org.mxchange.jshopcore.model.category.Category;
 import org.mxchange.jshopcore.model.product.Product;
-import org.mxchange.jshopeelib.beans.ShopBean;
 
 /**
  * A remote-call interface for the shop
@@ -32,31 +31,7 @@ import org.mxchange.jshopeelib.beans.ShopBean;
  * @author Roland Haeder
  */
 @Remote
-public interface ShopSessionBeanRemote extends ShopBean {
-
-       /**
-        * Some "getter" for an iterator of only available products
-        *
-        * @return Only available products
-        * @throws java.rmi.RemoteException If anything went wrong
-        */
-       public Iterator<Product> getAvailableProductsIterator () throws RemoteException;
-
-       /**
-        * Some "getter" for an iterator of all products
-        *
-        * @return All products
-        * @throws java.rmi.RemoteException If anything went wrong
-        */
-       public Iterator<Product> getAllProductsIterator () throws RemoteException;
-
-       /**
-        * Some "getter" for an iterator of all categories
-        *
-        * @return All categories
-        * @throws java.rmi.RemoteException If anything went wrong
-        */
-       public Iterator<Category> getAllCategoriesIterator () throws RemoteException;
+public interface ShopSessionBeanRemote extends Serializable {
 
        /**
         * Some "getter" for a linked list of only available products