Class EducationalObjectiveEventLogicCopyExtension
java.lang.Object
ch.tocco.nice2.optional.educationschedule.impl.actions.logiccopy.EducationalObjectiveEventLogicCopyExtension
- All Implemented Interfaces:
EventCopyExtension
public class EducationalObjectiveEventLogicCopyExtension
extends Object
implements EventCopyExtension
Copies educational_objectives from an existing event a created event
used when a seminar is started or lifted, or a event is logic copied
used instead of EducationalObjectiveEventLogicCopyExtension from reservation when educationschedule is installed
-
Constructor Summary
ConstructorDescriptionEducationalObjectiveEventLogicCopyExtension
(SecurityManager securityManager, LogicCopyService logicCopyService) -
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
-
Constructor Details
-
EducationalObjectiveEventLogicCopyExtension
public EducationalObjectiveEventLogicCopyExtension(SecurityManager securityManager, LogicCopyService logicCopyService)
-
-
Method Details
-
copy
public void copy(Entity courseEntity, Entity copiedCourseEntity, Map<String, Boolean> configs, Map<PrimaryKey, Entity> evaluationMap, Map<PrimaryKey, Entity> inputMap, Map<Entity, Entity> originalAndCopiedEntitiesMap) Description copied from interface:EventCopyExtension
does the additional copy logic- Specified by:
copy
in interfaceEventCopyExtension
- Parameters:
courseEntity
- original EntitycopiedCourseEntity
- copied Entityconfigs
- String: id of the extension, Boolean: active or not
-
handle
public void handle(Entity eventEntity, Entity copiedEventEntity, Map<String, Boolean> configs, Map<PrimaryKey, Entity> evaluationMap, Map<PrimaryKey, Entity> inputMap) Description copied from interface:EventCopyExtension
prepare copy- Specified by:
handle
in interfaceEventCopyExtension
- Parameters:
eventEntity
- the original EntitycopiedEventEntity
- copied Entityconfigs
- String: id of the extension, Boolean: active or not
-
createCompleteCopy
public Entity createCompleteCopy(Entity originalEntity, Entity createdEntity, @Nullable @Nullable Entity parentEntity, @Nullable @Nullable List<String> excluded) Description copied from interface:EventCopyExtension
copies all relations from original to createdEntity- Specified by:
createCompleteCopy
in interfaceEventCopyExtension
- 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
-