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 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;
28 * Administrative interface for user beans
30 * @author Roland Haeder<roland@mxchange.org>
32 public interface PizzaAdminContactWebRequestController extends Serializable {
35 * Returns a list of all found contacts
37 * @return A list of all contacts.
39 List<Contact> allContacts();
42 * Checks whether there are contacts.
44 * @return Whether contacts are there
46 boolean hasContacts ();
49 * Creates an instance from contact data
51 * @return New contact instance
53 Contact createContactInstance ();
56 * Copies given contact's data to this controller
58 * @param contact Contact instance
60 void copyContactToController (final Contact contact);
63 * Edits cuirrently loaded contact's data in database.
65 * @return Redirect outcome
67 String changeContactData ();
70 * Getter for cellphone id
72 * @return Cellphone id
74 Long getCellphoneId ();
77 * Setter for cellphone id
79 * @param cellphoneId Cellphone id
81 void setCellphoneId (final Long cellphoneId);
95 void setFaxId (final Long faxId);
98 * Getter for land-line id
100 * @return Land-line id
102 Long getLandLineId ();
105 * Setter for land-line id
107 * @param landLineId Land-line id
109 void setLandLineId (final Long landLineId);
112 * Getter for birth day
119 * Setter for birth day
121 * @param birthday Birth day
123 void setBirthday (final Date birthday);
126 * Getter for ellphone number's carrier
128 * @return Cellphone number's carrier
130 MobileProvider getCellphoneCarrier ();
133 * Setter for cellphone number's carrier prefix
135 * @param cellphoneCarrier Cellphone number's carrier prefix
137 void setCellphoneCarrier (final MobileProvider cellphoneCarrier);
140 * Getter for ellphone number
142 * @return Cellphone number
144 Long getCellphoneNumber ();
147 * Setter for ellphone number
149 * @param cellphoneNumber Cellphone number
151 void setCellphoneNumber (final Long cellphoneNumber);
163 * @param city the city to set
165 void setCity (final String city);
168 * Getter for comments
172 String getComment ();
177 * @param comment Comments
179 void setComment (final String comment);
182 * Getter for contact id
186 Long getContactId ();
189 * Setter for contact id
191 * @param contactId Contact id
193 void setContactId (final Long contactId);
196 * Getter for country instance
198 * @return Country instance
200 Country getCountry ();
203 * Setter for country instance
205 * @param country Country instance
207 void setCountry (final Country country);
210 * Getter for email address
212 * @return Email address
214 String getEmailAddress ();
217 * Setter for email address
219 * @param emailAddress Email address
221 void setEmailAddress (final String emailAddress);
226 * @return the familyName
228 String getFamilyName ();
233 * @param familyName the familyName to set
235 void setFamilyName (final String familyName);
238 * Getter for fax number's area code
240 * @return Fax number's area code
242 Integer getFaxAreaCode ();
245 * Setter for fax number's area code
247 * @param faxAreaCode Fax number's area code
249 void setFaxAreaCode (final Integer faxAreaCode);
252 * Getter for fax's country instance
254 * @return Fax' country instance
256 Country getFaxCountry ();
259 * Setter for fax's country instance
261 * @param faxCountry Fax' country instance
263 void setFaxCountry (final Country faxCountry);
266 * Getter for fax number
270 Long getFaxNumber ();
273 * Setter for fax number
275 * @param faxNumber Fax number
277 void setFaxNumber (final Long faxNumber);
282 * @return the first name
284 String getFirstName ();
289 * @param firstName the first name to set
291 void setFirstName (final String firstName);
294 * Gender of the contact
301 * Gender of the contact
303 * @param gender the gender to set
305 void setGender (final Gender gender);
310 * @return the houseNumber
312 Short getHouseNumber ();
317 * @param houseNumber the houseNumber to set
319 void setHouseNumber (final Short houseNumber);
322 * Getter for phone number's area code
324 * @return Phone number's area code
326 Integer getPhoneAreaCode ();
329 * Setter for phone number's area code
331 * @param phoneAreaCode Phone number's area code
333 void setPhoneAreaCode (final Integer phoneAreaCode);
336 * Getter for phone number's country instance
338 * @return Phone number's country instance
340 Country getPhoneCountry ();
343 * Setter for phone number's country instance
345 * @param phoneCountry Phone number's country instance
347 void setPhoneCountry (final Country phoneCountry);
350 * Getter for phone number
352 * @return Phone number
354 Long getPhoneNumber ();
357 * Setter for phone number
359 * @param phoneNumber Phone number
361 void setPhoneNumber (final Long phoneNumber);
373 * @param street the street to set
375 void setStreet (final String street);
380 * @return the zipCode
382 Integer getZipCode ();
387 * @param zipCode the zipCode to set
389 void setZipCode (final Integer zipCode);