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;
* Adds given category to the "cached" instance
* <p>
* @param category Category instance
+ * @todo Move this to own controller
*/
void addCategory (final Category category);
* @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;
* @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;
*/
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);
}