]> git.mxchange.org Git - jjobs-war.git/blob - src/java/org/mxchange/jjobs/beans/user/JobsAdminUserWebRequestController.java
Continued:
[jjobs-war.git] / src / java / org / mxchange / jjobs / beans / user / JobsAdminUserWebRequestController.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 org.mxchange.jusercore.events.registration.UserRegisteredEvent;
21
22 /**
23  * An interface for user beans
24  * <p>
25  * @author Roland Haeder<roland@mxchange.org>
26  */
27 public interface JobsAdminUserWebRequestController extends Serializable {
28
29         /**
30          * Event observer for new user registrations
31          * <p>
32          * @param event User registration event
33          */
34         void afterRegistrationEvent (final UserRegisteredEvent event);
35
36         /**
37          * Adds user instance to database by preparing a complete user instance and
38          * sending it to the EJB. The data set in the controller is being verified,
39          * e.g. if the user name or email address is not used yet.
40          * <p>
41          * @return Redirect outcome
42          */
43         String addUser ();
44
45         /**
46          * Edits cuirrently loaded user's data in database.
47          * <p>
48          * @return Redirect outcome
49          */
50         String editUserData ();
51
52         /**
53          * Getter for user name
54          * <p>
55          * @return User name
56          */
57         String getUserName ();
58
59         /**
60          * Setter for user name
61          * <p>
62          * @param userName User name
63          */
64         void setUserName (final String userName);
65
66         /**
67          * Getter for unencrypted user password
68          * <p>
69          * @return Unencrypted user password
70          */
71         String getUserPassword ();
72
73         /**
74          * Setter for unencrypted user password
75          * <p>
76          * @param userPassword Unencrypted user password
77          */
78         void setUserPassword (final String userPassword);
79
80         /**
81          * Getter for unencrypted user password repeated
82          * <p>
83          * @return Unencrypted user password repeated
84          */
85         String getUserPasswordRepeat ();
86
87         /**
88          * Setter for unencrypted user password repeated
89          * <p>
90          * @param userPasswordRepeat Unencrypted user password repeated
91          */
92         void setUserPasswordRepeat (final String userPasswordRepeat);
93
94 }