Interface MergeEntitiesService
- All Known Implementing Classes:
MergeEntitiesServiceImpl
public interface MergeEntitiesService
-
Method Summary
Modifier and TypeMethodDescriptiongetMergeConfig
(String modelName, List<String> entityKeys) Compute which fields/relations are showed to the usermerge
(String modelName, String targetEntityKey, List<String> sourceEntityKeys, Map<String, ?> updatedPaths, List<MergeRelationBean> mergeRelations) Processes the merging of source entities into a target entity
-
Method Details
-
getMergeConfig
Compute which fields/relations are showed to the user- Parameters:
modelName
- model name of the entitiesentityKeys
- list of entity keys which should be merged- Returns:
- a configuration object of showed fields and relations
-
merge
EntityMergeResult merge(String modelName, String targetEntityKey, List<String> sourceEntityKeys, Map<String, ?> updatedPaths, List<MergeRelationBean> mergeRelations) Processes the merging of source entities into a target entity- Parameters:
modelName
- model name of the target/source entitiestargetEntityKey
- key of the target entitysourceEntityKeys
- list of keys of the source entitiesupdatedPaths
- map of paths which are mergedmergeRelations
- relations where are related entities are copied to the target entity- Returns:
- summary of the merge process (e.g. permission related issue)
-