Interface EventCopyExtension
- All Known Implementing Classes:
DelegatingEventCopyExtension
,PreparationEventCopyExtension
,QualificationEventLogicCopyExtension
,SeminarQualificationEventCopyExtension
public interface EventCopyExtension
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copy entitiesboolean
default Map
<EventCopyExtension.SourceId, Entity> define related entities that should not be copied again
-
Method Details
-
isActive
- Returns:
- true if the extension should run
-
prepare
define related entities that should not be copied again- Parameters:
sourceEvent
- the source eventcopyEvent
- 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 copiedcopyEvent
- the copied eventcopiedEntities
- a map of every entity that has been copied so far, mapping from sources to copies
-