/*
- * Copyright (C) 2016 Roland Haeder
+ * Copyright (C) 2016, 2020 Free Software Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
package org.mxchange.addressbook.beans.user;
import java.io.Serializable;
-import java.util.List;
-import org.mxchange.jusercore.events.user.update.UpdatedUserPersonalDataEvent;
-import org.mxchange.jusercore.exceptions.UserNotFoundException;
-import org.mxchange.jusercore.model.user.User;
/**
* An interface for user beans
* <p>
- * @author Roland Haeder<roland@mxchange.org>
+ * @author Roland Hรคder<roland@mxchange.org>
*/
public interface AddressbookAdminUserWebRequestController extends Serializable {
- /**
- * Listens to fired event when user updated personal data
- * <p>
- * @param event Event being fired
- */
- void afterUserUpdatedPersonalData (final UpdatedUserPersonalDataEvent event);
-
- /**
- * Tries to lookup user by given id number. If the user is not found or the
- * account status is not CONFIRMED proper exceptions are thrown.
- * <p>
- * @param userId User id
- * <p>
- * @return User instance
- * <p>
- * @throws UserNotFoundException If the user is not found
- */
- User lookupUserById (final Long userId) throws UserNotFoundException;
-
- /**
- * All users
- * <p>
- * @return A list of all public user profiles
- */
- List<User> allUsers ();
-
- /**
- * Checks whether users are registered
- * <p>
- * @return Whether users are registered
- */
- boolean hasUsers ();
-
- /**
- * Adds user instance to database by preparing a complete user instance and
- * sending it to the EJB. The data set in the controller is being verified,
- * e.g. if the user name or email address is not used yet.
- * <p>
- * @return Redirect outcome
- */
- String addUser ();
-
- /**
- * Edits cuirrently loaded user's data in database.
- * <p>
- * @return Redirect outcome
- */
- String changeUserData ();
-
- /**
- * Getter for user name
- * <p>
- * @return User name
- */
- String getUserName ();
-
- /**
- * Setter for user name
- * <p>
- * @param userName User name
- */
- void setUserName (final String userName);
-
- /**
- * Getter for unencrypted user password
- * <p>
- * @return Unencrypted user password
- */
- String getUserPassword ();
-
- /**
- * Setter for unencrypted user password
- * <p>
- * @param userPassword Unencrypted user password
- */
- void setUserPassword (final String userPassword);
-
- /**
- * Getter for unencrypted user password repeated
- * <p>
- * @return Unencrypted user password repeated
- */
- String getUserPasswordRepeat ();
-
- /**
- * Setter for unencrypted user password repeated
- * <p>
- * @param userPasswordRepeat Unencrypted user password repeated
- */
- void setUserPasswordRepeat (final String userPasswordRepeat);
-
}