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