]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - src/java/org/mxchange/pizzaapplication/beans/controller/PizzaWebBean.java
updated jcore-ee-logger.jar, jshop-ee-lib.jar + added some stuff + renamed variable...
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / controller / PizzaWebBean.java
index 11dcdb7622d4b8cd33a7658d7a1ae0396db4a4f0..24117527004508c90060d2341822866225d3bd01 100644 (file)
  */
 package org.mxchange.pizzaapplication.beans.controller;
 
-import java.rmi.RemoteException;
-import java.util.Deque;
-import java.util.Iterator;
-import javax.faces.FacesException;
-import org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException;
-import org.mxchange.jshopcore.exceptions.ProductTitleAlreadyUsedException;
-import org.mxchange.jshopejb.beans.FrameworkBean;
-import org.mxchange.jshopejb.model.category.Category;
-import org.mxchange.jshopejb.model.product.Product;
+import java.io.Serializable;
+import java.util.Queue;
+import javax.faces.view.facelets.FaceletException;
+import org.mxchange.jshopcore.model.category.Category;
+import org.mxchange.jshopcore.model.product.Product;
 
 /**
+ * An interface for the shop
  *
  * @author Roland Haeder
  */
-public interface PizzaWebBean extends FrameworkBean {
-       /**
-        * Initializes this instance
-        * 
-        * @throws FacesException If something was wrong
-        */
-       public void init () throws FacesException;
-
-       /**
-        * 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 PizzaWebBean extends Serializable {
 
        /**
         * Some "getter" for a linked list of only available products
         * 
         * @return Only available products
-        * @throws java.rmi.RemoteException If anything went wrong
-        */
-       public Deque<Product> getAvailableProducts () throws RemoteException;
-
-       /**
-        * Some "getter" for a linked list of all products
-        *
-        * @return All products
-        * @throws java.rmi.RemoteException If anything went wrong
+        * @throws javax.faces.view.facelets.FaceletException If anything went wrong
         */
-       public Deque<Product> getAllProducts () throws RemoteException;
+       public Queue<Product> getAvailableProducts () throws FaceletException;
 
        /**
         * Some "getter" for a linked list of all categories
         *
         * @return All categories
-        * @throws java.rmi.RemoteException If anything went wrong
-        */
-       public Deque<Category> getAllCategories () throws RemoteException;
-
-       /**
-        * Generates a link for category's parent category. If none is given, the method will return only a small
-        * note.
-        *
-        * @param category Category instance
-        * @return HTML link for category's parent category
-        * @deprecated Old lost code
-        */
-       @Deprecated
-       public String generateLinkForParent (final Category category);
-
-       /**
-        * Checks if given Product instance is available and returns a printable
-        * (human-readable) string.
-        * 
-        * @param product Product instance to check
-        * @return Human-readable version of product availability
-        * @deprecated Old lost code
-        */
-       @Deprecated
-       public String getPrintableProductAvailability (final Product product);
-
-       /**
-        * Returns a printable (human-readable) string of product's category
-        * 
-        * @param product Product instance to check
-        * @return Human-readable version of product availability
-        * @throws java.rmi.RemoteException If something unexpected happened
-        * @deprecated Old lost code
-        */
-       @Deprecated
-       public String getPrintableProduktCategory (final Product product) throws RemoteException;
-
-       /**
-        * Adds given category data from request to database
-        *
-        * @param category Category instance
-        * @throws java.rmi.RemoteException If something unexpected happened
-        * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given title is already used
-        */
-       public void doAdminAddCategory (final Category category) throws RemoteException, CategoryTitleAlreadyUsedException;
-
-       /**
-        * Adds given product data from request to database
-        *
-        * @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
-        */
-       public void doAdminAddProduct (final Product product) throws RemoteException, ProductTitleAlreadyUsedException;
-
-       /**
-        * Handles admin product form requests
-        *
-        * @throws RemoteException If something unexpected happened
-        * @deprecated Old lost code
-        */
-       @Deprecated
-       public void doAdminHandleProductForms () throws RemoteException;
-
-       /**
-        * Handles admin category form requests
-        * 
-        * @throws RemoteException If something unexpected happened
-        * @deprecated Old lost code
+        * @throws javax.faces.view.facelets.FaceletException If anything went wrong
         */
-       @Deprecated
-       public void doAdminHandleCategoryForms () throws RemoteException;
+       public Queue<Category> getAllCategories () throws FaceletException;
 }