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 * Adds contact data to database and redirects on success. If the contact is
35 * already found, a proper exception is thrown.
37 * @return Redirect outcome
42 * Creates an instance from contact data
44 * @return New contact instance
46 Contact createContactInstance ();
49 * Copies given contact's data to this controller
51 * @param contact Contact instance
53 void copyContactToController (final Contact contact);
56 * Edits cuirrently loaded contact's data in database.
58 * @return Redirect outcome
60 String editContactData ();
63 * Getter for cellphone id
65 * @return Cellphone id
67 Long getCellphoneId ();
70 * Setter for cellphone id
72 * @param cellphoneId Cellphone id
74 void setCellphoneId (final Long cellphoneId);
88 void setFaxId (final Long faxId);
91 * Getter for land-line id
93 * @return Land-line id
95 Long getLandLineId ();
98 * Setter for land-line id
100 * @param landLineId Land-line id
102 void setLandLineId (final Long landLineId);
105 * Getter for birth day
112 * Setter for birth day
114 * @param birthday Birth day
116 void setBirthday (final Date birthday);
119 * Getter for ellphone number's carrier
121 * @return Cellphone number's carrier
123 MobileProvider getCellphoneCarrier ();
126 * Setter for cellphone number's carrier prefix
128 * @param cellphoneCarrier Cellphone number's carrier prefix
130 void setCellphoneCarrier (final MobileProvider cellphoneCarrier);
133 * Getter for ellphone number
135 * @return Cellphone number
137 Long getCellphoneNumber ();
140 * Setter for ellphone number
142 * @param cellphoneNumber Cellphone number
144 void setCellphoneNumber (final Long cellphoneNumber);
156 * @param city the city to set
158 void setCity (final String city);
161 * Getter for comments
165 String getComment ();
170 * @param comment Comments
172 void setComment (final String comment);
175 * Getter for contact id
179 Long getContactId ();
182 * Setter for contact id
184 * @param contactId Contact id
186 void setContactId (final Long contactId);
189 * Getter for country instance
191 * @return Country instance
193 Country getCountry ();
196 * Setter for country instance
198 * @param country Country instance
200 void setCountry (final Country country);
203 * Getter for email address
205 * @return Email address
207 String getEmailAddress ();
210 * Setter for email address
212 * @param emailAddress Email address
214 void setEmailAddress (final String emailAddress);
219 * @return the familyName
221 String getFamilyName ();
226 * @param familyName the familyName to set
228 void setFamilyName (final String familyName);
231 * Getter for fax number's area code
233 * @return Fax number's area code
235 Integer getFaxAreaCode ();
238 * Setter for fax number's area code
240 * @param faxAreaCode Fax number's area code
242 void setFaxAreaCode (final Integer faxAreaCode);
245 * Getter for fax's country instance
247 * @return Fax' country instance
249 Country getFaxCountry ();
252 * Setter for fax's country instance
254 * @param faxCountry Fax' country instance
256 void setFaxCountry (final Country faxCountry);
259 * Getter for fax number
263 Long getFaxNumber ();
266 * Setter for fax number
268 * @param faxNumber Fax number
270 void setFaxNumber (final Long faxNumber);
275 * @return the first name
277 String getFirstName ();
282 * @param firstName the first name to set
284 void setFirstName (final String firstName);
287 * Gender of the contact
294 * Gender of the contact
296 * @param gender the gender to set
298 void setGender (final Gender gender);
303 * @return the houseNumber
305 Short getHouseNumber ();
310 * @param houseNumber the houseNumber to set
312 void setHouseNumber (final Short houseNumber);
315 * Getter for phone number's area code
317 * @return Phone number's area code
319 Integer getPhoneAreaCode ();
322 * Setter for phone number's area code
324 * @param phoneAreaCode Phone number's area code
326 void setPhoneAreaCode (final Integer phoneAreaCode);
329 * Getter for phone number's country instance
331 * @return Phone number's country instance
333 Country getPhoneCountry ();
336 * Setter for phone number's country instance
338 * @param phoneCountry Phone number's country instance
340 void setPhoneCountry (final Country phoneCountry);
343 * Getter for phone number
345 * @return Phone number
347 Long getPhoneNumber ();
350 * Setter for phone number
352 * @param phoneNumber Phone number
354 void setPhoneNumber (final Long phoneNumber);
366 * @param street the street to set
368 void setStreet (final String street);
373 * @return the zipCode
375 Integer getZipCode ();
380 * @param zipCode the zipCode to set
382 void setZipCode (final Integer zipCode);