mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 09:03:21 +00:00 
			
		
		
		
	GUACAMOLE-1123: Deprecate getHistory() method.
This commit is contained in:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user