Interface UndoingSynchronizer

All Superinterfaces:
StructureSynchronizer

public interface UndoingSynchronizer extends StructureSynchronizer
A StructureSynchronizer that is able to undo synchronizer actions. To enable a synchronizer for undoing actions, the actions that are applied during StructureSynchronizer.sync(com.almworks.jira.structure.api.sync.SyncInstance, com.almworks.jira.structure.api.sync.IncrementalSyncData, com.almworks.jira.structure.api.forest.ForestSource) or StructureSynchronizer.resync(com.almworks.jira.structure.api.sync.SyncInstance, com.almworks.jira.structure.api.forest.ForestSource) should be recorded in SyncAuditLog. The synchronizer that implements this interface will then receive these actions in the same format in undo(java.util.List<com.almworks.jira.structure.api.util.MapObject>). It is up to the synchronizer author to supply sufficient information for undo in the actions recorded in SyncAuditLog.
Author:
sank
  • Field Details

  • Method Details

    • undo

      List<MapObject> undo(List<MapObject> actions)
      Undoes the specified actions, performing zero or more undo actions. Returns the performed undo actions. They should be in the same format as the specified actions.