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.user;
19 import java.io.Serializable;
20 import org.mxchange.jusercore.events.registration.UserRegisteredEvent;
23 * An interface for user beans
25 * @author Roland Haeder<roland@mxchange.org>
27 public interface PizzaAdminUserWebRequestController extends Serializable {
30 * Event observer for new user registrations
32 * @param event User registration event
34 void afterRegistrationEvent (final UserRegisteredEvent event);
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.
41 * @return Redirect outcome
46 * Edits cuirrently loaded user's data in database.
48 * @return Redirect outcome
50 String editUserData ();
53 * Getter for user name
57 String getUserName ();
60 * Setter for user name
62 * @param userName User name
64 void setUserName (final String userName);
67 * Getter for unencrypted user password
69 * @return Unencrypted user password
71 String getUserPassword ();
74 * Setter for unencrypted user password
76 * @param userPassword Unencrypted user password
78 void setUserPassword (final String userPassword);
81 * Getter for unencrypted user password repeated
83 * @return Unencrypted user password repeated
85 String getUserPasswordRepeat ();
88 * Setter for unencrypted user password repeated
90 * @param userPasswordRepeat Unencrypted user password repeated
92 void setUserPasswordRepeat (final String userPasswordRepeat);