Class MigrationLogImpl

java.lang.Object
com.atlassian.jira.upgrade.tasks.role.MigrationLogImpl
All Implemented Interfaces:
MigrationLog

public class MigrationLogImpl extends Object implements MigrationLog
  • Constructor Details

    • MigrationLogImpl

      public MigrationLogImpl()
    • MigrationLogImpl

      public MigrationLogImpl(@Nonnull List<AuditEntry> events, @Nonnull AuditEntry event)
  • Method Details

    • events

      @Nonnull public Collection<AuditEntry> events()
      Description copied from interface: MigrationLog
      Gets all the events recorded so far.
      Specified by:
      events in interface MigrationLog
      Returns:
      all the events accumulated in this chain of loggers
    • log

      public MigrationLog log(@Nonnull AuditEntry event)
      Description copied from interface: MigrationLog
      Accumulates a new event for logging into a new MigrationLog.
      Specified by:
      log in interface MigrationLog
      Parameters:
      event - the event to log
      Returns:
      a new MigrationLog which is a copy of this one with the new event added
    • toString

      public String toString()
      Overrides:
      toString in class Object