]> git.mxchange.org Git - pizzaservice-war.git/blob - src/java/org/mxchange/pizzaapplication/beans/user/PizzaAdminUserWebSessionController.java
Continued with admin area:
[pizzaservice-war.git] / src / java / org / mxchange / pizzaapplication / beans / user / PizzaAdminUserWebSessionController.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.pizzaapplication.beans.user;
18
19 import java.io.Serializable;
20 import java.util.Date;
21 import java.util.List;
22 import org.mxchange.jcontacts.contact.gender.Gender;
23 import org.mxchange.jcountry.data.Country;
24 import org.mxchange.jphone.phonenumbers.smsprovider.SmsProvider;
25 import org.mxchange.jusercore.exceptions.UserNotFoundException;
26 import org.mxchange.jusercore.model.user.User;
27 import org.mxchange.jusercore.model.user.profilemodes.ProfileMode;
28
29 /**
30  * An interface for user beans
31  * <p>
32  * @author Roland Haeder<roland@mxchange.org>
33  */
34 public interface PizzaAdminUserWebSessionController extends Serializable {
35
36         /**
37          * Tries to lookup user by given id number. If the user is not found or the
38          * account status is not CONFIRMED proper exceptions are thrown.
39          * <p>
40          * @param userId User id
41          * <p>
42          * @return User instance
43          * <p>
44          * @throws UserNotFoundException If the user is not found
45          */
46         User lookupUserById (final Long userId) throws UserNotFoundException;
47
48         /**
49          * All users
50          * <p>
51          * @return A list of all public user profiles
52          */
53         List<User> allUsers ();
54
55         /**
56          * Getter for birth day
57          * <p>
58          * @return Birth day
59          */
60         Date getBirthday ();
61
62         /**
63          * Setter for birth day
64          * <p>
65          * @param birthday Birth day
66          */
67         void setBirthday (final Date birthday);
68
69         /**
70          * Getter for ellphone number's carrier
71          * <p>
72          * @return Cellphone number's carrier
73          */
74         SmsProvider getCellphoneCarrier ();
75
76         /**
77          * Setter for cellphone number's carrier prefix
78          * <p>
79          * @param cellphoneCarrier Cellphone number's carrier prefix
80          */
81         void setCellphoneCarrier (final SmsProvider cellphoneCarrier);
82
83         /**
84          * Getter for ellphone number
85          * <p>
86          * @return Cellphone number
87          */
88         Long getCellphoneNumber ();
89
90         /**
91          * Setter for ellphone number
92          * <p>
93          * @param cellphoneNumber Cellphone number
94          */
95         void setCellphoneNumber (final Long cellphoneNumber);
96
97         /**
98          * City
99          * <p>
100          * @return the city
101          */
102         String getCity ();
103
104         /**
105          * City
106          * <p>
107          * @param city the city to set
108          */
109         void setCity (final String city);
110
111         /**
112          * Getter for comments
113          * <p>
114          * @return Comments
115          */
116         String getComment ();
117
118         /**
119          * Setter for comment
120          * <p>
121          * @param comment Comments
122          */
123         void setComment (final String comment);
124
125         /**
126          * Getter for country instance
127          * <p>
128          * @return Country instance
129          */
130         Country getCountry ();
131
132         /**
133          * Setter for country instance
134          * <p>
135          * @param country Country instance
136          */
137         void setCountry (final Country country);
138
139         /**
140          * Getter for email address
141          * <p>
142          * @return Email address
143          */
144         String getEmailAddress ();
145
146         /**
147          * Setter for email address
148          * <p>
149          * @param emailAddress Email address
150          */
151         void setEmailAddress (final String emailAddress);
152
153         /**
154          * Family name
155          * <p>
156          * @return the familyName
157          */
158         String getFamilyName ();
159
160         /**
161          * Family name
162          * <p>
163          * @param familyName the familyName to set
164          */
165         void setFamilyName (final String familyName);
166
167         /**
168          * Getter for fax number's area code
169          * <p>
170          * @return Fax number's area code
171          */
172         Integer getFaxAreaCode ();
173
174         /**
175          * Setter for fax number's area code
176          * <p>
177          * @param faxAreaCode Fax number's area code
178          */
179         void setFaxAreaCode (final Integer faxAreaCode);
180
181         /**
182          * Getter for fax's country instance
183          * <p>
184          * @return Fax' country instance
185          */
186         Country getFaxCountry ();
187
188         /**
189          * Setter for fax's country instance
190          * <p>
191          * @param faxCountry Fax' country instance
192          */
193         void setFaxCountry (final Country faxCountry);
194
195         /**
196          * Getter for fax number
197          * <p>
198          * @return Fax number
199          */
200         Long getFaxNumber ();
201
202         /**
203          * Setter for fax number
204          * <p>
205          * @param faxNumber Fax number
206          */
207         void setFaxNumber (final Long faxNumber);
208
209         /**
210          * First name
211          * <p>
212          * @return the first name
213          */
214         String getFirstName ();
215
216         /**
217          * First name
218          * <p>
219          * @param firstName the first name to set
220          */
221         void setFirstName (final String firstName);
222
223         /**
224          * Gender of the contact
225          * <p>
226          * @return the gender
227          */
228         Gender getGender ();
229
230         /**
231          * Gender of the contact
232          * <p>
233          * @param gender the gender to set
234          */
235         void setGender (final Gender gender);
236
237         /**
238          * House number
239          * <p>
240          * @return the houseNumber
241          */
242         Short getHouseNumber ();
243
244         /**
245          * House number
246          * <p>
247          * @param houseNumber the houseNumber to set
248          */
249         void setHouseNumber (final Short houseNumber);
250
251         /**
252          * Getter for phone number's area code
253          * <p>
254          * @return Phone number's area code
255          */
256         Integer getPhoneAreaCode ();
257
258         /**
259          * Setter for phone number's area code
260          * <p>
261          * @param phoneAreaCode Phone number's area code
262          */
263         void setPhoneAreaCode (final Integer phoneAreaCode);
264
265         /**
266          * Getter for phone number's country instance
267          * <p>
268          * @return Phone number's country instance
269          */
270         Country getPhoneCountry ();
271
272         /**
273          * Setter for phone number's country instance
274          * <p>
275          * @param phoneCountry Phone number's country instance
276          */
277         void setPhoneCountry (final Country phoneCountry);
278
279         /**
280          * Getter for phone number
281          * <p>
282          * @return Phone number
283          */
284         Long getPhoneNumber ();
285
286         /**
287          * Setter for phone number
288          * <p>
289          * @param phoneNumber Phone number
290          */
291         void setPhoneNumber (final Long phoneNumber);
292
293         /**
294          * Street
295          * <p>
296          * @return the street
297          */
298         String getStreet ();
299
300         /**
301          * Street
302          * <p>
303          * @param street the street to set
304          */
305         void setStreet (final String street);
306
307         /**
308          * Getter for user id
309          * <p>
310          * @return User id
311          */
312         Long getUserId ();
313
314         /**
315          * Setter for user id
316          * <p>
317          * @param userId User id
318          */
319         void setUserId (final Long userId);
320
321         /**
322          * Getter for user name
323          * <p>
324          * @return User name
325          */
326         String getUserName ();
327
328         /**
329          * Setter for user name
330          * <p>
331          * @param userName User name
332          */
333         void setUserName (final String userName);
334
335         /**
336          * Getter for unencrypted user password
337          * <p>
338          * @return Unencrypted user password
339          */
340         String getUserPassword ();
341
342         /**
343          * Setter for unencrypted user password
344          * <p>
345          * @param userPassword Unencrypted user password
346          */
347         void setUserPassword (final String userPassword);
348
349         /**
350          * Getter for unencrypted user password repeated
351          * <p>
352          * @return Unencrypted user password repeated
353          */
354         String getUserPasswordRepeat ();
355
356         /**
357          * Setter for unencrypted user password repeated
358          * <p>
359          * @param userPasswordRepeat Unencrypted user password repeated
360          */
361         void setUserPasswordRepeat (final String userPasswordRepeat);
362
363         /**
364          * Getter for user profile mode
365          * <p>
366          * @return User profile mode
367          */
368         ProfileMode getUserProfileMode ();
369
370         /**
371          * Setter for user profile mode
372          * <p>
373          * @param userProfileMode User profile mode
374          */
375         void setUserProfileMode (final ProfileMode userProfileMode);
376
377         /**
378          * ZIP code
379          * <p>
380          * @return the zipCode
381          */
382         Integer getZipCode ();
383
384         /**
385          * ZIP code
386          * <p>
387          * @param zipCode the zipCode to set
388          */
389         void setZipCode (final Integer zipCode);
390
391 }