/*
- * Copyright (C) 2016, 2017 Free Software Foundation
+ * Copyright (C) 2016 - 2018 Free Software Foundation
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* 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 ();
/**
*/
List<User> allUsers ();
- /**
- * Returns a list with all public and member-visible users. Members are
- * logged-in users. ;-)
- * <p>
- * @return A list of public and member-visible users
- */
- List<User> allMemberPublicVisibleUsers ();
-
- /**
- * Returns a list of all public user profiles
- * <p>
- * @return A list of all public user profiles
- */
- List<User> allPublicUsers ();
-
/**
* Fills given user instance with all available data
* <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
- */
- List<String> allUserNames ();
-
- /**
- * Some "getter" for a full email address list
* <p>
- * @return User name list
+ * @deprecated Please fetch whole user list and extract all user names
+ * instead
*/
- List<String> getEmailAddressList ();
+ @Deprecated
+ List<String> allUserNames ();
/**
* Checks if given user name is already used
* @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);
/**