Interface AttributeMerger


public interface AttributeMerger
Interface for merging attributes from sibling attribute repositories.
Since:
7.1.0
  • Method Details

    • mergeResults

      Set<PersonAttributes> mergeResults(Set<PersonAttributes> toModify, Set<PersonAttributes> toConsider)
      Merge the results of a Set of PersonAttributes and 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

      Set<String> mergePossibleUserAttributeNames(Set<String> toModify, Set<String> toConsider)
      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 set
      toConsider - In consideration of this set
      Returns:
      The modified set
      Throws:
      IllegalArgumentException - if either toModify or toConsider is null
    • mergeAvailableQueryAttributes

      Set<String> mergeAvailableQueryAttributes(Set<String> toModify, Set<String> toConsider)
      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 set
      toConsider - 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 map
      toConsider - - in consideration of this map
      Returns:
      the modified Map
      Throws:
      IllegalArgumentException - if either toModify or toConsider is null