Class MultivaluedAttributeMerger

java.lang.Object
org.apereo.cas.authentication.principal.merger.BaseAdditiveAttributeMerger
org.apereo.cas.authentication.principal.merger.MultivaluedAttributeMerger
All Implemented Interfaces:
org.apereo.cas.authentication.principal.merger.AttributeMerger

public class MultivaluedAttributeMerger extends BaseAdditiveAttributeMerger
Merger that retains values from both maps. If a value exists for a key in both maps the following is done:
  • If both maps have a List they are merged into a single List
  • If one map has a List and the other a single value the value is added to the List
  • If both maps have a single value a List is created from the two.
Since:
7.1.0
  • Constructor Details

    • MultivaluedAttributeMerger

      public MultivaluedAttributeMerger()
  • Method Details

    • isDistinctValues

      public boolean isDistinctValues()
    • setDistinctValues

      public void setDistinctValues(boolean distinctValues)