]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - src/java/org/mxchange/pizzaapplication/beans/shop/PizzaShopWebApplicationController.java
Continued a bit:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / shop / PizzaShopWebApplicationController.java
index b7ccb5c817017d843db6c3816473241069865748..992d5dc746909d30723b43c9f10ab178e8e8a333 100644 (file)
@@ -19,6 +19,7 @@ package org.mxchange.pizzaapplication.beans.shop;
 import java.io.Serializable;
 import java.util.List;
 import javax.faces.view.facelets.FaceletException;
+import org.mxchange.jshopcore.events.category.AddedCategoryEvent;
 import org.mxchange.jshopcore.model.category.Category;
 import org.mxchange.jshopcore.model.product.Product;
 
@@ -33,6 +34,7 @@ public interface PizzaShopWebApplicationController extends Serializable {
         * Adds given category to the "cached" instance
         * <p>
         * @param category Category instance
+        * @todo Move this to own controller
         */
        void addCategory (final Category category);
 
@@ -49,6 +51,7 @@ public interface PizzaShopWebApplicationController extends Serializable {
         * @return All categories
         * <p>
         * @throws javax.faces.view.facelets.FaceletException If anything went wrong
+        * @todo Move this to own controller
         */
        List<Category> getAllCategories () throws FaceletException;
 
@@ -59,6 +62,7 @@ public interface PizzaShopWebApplicationController extends Serializable {
         * @return All categories
         * <p>
         * @throws javax.faces.view.facelets.FaceletException If anything went wrong
+        * @todo Move this to own controller
         */
        List<Category> getAllCategoriesParent () throws FaceletException;
 
@@ -71,4 +75,11 @@ public interface PizzaShopWebApplicationController extends Serializable {
         */
        List<Product> getAvailableProducts () throws FaceletException;
 
+       /**
+        * Observes events fired after a new product category has been added
+        * <p>
+        * @param event Event to be observed
+        * @todo Move this to own controller
+        */
+       void afterShopCategoryAdded (final AddedCategoryEvent event);
 }