2 * Copyright (C) 2016 Roland Haeder
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.
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.
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/>.
17 package org.mxchange.addressbook.beans.contact;
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;
27 * An administrative interface for user beans
29 * @author Roland Haeder<roland@mxchange.org>
31 public interface AddressbookAdminContactWebRequestController extends Serializable {
34 * Copies given contact's data to this controller
36 * @param contact Contact instance
38 void copyContactToController (final Contact contact);
41 * Edits cuirrently loaded contact's data in database.
43 * @return Redirect outcome
45 String editContactData ();
48 * Getter for cellphone id
50 * @return Cellphone id
52 Long getCellphoneId ();
55 * Setter for cellphone id
57 * @param cellphoneId Cellphone id
59 void setCellphoneId (final Long cellphoneId);
73 void setFaxId (final Long faxId);
76 * Getter for land-line id
78 * @return Land-line id
80 Long getLandLineId ();
83 * Setter for land-line id
85 * @param landLineId Land-line id
87 void setLandLineId (final Long landLineId);
90 * Getter for birth day
97 * Setter for birth day
99 * @param birthday Birth day
101 void setBirthday (final Date birthday);
104 * Getter for ellphone number's carrier
106 * @return Cellphone number's carrier
108 MobileProvider getCellphoneCarrier ();
111 * Setter for cellphone number's carrier prefix
113 * @param cellphoneCarrier Cellphone number's carrier prefix
115 void setCellphoneCarrier (final MobileProvider cellphoneCarrier);
118 * Getter for ellphone number
120 * @return Cellphone number
122 Long getCellphoneNumber ();
125 * Setter for ellphone number
127 * @param cellphoneNumber Cellphone number
129 void setCellphoneNumber (final Long cellphoneNumber);
141 * @param city the city to set
143 void setCity (final String city);
146 * Getter for comments
150 String getComment ();
155 * @param comment Comments
157 void setComment (final String comment);
160 * Getter for contact id
164 Long getContactId ();
167 * Setter for contact id
169 * @param contactId Contact id
171 void setContactId (final Long contactId);
174 * Getter for country instance
176 * @return Country instance
178 Country getCountry ();
181 * Setter for country instance
183 * @param country Country instance
185 void setCountry (final Country country);
188 * Getter for email address
190 * @return Email address
192 String getEmailAddress ();
195 * Setter for email address
197 * @param emailAddress Email address
199 void setEmailAddress (final String emailAddress);
204 * @return the familyName
206 String getFamilyName ();
211 * @param familyName the familyName to set
213 void setFamilyName (final String familyName);
216 * Getter for fax number's area code
218 * @return Fax number's area code
220 Integer getFaxAreaCode ();
223 * Setter for fax number's area code
225 * @param faxAreaCode Fax number's area code
227 void setFaxAreaCode (final Integer faxAreaCode);
230 * Getter for fax's country instance
232 * @return Fax' country instance
234 Country getFaxCountry ();
237 * Setter for fax's country instance
239 * @param faxCountry Fax' country instance
241 void setFaxCountry (final Country faxCountry);
244 * Getter for fax number
248 Long getFaxNumber ();
251 * Setter for fax number
253 * @param faxNumber Fax number
255 void setFaxNumber (final Long faxNumber);
260 * @return the first name
262 String getFirstName ();
267 * @param firstName the first name to set
269 void setFirstName (final String firstName);
272 * Gender of the contact
279 * Gender of the contact
281 * @param gender the gender to set
283 void setGender (final Gender gender);
288 * @return the houseNumber
290 Short getHouseNumber ();
295 * @param houseNumber the houseNumber to set
297 void setHouseNumber (final Short houseNumber);
300 * Getter for phone number's area code
302 * @return Phone number's area code
304 Integer getPhoneAreaCode ();
307 * Setter for phone number's area code
309 * @param phoneAreaCode Phone number's area code
311 void setPhoneAreaCode (final Integer phoneAreaCode);
314 * Getter for phone number's country instance
316 * @return Phone number's country instance
318 Country getPhoneCountry ();
321 * Setter for phone number's country instance
323 * @param phoneCountry Phone number's country instance
325 void setPhoneCountry (final Country phoneCountry);
328 * Getter for phone number
330 * @return Phone number
332 Long getPhoneNumber ();
335 * Setter for phone number
337 * @param phoneNumber Phone number
339 void setPhoneNumber (final Long phoneNumber);
351 * @param street the street to set
353 void setStreet (final String street);
358 * @return the zipCode
360 Integer getZipCode ();
365 * @param zipCode the zipCode to set
367 void setZipCode (final Integer zipCode);