]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/pizzaapplication/beans/helper/PizzaAdminWebRequestController.java
d867fd8ae8e52ad47e2c0a7e39883feaec30e874
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / helper / PizzaAdminWebRequestController.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.helper;
18
19 import java.io.Serializable;
20 import org.mxchange.jcontacts.contact.Contact;
21 import org.mxchange.jusercore.model.user.User;
22
23 /**
24  * An interface for general bean helper
25  * <p>
26  * @author Roland Haeder<roland@mxchange.org>
27  */
28 public interface PizzaAdminWebRequestController extends Serializable {
29
30         /**
31          * Getter for user instance
32          * <p>
33          * @return User instance
34          */
35         User getUser ();
36
37         /**
38          * Setter for user instance
39          * <p>
40          * @param user User instance
41          */
42         void setUser (final User user);
43
44         /**
45          * Copies currently set user instance's data to adminUserController
46          */
47         void copyUserToController ();
48
49         /**
50          * Returns a message key depending on if this contact is a user and/or a
51          * contact. If this contact is unused, a default key is returned.
52          * <p>
53          * @param contact Contact instance to check
54          * <p>
55          * @return Message key
56          */
57         String getUserCustomerUsageMessageKey (final Contact contact);
58
59         /**
60          * Getter for contact instance
61          * <p>
62          * @return Contact instance
63          */
64         Contact getContact ();
65
66         /**
67          * Setter for contact instance
68          * <p>
69          * @param contact Contact instance
70          */
71         void setContact (final Contact contact);
72
73         /**
74          * Copies currently set contact instance's data to adminContactController
75          */
76         void copyContactToController ();
77
78 }