GUACAMOLE-1123: Deprecate getHistory() method.

This commit is contained in:
Virtually Nick
2020-08-23 15:05:00 -04:00
parent 71625340f5
commit 3d761ea794
12 changed files with 17 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ public abstract class AbstractUser extends AbstractIdentifiable
* <p>This implementation simply an immutable, empty list. Implementations
* that wish to expose user login history should override this function.
*/
@Deprecated
@Override
public List<ActivityRecord> getHistory() throws GuacamoleException {
return Collections.emptyList();

View File

@@ -106,7 +106,10 @@ public interface Connection extends Identifiable, Connectable, Attributes {
* @throws GuacamoleException If an error occurs while reading the history
* of this connection, or if permission is
* denied.
*
* @deprecated Use {@link getConnectionHistory} instead.
*/
@Deprecated
public List<? extends ConnectionRecord> getHistory() throws GuacamoleException;
/**

View File

@@ -134,6 +134,7 @@ public class DelegatingConnection implements Connection {
return connection.getLastActive();
}
@Deprecated
@Override
public List<? extends ConnectionRecord> getHistory()
throws GuacamoleException {

View File

@@ -93,6 +93,7 @@ public class DelegatingUser implements User {
return user.getLastActive();
}
@Deprecated
@Override
public List<? extends ActivityRecord> getHistory()
throws GuacamoleException {

View File

@@ -102,7 +102,11 @@ public interface User extends Identifiable, Attributes, Permissions {
* @throws GuacamoleException
* If an error occurs while reading the history of this user, or if
* permission is denied.
*
* @deprecated
* Use {@link getUserHistory} instead.
*/
@Deprecated
List<? extends ActivityRecord> getHistory() throws GuacamoleException;
/**

View File

@@ -285,6 +285,7 @@ public class SimpleConnection extends AbstractConnection {
return null;
}
@Deprecated
@Override
public List<ConnectionRecord> getHistory() throws GuacamoleException {
return Collections.<ConnectionRecord>emptyList();