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 ReservationEducationalObjectiveEventLogicCopyExtension from reservation when educationschedule is installed
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.event.api.eventcopy.EventCopyExtension
EventCopyExtension.SourceId
-
Constructor Summary
ConstructorDescriptionEducationalObjectiveEventLogicCopyExtension
(SecurityManager securityManager, LogicCopyService logicCopyService) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.optional.event.api.eventcopy.EventCopyExtension
prepare
-
Constructor Details
-
EducationalObjectiveEventLogicCopyExtension
public EducationalObjectiveEventLogicCopyExtension(SecurityManager securityManager, LogicCopyService logicCopyService)
-
-
Method Details
-
isActive
- Specified by:
isActive
in interfaceEventCopyExtension
- Returns:
- true if the extension should run
-
copy
public void copy(Entity sourceEvent, Entity copyEvent, Map<EventCopyExtension.SourceId, Entity> copiedEntities) Description copied from interface:EventCopyExtension
copy entities- Specified by:
copy
in interfaceEventCopyExtension
- 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
-