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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmergeAvailableQueryAttributes(Set<String> toModify, Set<String> toConsider) mergePossibleUserAttributeNames(Set<String> toModify, Set<String> toConsider) 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)
-
Constructor Details
-
BaseAdditiveAttributeMerger
public BaseAdditiveAttributeMerger()
-
-
Method Details
-
mergeAvailableQueryAttributes
- Specified by:
mergeAvailableQueryAttributesin interfaceorg.apereo.cas.authentication.principal.merger.AttributeMerger
-
mergePossibleUserAttributeNames
- Specified by:
mergePossibleUserAttributeNamesin interfaceorg.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:
mergeResultsin interfaceorg.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:
mergeAttributesin interfaceorg.apereo.cas.authentication.principal.merger.AttributeMerger
-