]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/pizzaapplication/beans/product/PizzaAdminProductWebRequestController.java
Rewrites:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / product / PizzaAdminProductWebRequestController.java
1 /*
2  * Copyright (C) 2016 Roland Haeder
3  *
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.
8  *
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.
13  *
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/>.
16  */
17 package org.mxchange.pizzaapplication.beans.product;
18
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;
24
25 /**
26  * An interface for product controllers for "ADMIN" role
27  * <p>
28  * @author Roland Haeder<roland@mxchange.org>
29  */
30 public interface PizzaAdminProductWebRequestController extends Serializable {
31
32         /**
33          * Adds given product data from request to database
34          * <p>
35          * @throws javax.faces.view.facelets.FaceletException If something
36          * unexpected happened
37          */
38         void addProduct () throws FaceletException;
39
40         /**
41          * Some "getter" for a linked list of all products
42          * <p>
43          * @return All products
44          * <p>
45          * @throws javax.faces.view.facelets.FaceletException If anything went wrong
46          */
47         List<Product> getAllProducts () throws FaceletException;
48
49         /**
50          * Getter for product's available property
51          * <p>
52          * @return Product's available property
53          */
54         Boolean getProductAvailability ();
55
56         /**
57          * Setter for product's available property
58          * <p>
59          * @param available Product's available property
60          */
61         void setProductAvailability (final Boolean available);
62
63         /**
64          * Getter for product's category
65          * <p>
66          * @return Product's category
67          */
68         Category getProductCategory ();
69
70         /**
71          * Setter for product's category instance
72          * <p>
73          * @param productCategory Product's category instance
74          */
75         void setProductCategory (final Category productCategory);
76
77         /**
78          * Getter for product's price property
79          * <p>
80          * @return Product's price property
81          */
82         Float getProductPrice ();
83
84         /**
85          * Setter for product's price property
86          * <p>
87          * @param price Product's price property
88          */
89         void setProductPrice (final Float price);
90
91         /**
92          * Getter for product's title property
93          * <p>
94          * @return Product's title
95          */
96         String getProductTitle ();
97
98         /**
99          * Setter for product's title property
100          * <p>
101          * @param title Product's title
102          */
103         void setProductTitle (final String title);
104
105 }