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