mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-1123: Deprecate getHistory() method.
This commit is contained in:
@@ -260,6 +260,7 @@ public class ModeledConnection extends ModeledChildDirectoryObject<ConnectionMod
|
||||
return getModel().getLastActive();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<? extends ConnectionRecord> getHistory() throws GuacamoleException {
|
||||
return connectionService.retrieveHistory(getCurrentUser(), this);
|
||||
|
@@ -154,6 +154,7 @@ public class SharedConnection implements Connection {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<? extends ConnectionRecord> getHistory()
|
||||
throws GuacamoleException {
|
||||
|
@@ -101,6 +101,7 @@ public class SharedUser implements User {
|
||||
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<ActivityRecord> getHistory() throws GuacamoleException {
|
||||
|
||||
|
@@ -754,6 +754,7 @@ public class ModeledUser extends ModeledPermissions<UserModel> implements User {
|
||||
return getModel().getLastActive();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<ActivityRecord> getHistory() throws GuacamoleException {
|
||||
return userService.retrieveHistory(getCurrentUser(), this);
|
||||
|
@@ -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();
|
||||
|
@@ -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;
|
||||
|
||||
/**
|
||||
|
@@ -134,6 +134,7 @@ public class DelegatingConnection implements Connection {
|
||||
return connection.getLastActive();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<? extends ConnectionRecord> getHistory()
|
||||
throws GuacamoleException {
|
||||
|
@@ -93,6 +93,7 @@ public class DelegatingUser implements User {
|
||||
return user.getLastActive();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<? extends ActivityRecord> getHistory()
|
||||
throws GuacamoleException {
|
||||
|
@@ -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;
|
||||
|
||||
/**
|
||||
|
@@ -285,6 +285,7 @@ public class SimpleConnection extends AbstractConnection {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<ConnectionRecord> getHistory() throws GuacamoleException {
|
||||
return Collections.<ConnectionRecord>emptyList();
|
||||
|
@@ -140,6 +140,7 @@ public class APIConnectionWrapper implements Connection {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<? extends ConnectionRecord> getHistory() throws GuacamoleException {
|
||||
return Collections.<ConnectionRecord>emptyList();
|
||||
|
@@ -140,6 +140,7 @@ public class APIUserWrapper implements User {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
@Override
|
||||
public List<? extends ActivityRecord> getHistory() throws GuacamoleException {
|
||||
return Collections.<ActivityRecord>emptyList();
|
||||
|
Reference in New Issue
Block a user