Class BaseAdditiveAttributeMerger

java.lang.Object
org.apereo.cas.authentication.principal.merger.BaseAdditiveAttributeMerger
All Implemented Interfaces:
org.apereo.cas.authentication.principal.merger.AttributeMerger
Direct Known Subclasses:
MultivaluedAttributeMerger, NoncollidingAttributeAdder, ReplacingAttributeAdder, ReturnChangesAttributeMerger, ReturnOriginalAttributeMerger

public abstract class BaseAdditiveAttributeMerger extends Object implements org.apereo.cas.authentication.principal.merger.AttributeMerger
Merges the Sets of Persons additively calling the abstract mergePersonAttributes(Map, Map) method on the attributes of Persons that exist in both sets. The mergeAvailableQueryAttributes(Set, Set) and mergePossibleUserAttributeNames(Set, Set) methods do a simple additive merge of the sets. These can be overridden by subclasses.
Since:
7.1.0
  • Constructor Details

    • BaseAdditiveAttributeMerger

      public BaseAdditiveAttributeMerger()
  • Method Details

    • mergeAvailableQueryAttributes

      public Set<String> mergeAvailableQueryAttributes(Set<String> toModify, Set<String> toConsider)
      Specified by:
      mergeAvailableQueryAttributes in interface org.apereo.cas.authentication.principal.merger.AttributeMerger
    • mergePossibleUserAttributeNames

      public Set<String> mergePossibleUserAttributeNames(Set<String> toModify, Set<String> toConsider)
      Specified by:
      mergePossibleUserAttributeNames in interface org.apereo.cas.authentication.principal.merger.AttributeMerger
    • mergeResults

      public final Set<org.apereo.cas.authentication.principal.attribute.PersonAttributes> mergeResults(Set<org.apereo.cas.authentication.principal.attribute.PersonAttributes> toModify, Set<org.apereo.cas.authentication.principal.attribute.PersonAttributes> toConsider)
      Specified by:
      mergeResults in interface org.apereo.cas.authentication.principal.merger.AttributeMerger
    • mergeAttributes

      public Map<String,List<Object>> mergeAttributes(Map<String,List<Object>> toModify, Map<String,List<Object>> toConsider)
      Specified by:
      mergeAttributes in interface org.apereo.cas.authentication.principal.merger.AttributeMerger