Package org.apache.guacamole.net.auth
Class AbstractActivityLog
- java.lang.Object
-
- org.apache.guacamole.net.auth.AbstractActivityLog
-
- All Implemented Interfaces:
ActivityLog
- Direct Known Subclasses:
FileActivityLog
public abstract class AbstractActivityLog extends Object implements ActivityLog
Base implementation of an ActivityLog, providing storage and simple getters/setters for its main properties.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.guacamole.net.auth.ActivityLog
ActivityLog.Type
-
-
Field Summary
-
Fields inherited from interface org.apache.guacamole.net.auth.ActivityLog
UNKNOWN_SIZE
-
-
Constructor Summary
Constructors Constructor Description AbstractActivityLog(ActivityLog.Type type, TranslatableMessage description)
Creates a new AbstractActivityLog having the given type and human-readable description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TranslatableMessage
getDescription()
Returns a human-readable message that describes this log.ActivityLog.Type
getType()
Returns the type of this activity log.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.guacamole.net.auth.ActivityLog
getContent, getSize
-
-
-
-
Constructor Detail
-
AbstractActivityLog
public AbstractActivityLog(ActivityLog.Type type, TranslatableMessage description)
Creates a new AbstractActivityLog having the given type and human-readable description.- Parameters:
type
- The type of this ActivityLog.description
- A human-readable message that describes this log.
-
-
Method Detail
-
getType
public ActivityLog.Type getType()
Description copied from interface:ActivityLog
Returns the type of this activity log. The type of an activity log dictates how its content should be interpreted or exposed.- Specified by:
getType
in interfaceActivityLog
- Returns:
- The type of this activity log.
-
getDescription
public TranslatableMessage getDescription()
Description copied from interface:ActivityLog
Returns a human-readable message that describes this log. This message should provide sufficient information for a user with access to this log to understand its context and/or purpose.- Specified by:
getDescription
in interfaceActivityLog
- Returns:
- A human-readable message that describes this log.
-
-