import java.rmi.RemoteException;
import java.util.Deque;
import java.util.Iterator;
-import javax.faces.FacesException;
-import org.mxchange.jshop.beans.FrameworkBean;
-import org.mxchange.jshop.category.Category;
-import org.mxchange.jshop.exceptions.CategoryTitleAlreadyUsedException;
-import org.mxchange.jshop.exceptions.ProductTitleAlreadyUsedException;
-import org.mxchange.jshop.product.Product;
+import org.mxchange.jcoreee.beans.FrameworkBean;
+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;
/**
*
* @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
*/
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.jshop.exceptions.CategoryTitleAlreadyUsedException If the given title is already used
+ * @throws org.mxchange.jshopcore.exceptions.CategoryTitleAlreadyUsedException If the given title is already used
*/
public void doAdminAddCategory (final Category category) throws RemoteException, CategoryTitleAlreadyUsedException;
*
* @param product Product instance
* @throws java.rmi.RemoteException If something unexpected happened
- * @throws org.mxchange.jshop.exceptions.ProductTitleAlreadyUsedException If the given product title is already used
+ * @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
- */
- @Deprecated
- public void doAdminHandleCategoryForms () throws RemoteException;
}