]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/pizzaapplication/beans/contact/PizzaAdminContactWebRequestController.java
Continued with customer:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / contact / PizzaAdminContactWebRequestController.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.contact;
18
19 import java.io.Serializable;
20 import java.util.Date;
21 import org.mxchange.jcontacts.contact.Contact;
22 import org.mxchange.jcontacts.contact.gender.Gender;
23 import org.mxchange.jcountry.data.Country;
24 import org.mxchange.jphone.phonenumbers.mobileprovider.MobileProvider;
25
26 /**
27  * Administrative interface for user beans
28  * <p>
29  * @author Roland Haeder<roland@mxchange.org>
30  */
31 public interface PizzaAdminContactWebRequestController extends Serializable {
32
33         /**
34          * Creates an instance from contact data
35          * <p>
36          * @return New contact instance
37          */
38         Contact createContactInstance ();
39
40         /**
41          * Copies given contact's data to this controller
42          * <p>
43          * @param contact Contact instance
44          */
45         void copyContactToController (final Contact contact);
46
47         /**
48          * Edits cuirrently loaded contact's data in database.
49          * <p>
50          * @return Redirect outcome
51          */
52         String changeContactData ();
53
54         /**
55          * Getter for cellphone id
56          * <p>
57          * @return Cellphone id
58          */
59         Long getCellphoneId ();
60
61         /**
62          * Setter for cellphone id
63          * <p>
64          * @param cellphoneId Cellphone id
65          */
66         void setCellphoneId (final Long cellphoneId);
67
68         /**
69          * Getter for fax id
70          * <p>
71          * @return Fax id
72          */
73         Long getFaxId ();
74
75         /**
76          * Setter for fax id
77          * <p>
78          * @param faxId Fax id
79          */
80         void setFaxId (final Long faxId);
81
82         /**
83          * Getter for land-line id
84          * <p>
85          * @return Land-line id
86          */
87         Long getLandLineId ();
88
89         /**
90          * Setter for land-line id
91          * <p>
92          * @param landLineId Land-line id
93          */
94         void setLandLineId (final Long landLineId);
95
96         /**
97          * Getter for birth day
98          * <p>
99          * @return Birth day
100          */
101         Date getBirthday ();
102
103         /**
104          * Setter for birth day
105          * <p>
106          * @param birthday Birth day
107          */
108         void setBirthday (final Date birthday);
109
110         /**
111          * Getter for ellphone number's carrier
112          * <p>
113          * @return Cellphone number's carrier
114          */
115         MobileProvider getCellphoneCarrier ();
116
117         /**
118          * Setter for cellphone number's carrier prefix
119          * <p>
120          * @param cellphoneCarrier Cellphone number's carrier prefix
121          */
122         void setCellphoneCarrier (final MobileProvider cellphoneCarrier);
123
124         /**
125          * Getter for ellphone number
126          * <p>
127          * @return Cellphone number
128          */
129         Long getCellphoneNumber ();
130
131         /**
132          * Setter for ellphone number
133          * <p>
134          * @param cellphoneNumber Cellphone number
135          */
136         void setCellphoneNumber (final Long cellphoneNumber);
137
138         /**
139          * City
140          * <p>
141          * @return the city
142          */
143         String getCity ();
144
145         /**
146          * City
147          * <p>
148          * @param city the city to set
149          */
150         void setCity (final String city);
151
152         /**
153          * Getter for comments
154          * <p>
155          * @return Comments
156          */
157         String getComment ();
158
159         /**
160          * Setter for comment
161          * <p>
162          * @param comment Comments
163          */
164         void setComment (final String comment);
165
166         /**
167          * Getter for contact id
168          * <p>
169          * @return Contact id
170          */
171         Long getContactId ();
172
173         /**
174          * Setter for contact id
175          * <p>
176          * @param contactId Contact id
177          */
178         void setContactId (final Long contactId);
179
180         /**
181          * Getter for country instance
182          * <p>
183          * @return Country instance
184          */
185         Country getCountry ();
186
187         /**
188          * Setter for country instance
189          * <p>
190          * @param country Country instance
191          */
192         void setCountry (final Country country);
193
194         /**
195          * Getter for email address
196          * <p>
197          * @return Email address
198          */
199         String getEmailAddress ();
200
201         /**
202          * Setter for email address
203          * <p>
204          * @param emailAddress Email address
205          */
206         void setEmailAddress (final String emailAddress);
207
208         /**
209          * Family name
210          * <p>
211          * @return the familyName
212          */
213         String getFamilyName ();
214
215         /**
216          * Family name
217          * <p>
218          * @param familyName the familyName to set
219          */
220         void setFamilyName (final String familyName);
221
222         /**
223          * Getter for fax number's area code
224          * <p>
225          * @return Fax number's area code
226          */
227         Integer getFaxAreaCode ();
228
229         /**
230          * Setter for fax number's area code
231          * <p>
232          * @param faxAreaCode Fax number's area code
233          */
234         void setFaxAreaCode (final Integer faxAreaCode);
235
236         /**
237          * Getter for fax's country instance
238          * <p>
239          * @return Fax' country instance
240          */
241         Country getFaxCountry ();
242
243         /**
244          * Setter for fax's country instance
245          * <p>
246          * @param faxCountry Fax' country instance
247          */
248         void setFaxCountry (final Country faxCountry);
249
250         /**
251          * Getter for fax number
252          * <p>
253          * @return Fax number
254          */
255         Long getFaxNumber ();
256
257         /**
258          * Setter for fax number
259          * <p>
260          * @param faxNumber Fax number
261          */
262         void setFaxNumber (final Long faxNumber);
263
264         /**
265          * First name
266          * <p>
267          * @return the first name
268          */
269         String getFirstName ();
270
271         /**
272          * First name
273          * <p>
274          * @param firstName the first name to set
275          */
276         void setFirstName (final String firstName);
277
278         /**
279          * Gender of the contact
280          * <p>
281          * @return the gender
282          */
283         Gender getGender ();
284
285         /**
286          * Gender of the contact
287          * <p>
288          * @param gender the gender to set
289          */
290         void setGender (final Gender gender);
291
292         /**
293          * House number
294          * <p>
295          * @return the houseNumber
296          */
297         Short getHouseNumber ();
298
299         /**
300          * House number
301          * <p>
302          * @param houseNumber the houseNumber to set
303          */
304         void setHouseNumber (final Short houseNumber);
305
306         /**
307          * Getter for phone number's area code
308          * <p>
309          * @return Phone number's area code
310          */
311         Integer getPhoneAreaCode ();
312
313         /**
314          * Setter for phone number's area code
315          * <p>
316          * @param phoneAreaCode Phone number's area code
317          */
318         void setPhoneAreaCode (final Integer phoneAreaCode);
319
320         /**
321          * Getter for phone number's country instance
322          * <p>
323          * @return Phone number's country instance
324          */
325         Country getPhoneCountry ();
326
327         /**
328          * Setter for phone number's country instance
329          * <p>
330          * @param phoneCountry Phone number's country instance
331          */
332         void setPhoneCountry (final Country phoneCountry);
333
334         /**
335          * Getter for phone number
336          * <p>
337          * @return Phone number
338          */
339         Long getPhoneNumber ();
340
341         /**
342          * Setter for phone number
343          * <p>
344          * @param phoneNumber Phone number
345          */
346         void setPhoneNumber (final Long phoneNumber);
347
348         /**
349          * Street
350          * <p>
351          * @return the street
352          */
353         String getStreet ();
354
355         /**
356          * Street
357          * <p>
358          * @param street the street to set
359          */
360         void setStreet (final String street);
361
362         /**
363          * ZIP code
364          * <p>
365          * @return the zipCode
366          */
367         Integer getZipCode ();
368
369         /**
370          * ZIP code
371          * <p>
372          * @param zipCode the zipCode to set
373          */
374         void setZipCode (final Integer zipCode);
375
376 }