Interface EventCopyExtension
- All Known Implementing Classes:
ClassroomCopyExtension,EducationalObjectiveEventLogicCopyExtension,PreparationEventCopyExtension,QualificationEventLogicCopyExtension,RegistrationEventCopyExtension,ReservationEducationalObjectiveEventLogicCopyExtension,SeminarQualificationEventCopyExtension
public interface EventCopyExtension
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy entitiesbooleandefault 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
-