Class 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.
    • 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 interface ActivityLog
        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 interface ActivityLog
        Returns:
        A human-readable message that describes this log.