Class DelegatingActivityRecord

    • Constructor Detail

      • DelegatingActivityRecord

        public DelegatingActivityRecord​(ActivityRecord record)
        Wraps the given ActivityRecord such that all function calls against this DelegatingActivityRecord will be delegated to it.
        Parameters:
        record - The record to wrap.
    • Method Detail

      • getDelegateActivityRecord

        protected ActivityRecord getDelegateActivityRecord()
        Returns the underlying ActivityRecord wrapped by this DelegatingActivityRecord.
        Returns:
        The ActivityRecord wrapped by this DelegatingActivityRecord.
      • getStartDate

        public Date getStartDate()
        Description copied from interface: ActivityRecord
        Returns the date and time the activity began.
        Specified by:
        getStartDate in interface ActivityRecord
        Returns:
        The date and time the activity began.
      • getEndDate

        public Date getEndDate()
        Description copied from interface: ActivityRecord
        Returns the date and time the activity ended, if applicable.
        Specified by:
        getEndDate in interface ActivityRecord
        Returns:
        The date and time the activity ended, or null if the activity is still ongoing or if the end time is unknown.
      • getRemoteHost

        public String getRemoteHost()
        Description copied from interface: ActivityRecord
        Returns the hostname or IP address of the remote host that performed the activity associated with this record, if known. If the hostname or IP address is not known, null is returned.
        Specified by:
        getRemoteHost in interface ActivityRecord
        Returns:
        The hostname or IP address of the remote host, or null if this information is not available.
      • getUsername

        public String getUsername()
        Description copied from interface: ActivityRecord
        Returns the name of the user who performed or is performing the activity at the times given by this record.
        Specified by:
        getUsername in interface ActivityRecord
        Returns:
        The name of the user who performed or is performing the associated activity.
      • isActive

        public boolean isActive()
        Description copied from interface: ActivityRecord
        Returns whether the activity associated with this record is still ongoing.
        Specified by:
        isActive in interface ActivityRecord
        Returns:
        true if the activity associated with this record is still ongoing, false otherwise.
      • getIdentifier

        public String getIdentifier()
        Description copied from interface: ActivityRecord
        Returns the unique identifier assigned to this record, if any. If this record is not uniquely identifiable, this may be null. If provided, this unique identifier MUST be unique across all ActivityRecord objects within the same ActivityRecordSet.
        Specified by:
        getIdentifier in interface ActivityRecord
        Returns:
        The unique identifier assigned to this record, or null if this record has no such identifier.
      • getUUID

        public UUID getUUID()
        Description copied from interface: ActivityRecord
        Returns a UUID that uniquely identifies this record. If provided, this UUID MUST be deterministic and unique across all ActivityRecord objects within the same ActivityRecordSet, and SHOULD be unique across all ActivityRecord objects.
        Specified by:
        getUUID in interface ActivityRecord
        Returns:
        A UUID that uniquely identifies this record, or null if no such unique identifier exists.
      • getLogs

        public Map<String,​ActivityLog> getLogs()
        Description copied from interface: ActivityRecord
        Returns a Map of logs related to this record and accessible by the current user, such as Guacamole session recordings. Each log is associated with a corresponding, arbitrary, unique name. If the user does not have access to any logs, or if no logs are available, this may be an empty map.
        Specified by:
        getLogs in interface ActivityRecord
        Returns:
        A Map of logs related to this record.
      • getAttributes

        public Map<String,​String> getAttributes()
        Description copied from interface: ReadableAttributes
        Returns all attributes associated with this object. The returned map may not be modifiable.
        Specified by:
        getAttributes in interface ActivityRecord
        Specified by:
        getAttributes in interface ReadableAttributes
        Returns:
        A map of all attribute identifiers to their corresponding values, for all attributes associated with this object, which may not be modifiable.