2 * Copyright (C) 2016 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Affero General Public License as
6 * published by the Free Software Foundation, either version 3 of the
7 * License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Affero General Public License for more details.
14 * You should have received a copy of the GNU Affero General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.pizzaapplication.beans.product;
19 import java.io.Serializable;
20 import java.util.List;
21 import javax.faces.view.facelets.FaceletException;
22 import org.mxchange.jshopcore.model.category.Category;
23 import org.mxchange.jshopcore.model.product.Product;
26 * An interface for product controllers for "ADMIN" role
28 * @author Roland Haeder<roland@mxchange.org>
30 public interface PizzaAdminProductWebRequestController extends Serializable {
33 * Adds given product data from request to database
35 * @throws javax.faces.view.facelets.FaceletException If something
38 void addProduct () throws FaceletException;
41 * Some "getter" for a linked list of all products
43 * @return All products
45 * @throws javax.faces.view.facelets.FaceletException If anything went wrong
47 List<Product> getAllProducts () throws FaceletException;
50 * Getter for product's available property
52 * @return Product's available property
54 Boolean getProductAvailability ();
57 * Setter for product's available property
59 * @param available Product's available property
61 void setProductAvailability (final Boolean available);
64 * Getter for product's category
66 * @return Product's category
68 Category getProductCategory ();
71 * Setter for product's category instance
73 * @param productCategory Product's category instance
75 void setProductCategory (final Category productCategory);
78 * Getter for product's price property
80 * @return Product's price property
82 Float getProductPrice ();
85 * Setter for product's price property
87 * @param price Product's price property
89 void setProductPrice (final Float price);
92 * Getter for product's title property
94 * @return Product's title
96 String getProductTitle ();
99 * Setter for product's title property
101 * @param title Product's title
103 void setProductTitle (final String title);