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