*/
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
* @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