Class EntityDocsRelationMergeHandler
java.lang.Object
ch.tocco.nice2.entityoperation.impl.merge.EntityDocsRelationMergeHandler
- All Implemented Interfaces:
RelationMergeHandler
@Component
public class EntityDocsRelationMergeHandler
extends Object
implements RelationMergeHandler
Merge handler that moves all documents to the target entity.
Handles all *entitydocs* relations but only actually runs once.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityDocsRelationMergeHandler(CommandExecutor commandExecutor, ContentTreeService contentTreeService, InternalEntityDocumentsService internalEntityDocumentsService, Context context, SecurityManager securityManager, TextResources textResources) -
Method Summary
Modifier and TypeMethodDescriptionmergeRelation(RelationMergeContext mergeContext) Merges the relation into the target entity.intpriority()The priority can be used to override the default handlers by using a higher priority than the default which is 0booleansupports(RelationModel relationModel)
-
Constructor Details
-
EntityDocsRelationMergeHandler
public EntityDocsRelationMergeHandler(CommandExecutor commandExecutor, ContentTreeService contentTreeService, InternalEntityDocumentsService internalEntityDocumentsService, Context context, SecurityManager securityManager, TextResources textResources)
-
-
Method Details
-
supports
- Specified by:
supportsin interfaceRelationMergeHandler- Returns:
- true if this handler supports merging the given relation model
-
mergeRelation
Description copied from interface:RelationMergeHandlerMerges the relation into the target entity.- Specified by:
mergeRelationin 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)
-
priority
public int priority()Description copied from interface:RelationMergeHandlerThe priority can be used to override the default handlers by using a higher priority than the default which is 0- Specified by:
priorityin interfaceRelationMergeHandler- Returns:
- the priority of this handler.
-