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