Class ToManyRelationMergeHandler
java.lang.Object
ch.tocco.nice2.entityoperation.spi.merge.ToManyRelationMergeHandler
- All Implemented Interfaces:
RelationMergeHandler
- Direct Known Subclasses:
AbstractAddressAddressAndUserUserRelationMergeHandler
,UserRegistrationRelationMergeHandler
Merge handler which handles to-many relations.
-
Constructor Summary
ConstructorDescriptionToManyRelationMergeHandler
(TextResources textResources, SecurityManager securityManager, BusinessUnitManager businessUnitManager, DeleteService deleteService, PersistenceService persistenceService) -
Method Summary
Modifier and TypeMethodDescriptionmergeRelation
(RelationMergeContext mergeContext) Merges the relation into the target entity.boolean
supports
(RelationModel relationModel) 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.entityoperation.api.merge.RelationMergeHandler
priority
-
Constructor Details
-
ToManyRelationMergeHandler
public ToManyRelationMergeHandler(TextResources textResources, SecurityManager securityManager, BusinessUnitManager businessUnitManager, DeleteService deleteService, PersistenceService persistenceService)
-
-
Method Details
-
supports
- Specified by:
supports
in interfaceRelationMergeHandler
- Returns:
- true if this handler supports merging the given relation model
-
mergeRelation
Description copied from interface:RelationMergeHandler
Merges the relation into the target entity.- Specified by:
mergeRelation
in interfaceRelationMergeHandler
- Parameters:
mergeContext
- contains the necessary data to perform the merge operation (like relation model and target entity)- Returns:
- merge result (for example skipped entities)
-