Class QualificationEventLogicCopyExtension
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.action.QualificationEventLogicCopyExtension
- All Implemented Interfaces:
EventCopyExtension
-
Constructor Summary
ConstructorDescriptionQualificationEventLogicCopyExtension
(LogicCopyService logicCopyService, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy
(Entity originalEvent, Entity copiedEvent, Map<String, Boolean> configs, Map<PrimaryKey, Entity> evaluationMap, Map<PrimaryKey, Entity> inputMap, Map<Entity, Entity> originalsWithCopies) does the additional copy logiccreateCompleteCopy
(Entity original, Entity copy, @Nullable Entity parent, List<String> excludedRelations) 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
-
QualificationEventLogicCopyExtension
public QualificationEventLogicCopyExtension(LogicCopyService logicCopyService, SecurityManager securityManager)
-
-
Method Details
-
copy
public void copy(Entity originalEvent, Entity copiedEvent, Map<String, Boolean> configs, Map<PrimaryKey, Entity> evaluationMap, Map<PrimaryKey, Entity> inputMap, Map<Entity, Entity> originalsWithCopies) Description copied from interface:EventCopyExtension
does the additional copy logic- Specified by:
copy
in interfaceEventCopyExtension
- Parameters:
originalEvent
- original EntitycopiedEvent
- 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 original, Entity copy, @Nullable @Nullable Entity parent, List<String> excludedRelations) Description copied from interface:EventCopyExtension
copies all relations from original to createdEntity- Specified by:
createCompleteCopy
in interfaceEventCopyExtension
- Parameters:
original
- the original source entitycopy
- copied entity to set relations from the originalparent
- the parent entityexcludedRelations
- fields which will not be copied- Returns:
- copied Entity
-