Class UserRegistrationRelationMergeHandler
java.lang.Object
ch.tocco.nice2.entityoperation.spi.merge.ToManyRelationMergeHandler
ch.tocco.nice2.optional.reservation.impl.actions.mergehandler.UserRegistrationRelationMergeHandler
- All Implemented Interfaces:
RelationMergeHandler
-
Constructor Summary
ConstructorDescriptionUserRegistrationRelationMergeHandler
(Context context, TextResources textResources, SecurityManager securityManager, BusinessUnitManager businessUnitManager, DeleteService deleteService) -
Method Summary
Modifier and TypeMethodDescriptionprotected EntityMergeResult
doMergeRelation
(RelationMergeContext mergeContext) mergeRelation
(RelationMergeContext mergeContext) Merges the relation into the target entity.int
priority()
The priority can be used to override the default handlers by using a higher priority than the default which is 0boolean
supports
(RelationModel relationModel)
-
Constructor Details
-
UserRegistrationRelationMergeHandler
public UserRegistrationRelationMergeHandler(Context context, TextResources textResources, SecurityManager securityManager, BusinessUnitManager businessUnitManager, DeleteService deleteService)
-
-
Method Details
-
supports
- Specified by:
supports
in interfaceRelationMergeHandler
- Overrides:
supports
in classToManyRelationMergeHandler
- 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
- Overrides:
mergeRelation
in classToManyRelationMergeHandler
- Parameters:
mergeContext
- contains the necessary data to perform the merge operation (like relation model and target entity)- Returns:
- merge result (for example skipped entities)
-
doMergeRelation
-
priority
public int priority()Description copied from interface:RelationMergeHandler
The priority can be used to override the default handlers by using a higher priority than the default which is 0- Returns:
- the priority of this handler.
-