Class DefaultPropertyMergeStrategyExecutor
java.lang.Object
org.apache.unomi.services.mergers.DefaultPropertyMergeStrategyExecutor
- All Implemented Interfaces:
PropertyMergeStrategyExecutor
public class DefaultPropertyMergeStrategyExecutor
extends Object
implements PropertyMergeStrategyExecutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanmergeProperty(String propertyName, PropertyType propertyType, List<Profile> profilesToMerge, Profile targetProfile) Merges the value of the property identified by the specified name and type from the specified profiles into the specified target profile.
-
Constructor Details
-
DefaultPropertyMergeStrategyExecutor
public DefaultPropertyMergeStrategyExecutor()
-
-
Method Details
-
mergeProperty
public boolean mergeProperty(String propertyName, PropertyType propertyType, List<Profile> profilesToMerge, Profile targetProfile) Description copied from interface:PropertyMergeStrategyExecutorMerges the value of the property identified by the specified name and type from the specified profiles into the specified target profile.- Specified by:
mergePropertyin interfacePropertyMergeStrategyExecutor- Parameters:
propertyName- the name of the property to be mergedpropertyType- the type of the property to be mergedprofilesToMerge- a List of profiles to mergetargetProfile- the target profile into which the specified profiles will be merged- Returns:
trueif the target profile was successfully modified as the result of the merge,falseotherwise
-