Package org.apache.unomi.api
Interface PropertyMergeStrategyExecutor
-
- All Known Implementing Classes:
AddPropertyMergeStrategyExecutor,DefaultPropertyMergeStrategyExecutor,MostRecentPropertyMergeStrategyExecutor,NonEmptyPropertyMergeStrategyExecutor,OldestPropertyMergeStrategyExecutor
public interface PropertyMergeStrategyExecutorA strategy algorithm to merge profile properties such as "adding integers", "using oldest value", "using most recent value", "merging lists", etc...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanmergeProperty(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.
-
-
-
Method Detail
-
mergeProperty
boolean mergeProperty(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.- 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
-
-