Interface EventCopyExtension
- All Known Implementing Classes:
EducationalObjectiveEventLogicCopyExtension
,QualificationEventLogicCopyExtension
,ReservationEducationalObjectiveEventLogicCopyExtension
,SeminarQualificationEventCopyExtension
public interface EventCopyExtension
make it possible to extend the eventLogicCopyAction with additional functionality
example: qualificationEventLogicCopyExtension
-
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(Entity courseEntity, Entity copiedCourseEntity, Map<String, Boolean> configs, Map<PrimaryKey, Entity> evaluationMap, Map<PrimaryKey, Entity> inputMap, Map<Entity, Entity> originalAndCopiedEntitiesMap) does the additional copy logiccreateCompleteCopy
(Entity originalEntity, Entity createdEntity, @Nullable Entity parentEntity, @Nullable List<String> excluded) copies all relations from original to createdEntityvoid
handle
(Entity eventEntity, Entity copiedEventEntity, Map<String, Boolean> configs, Map<PrimaryKey, Entity> evaluationMap, Map<PrimaryKey, Entity> inputMap) prepare copy
-
Method Details
-
copy
void copy(Entity courseEntity, Entity copiedCourseEntity, Map<String, Boolean> configs, Map<PrimaryKey, Entity> evaluationMap, Map<PrimaryKey, Entity> inputMap, Map<Entity, Entity> originalAndCopiedEntitiesMap) does the additional copy logic- Parameters:
courseEntity
- original EntitycopiedCourseEntity
- copied Entityconfigs
- String: id of the extension, Boolean: active or not
-
handle
void handle(Entity eventEntity, Entity copiedEventEntity, Map<String, Boolean> configs, Map<PrimaryKey, Entity> evaluationMap, Map<PrimaryKey, Entity> inputMap) prepare copy- Parameters:
eventEntity
- the original EntitycopiedEventEntity
- copied Entityconfigs
- String: id of the extension, Boolean: active or not
-
createCompleteCopy
Entity createCompleteCopy(Entity originalEntity, Entity createdEntity, @Nullable @Nullable Entity parentEntity, @Nullable @Nullable List<String> excluded) throws PersistException, InterruptedException copies all relations from original to createdEntity- Parameters:
originalEntity
- the original source entitycreatedEntity
- copied entity to set relations from the originalparentEntity
- the parent entityexcluded
- fields which will not be copied- Returns:
- copied Entity
- Throws:
PersistException
InterruptedException
-