Interface AttributeMerger
public interface AttributeMerger
Interface for merging attributes from sibling attribute repositories.
- Since:
- 7.1.0
-
Method Summary
Modifier and TypeMethodDescriptionModify the "toModify" argument in consideration of the "toConsider" argument.mergeAvailableQueryAttributes(Set<String> toModify, Set<String> toConsider) Modify the "toModify" argument in consideration of the "toConsider" argument.mergePossibleUserAttributeNames(Set<String> toModify, Set<String> toConsider) Modify the "toModify" argument in consideration of the "toConsider" argument.mergeResults(Set<PersonAttributes> toModify, Set<PersonAttributes> toConsider) Merge the results of a Set ofPersonAttributesand a compiled results map.
-
Method Details
-
mergeResults
Set<PersonAttributes> mergeResults(Set<PersonAttributes> toModify, Set<PersonAttributes> toConsider) Merge the results of a Set ofPersonAttributesand a compiled results map.- Parameters:
toModify- The compiled results map, this will be modified based on the values in toConsider.toConsider- The query results map, this will not be modified.- Returns:
- Merged set of
PersonAttributes
-
mergePossibleUserAttributeNames
Modify the "toModify" argument in consideration of the "toConsider" argument. Return the resulting Set which may or may not be the same reference as the "toModify" argument.The modification performed is implementation-specific -- implementations of this interface exist to perform some particular transformation on the toModify argument given the toConsider argument.
- Parameters:
toModify- Modify this settoConsider- In consideration of this set- Returns:
- The modified set
- Throws:
IllegalArgumentException- if either toModify or toConsider is null
-
mergeAvailableQueryAttributes
Modify the "toModify" argument in consideration of the "toConsider" argument. Return the resulting Set which may or may not be the same reference as the "toModify" argument.The modification performed is implementation-specific -- implementations of this interface exist to perform some particular transformation on the toModify argument given the toConsider argument.
- Parameters:
toModify- Modify this settoConsider- In consideration of this set- Returns:
- The modified set
- Throws:
IllegalArgumentException- if either toModify or toConsider is null
-
mergeAttributes
Map<String,List<Object>> mergeAttributes(Map<String, List<Object>> toModify, Map<String, List<Object>> toConsider) Modify the "toModify" argument in consideration of the "toConsider" argument. Return the resulting Map, which may or may not be the same reference as the "toModify" argument. The modification performed is implementation-specific -- implementations of this interface exist to perform some particular transformation on the toModify argument given the toConsider argument.- Parameters:
toModify- - modify this maptoConsider- - in consideration of this map- Returns:
- the modified Map
- Throws:
IllegalArgumentException- if either toModify or toConsider is null
-