Class DelegatingEventCopyExtension
java.lang.Object
ch.tocco.nice2.optional.event.api.eventcopy.DelegatingEventCopyExtension
- All Implemented Interfaces:
EventCopyExtension
Deprecated.
this is a wrapper to use old
EventCopyExtension
that
have not yet been migrated together with new EventCopyExtension
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.event.api.eventcopy.EventCopyExtension
EventCopyExtension.SourceId
-
Constructor Summary
ConstructorDescriptionDelegatingEventCopyExtension
(PersistenceService persistenceService, EventCopyExtension oldExtension, Collection<EventCopyExtensionFactory.AdditionalCopyConfigurations> relevantConfigurations) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.copy entitiesboolean
Deprecated.Deprecated.define related entities that should not be copied again
-
Constructor Details
-
DelegatingEventCopyExtension
public DelegatingEventCopyExtension(PersistenceService persistenceService, EventCopyExtension oldExtension, Collection<EventCopyExtensionFactory.AdditionalCopyConfigurations> relevantConfigurations) Deprecated.
-
-
Method Details
-
isActive
Deprecated.- Specified by:
isActive
in interfaceEventCopyExtension
- Returns:
- true if the extension should run
-
prepare
Deprecated.Description copied from interface:EventCopyExtension
define related entities that should not be copied again- Specified by:
prepare
in interfaceEventCopyExtension
- Parameters:
sourceEvent
- the source eventcopyEvent
- the copied event- Returns:
- a map with sources as keys and copied entities as values
-
copy
public void copy(Entity sourceEvent, Entity copyEvent, Map<EventCopyExtension.SourceId, Entity> copiedEntities) Deprecated.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
-
oldExtension
and use new extension directly