]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/pizzaapplication/beans/customer/PizzaCustomerWebSessionController.java
Some rewrites:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / customer / PizzaCustomerWebSessionController.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.customer;
18
19 import java.io.Serializable;
20 import org.mxchange.jcontacts.contact.gender.Gender;
21 import org.mxchange.jcountry.data.Country;
22 import org.mxchange.jcustomercore.model.customer.Customer;
23 import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber;
24 import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber;
25 import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber;
26
27 /**
28  * An interface for customer beans
29  * <p>
30  * @author Roland Haeder<roland@mxchange.org>
31  */
32 public interface PizzaCustomerWebSessionController extends Serializable {
33
34         /**
35          * Creates an instance from all properties
36          * <p>
37          * @return A Customer instance
38          */
39         Customer createCustomerInstance ();
40
41         /**
42          * Cellphone number
43          * <p>
44          * @return the cellphoneNumber
45          */
46         DialableCellphoneNumber getCellphoneNumber ();
47
48         /**
49          * Cellphone number
50          * <p>
51          * @param cellphoneNumber the cellphoneNumber to set
52          */
53         void setCellphoneNumber (final DialableCellphoneNumber cellphoneNumber);
54
55         /**
56          * City
57          * <p>
58          * @return the city
59          */
60         String getCity ();
61
62         /**
63          * City
64          * <p>
65          * @param city the city to set
66          */
67         void setCity (final String city);
68
69         /**
70          * Getter for country instance
71          * <p>
72          * @return Country instance
73          */
74         Country getCountry ();
75
76         /**
77          * Setter for country instance
78          * <p>
79          * @param country Country instance
80          */
81         void setCountry (final Country country);
82
83         /**
84          * Email address
85          * <p>
86          * @return the emailAddress
87          */
88         String getEmailAddress ();
89
90         /**
91          * Email address
92          * <p>
93          * @param emailAddress the emailAddress to set
94          */
95         void setEmailAddress (final String emailAddress);
96
97         /**
98          * Family name
99          * <p>
100          * @return the familyName
101          */
102         String getFamilyName ();
103
104         /**
105          * Family name
106          * <p>
107          * @param familyName the familyName to set
108          */
109         void setFamilyName (final String familyName);
110
111         /**
112          * Fax number
113          * <p>
114          * @return the faxNumber
115          */
116         DialableFaxNumber getFaxNumber ();
117
118         /**
119          * Fax number
120          * <p>
121          * @param faxNumber the faxNumber to set
122          */
123         void setFaxNumber (final DialableFaxNumber faxNumber);
124
125         /**
126          * First name
127          * <p>
128          * @return the first name
129          */
130         String getFirstName ();
131
132         /**
133          * First name
134          * <p>
135          * @param firstName the first name to set
136          */
137         void setFirstName (final String firstName);
138
139         /**
140          * Gender of the contact
141          * <p>
142          * @return the gender
143          */
144         Gender getGender ();
145
146         /**
147          * Gender of the contact
148          * <p>
149          * @param gender the gender to set
150          */
151         void setGender (final Gender gender);
152
153         /**
154          * House number
155          * <p>
156          * @return the houseNumber
157          */
158         Short getHouseNumber ();
159
160         /**
161          * House number
162          * <p>
163          * @param houseNumber the houseNumber to set
164          */
165         void setHouseNumber (final Short houseNumber);
166
167         /**
168          * Phone number
169          * <p>
170          * @return the phoneNumber
171          */
172         DialableLandLineNumber getPhoneNumber ();
173
174         /**
175          * Phone number
176          * <p>
177          * @param phoneNumber the phoneNumber to set
178          */
179         void setPhoneNumber (final DialableLandLineNumber phoneNumber);
180
181         /**
182          * Street
183          * <p>
184          * @return the street
185          */
186         String getStreet ();
187
188         /**
189          * Street
190          * <p>
191          * @param street the street to set
192          */
193         void setStreet (final String street);
194
195         /**
196          * ZIP code
197          * <p>
198          * @return the zipCode
199          */
200         Integer getZipCode ();
201
202         /**
203          * ZIP code
204          * <p>
205          * @param zipCode the zipCode to set
206          */
207         void setZipCode (final Integer zipCode);
208
209         /**
210          * Checks whether all required personal data is set
211          * <p>
212          * @return Whether the required personal data is set
213          */
214         boolean isRequiredPersonalDataSet ();
215 }