*/
User confirmAccount (final User user, final String baseUrl) throws UserStatusConfirmedException, UserStatusLockedException;
- /**
- * Generates random user name that is available.
- * <p>
- * @return Generated user name
- * <p>
- * @deprecated Please fetch whole user list and cache it in your application
- */
- @Deprecated
- String generateRandomUserName ();
-
/**
* Updates entity from given user instance and returns updated instance.
* <p>
* <p>
* @return A list of all users
*/
- List<User> allUsers ();
-
- /**
- * Fills given user instance with all available data
- * <p>
- * @param user Initial User instance
- * <p>
- * @return Prepared User instance
- * <p>
- * @throws UserNotFoundException If the user was not found
- * @deprecated Don't use this anymore
- */
- @Deprecated
- User fillUserData (final User user) throws UserNotFoundException;
-
- /**
- * Some "getter" for a full user name list
- * <p>
- * @return User name list
- * <p>
- * @deprecated Please fetch whole user list and extract all user names
- * instead
- */
- @Deprecated
- List<String> allUserNames ();
-
- /**
- * Checks if given user name is already used
- * <p>
- * @param userName User name to check
- * <p>
- * @return Whether given user name is found
- */
- boolean ifUserNameExists (final String userName);
-
- /**
- * Checks if given user exists
- * <p>
- * @param user User to check
- * <p>
- * @return Whether the user exists
- * <p>
- * @deprecated Please use your application's JCache instead
- */
- @Deprecated
- boolean ifUserExists (final User user);
-
- /**
- * Checks if the the given user's name is already registered
- * <p>
- * @param user User instance
- * <p>
- * @return Whether the user is already registered
- */
- boolean isUserNameRegistered (final User user);
-
- /**
- * Checks if the the given user's email address is already registered
- * <p>
- * @param user User instance
- * <p>
- * @return Whether the user is already registered
- */
- boolean isEmailAddressRegistered (final User user);
+ List<User> fetchAllUsers ();
/**
* Updates given user instance in database
public interface UserEmailChangeSessionBeanRemote extends Serializable {
/**
- * Checks whether given email address is already enqueued
+ * Returns a list of all queued email address changes.
* <p>
- * @param emailAddress Email address to check
- * <p>
- * @return Whether the email address has already been enqueued
- */
- boolean isEmailAddressEnqueued (final String emailAddress);
-
- /**
- * Returns a list of all queued email addresses, not limited to a user
- * <p>
- * @return A list of all queued email addresses
+ * @return A list of all queued email address changes
*/
- List<String> allQueuedAddresses ();
+ List<ChangeableEmailAddress> fetchAllQueuedAddressChanges ();
/**
* "Enqueues" given email change object
* <p>
* @param emailChange Email change instance to insert
- * @param baseUrl Base URL
+ * @param baseUrl Base URL
*/
void enqueueEmailAddressForChange (final ChangeableEmailAddress emailChange, final String baseUrl);