]> git.mxchange.org Git - jjobs-war.git/blob - src/java/org/mxchange/jjobs/beans/user/password/JobsUserPasswordWebRequestController.java
updated copyright + author
[jjobs-war.git] / src / java / org / mxchange / jjobs / beans / user / password / JobsUserPasswordWebRequestController.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.password;
18
19 import java.io.Serializable;
20 import javax.ejb.Local;
21
22 /**
23  * An interface for user beans
24  * <p>
25  * @author Roland Haeder<roland@mxchange.org>
26  */
27 @Local
28 public interface JobsUserPasswordWebRequestController extends Serializable {
29
30         /**
31          * Getter for unencrypted user password
32          * <p>
33          * @return Unencrypted user password
34          */
35         String getUserPassword ();
36
37         /**
38          * Setter for unencrypted user password
39          * <p>
40          * @param userPassword Unencrypted user password
41          */
42         void setUserPassword (final String userPassword);
43
44         /**
45          * Getter for current unencrypted user password
46          * <p>
47          * @return Current unencrypted user password
48          */
49         String getUserCurrentPassword ();
50
51         /**
52          * Setter for current unencrypted user password
53          * <p>
54          * @param userCurrentPassword Current unencrypted user password
55          */
56         void setUserCurrentPassword (final String userCurrentPassword);
57
58         /**
59          * Getter for unencrypted user password repeated
60          * <p>
61          * @return Unencrypted user password repeated
62          */
63         String getUserPasswordRepeat ();
64
65         /**
66          * Setter for unencrypted user password repeated
67          * <p>
68          * @param userPasswordRepeat Unencrypted user password repeated
69          */
70         void setUserPasswordRepeat (final String userPasswordRepeat);
71
72         /**
73          * Changes logged-in user's password. It must not match with current password and should not appear in password history list for X (configurable) entries.
74          * <p>
75          * @return Redirect outcome
76          */
77         String doChangePassword ();
78
79 }