Enum PrincipalAttributesCoreProperties.MergingStrategyTypes
- java.lang.Object
-
- java.lang.Enum<PrincipalAttributesCoreProperties.MergingStrategyTypes>
-
- org.apereo.cas.configuration.model.core.authentication.PrincipalAttributesCoreProperties.MergingStrategyTypes
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PrincipalAttributesCoreProperties.MergingStrategyTypes>
- Enclosing class:
- PrincipalAttributesCoreProperties
public static enum PrincipalAttributesCoreProperties.MergingStrategyTypes extends java.lang.Enum<PrincipalAttributesCoreProperties.MergingStrategyTypes>
The merging strategy.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
Add attributes.MULTIVALUED
Multivalued attributes.NONE
No merging.REPLACE
Replace attributes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PrincipalAttributesCoreProperties.MergingStrategyTypes
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PrincipalAttributesCoreProperties.MergingStrategyTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPLACE
public static final PrincipalAttributesCoreProperties.MergingStrategyTypes REPLACE
Replace attributes. Overwrites existing attribute values, if any.
-
ADD
public static final PrincipalAttributesCoreProperties.MergingStrategyTypes ADD
Add attributes. Retains existing attribute values if any, and ignores values from subsequent sources in the resolution chain.
-
NONE
public static final PrincipalAttributesCoreProperties.MergingStrategyTypes NONE
No merging. Doesn't merge attributes, ignores attributes from non-authentication attribute repositories.
-
MULTIVALUED
public static final PrincipalAttributesCoreProperties.MergingStrategyTypes MULTIVALUED
Multivalued attributes. Combines all values into a single attribute, essentially creating a multi-valued attribute.
-
-
Method Detail
-
values
public static PrincipalAttributesCoreProperties.MergingStrategyTypes[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PrincipalAttributesCoreProperties.MergingStrategyTypes c : PrincipalAttributesCoreProperties.MergingStrategyTypes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrincipalAttributesCoreProperties.MergingStrategyTypes valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-