From: Roland Häder Date: Tue, 13 Mar 2018 00:23:26 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7222446ce746c318434686d3699c480dbf15ef6b;p=juser-lib.git Continued: - removed/deprecated no longer recommended methods, please invoke getAllUsers() and use JCache in your application instead - updated copyright year Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java index a75a983..d2b4a85 100644 --- a/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/AdminUserSessionBeanRemote.java @@ -1,5 +1,5 @@ /* - * 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 diff --git a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java index 8a183f0..f93402f 100644 --- a/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/UserSessionBeanRemote.java @@ -1,5 +1,5 @@ /* - * 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 @@ -66,7 +66,10 @@ public interface UserSessionBeanRemote extends Serializable { * Generates random user name that is available. *

* @return Generated user name + *

+ * @deprecated Please fetch whole user list and cache it in your application */ + @Deprecated String generateRandomUserName (); /** @@ -86,21 +89,6 @@ public interface UserSessionBeanRemote extends Serializable { */ List allUsers (); - /** - * Returns a list with all public and member-visible users. Members are - * logged-in users. ;-) - *

- * @return A list of public and member-visible users - */ - List allMemberPublicVisibleUsers (); - - /** - * Returns a list of all public user profiles - *

- * @return A list of all public user profiles - */ - List allPublicUsers (); - /** * Fills given user instance with all available data *

@@ -109,22 +97,21 @@ public interface UserSessionBeanRemote extends Serializable { * @return Prepared User instance *

* @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 *

* @return User name list - */ - List allUserNames (); - - /** - * Some "getter" for a full email address list *

- * @return User name list + * @deprecated Please fetch whole user list and extract all user names + * instead */ - List getEmailAddressList (); + @Deprecated + List allUserNames (); /** * Checks if given user name is already used @@ -141,7 +128,10 @@ public interface UserSessionBeanRemote extends Serializable { * @param user User to check *

* @return Whether the user exists + *

+ * @deprecated Please use your application's JCache instead */ + @Deprecated boolean ifUserExists (final User user); /** diff --git a/src/org/mxchange/jusercore/model/user/email_address/UserEmailChangeSessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/email_address/UserEmailChangeSessionBeanRemote.java index 6eb6775..ee8a581 100644 --- a/src/org/mxchange/jusercore/model/user/email_address/UserEmailChangeSessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/email_address/UserEmailChangeSessionBeanRemote.java @@ -1,5 +1,5 @@ /* - * 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 diff --git a/src/org/mxchange/jusercore/model/user/password_history/UserPasswordHistorySessionBeanRemote.java b/src/org/mxchange/jusercore/model/user/password_history/UserPasswordHistorySessionBeanRemote.java index ccaa0e6..e9e6dfa 100644 --- a/src/org/mxchange/jusercore/model/user/password_history/UserPasswordHistorySessionBeanRemote.java +++ b/src/org/mxchange/jusercore/model/user/password_history/UserPasswordHistorySessionBeanRemote.java @@ -1,5 +1,5 @@ /* - * 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