Interface EventCopyExtension

All Known Implementing Classes:
DelegatingEventCopyExtension, PreparationEventCopyExtension, QualificationEventLogicCopyExtension, SeminarQualificationEventCopyExtension

public interface EventCopyExtension
  • Method Details

    • isActive

      boolean isActive(Map<String,Boolean> configs)
      Returns:
      true if the extension should run
    • prepare

      default Map<EventCopyExtension.SourceId,Entity> prepare(Entity sourceEvent, Entity copyEvent)
      define related entities that should not be copied again
      Parameters:
      sourceEvent - the source event
      copyEvent - the copied event
      Returns:
      a map with sources as keys and copied entities as values
    • copy

      void copy(Entity sourceEvent, Entity copyEvent, Map<EventCopyExtension.SourceId,Entity> copiedEntities)
      copy entities
      Parameters:
      sourceEvent - the original event that is being copied
      copyEvent - the copied event
      copiedEntities - a map of every entity that has been copied so far, mapping from sources to copies