Package org.swisspush.gateleen.user
Enum UserProfileConfiguration.UpdateStrategy
- java.lang.Object
-
- java.lang.Enum<UserProfileConfiguration.UpdateStrategy>
-
- org.swisspush.gateleen.user.UserProfileConfiguration.UpdateStrategy
-
- All Implemented Interfaces:
Serializable,Comparable<UserProfileConfiguration.UpdateStrategy>
- Enclosing class:
- UserProfileConfiguration
public static enum UserProfileConfiguration.UpdateStrategy extends Enum<UserProfileConfiguration.UpdateStrategy>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description UPDATE_ALWAYSAlways updates the profile value if the header value is valid (UserProfileConfiguration.ProfileProperty.isValid(String)) and differs from the profile value.UPDATE_ONLY_IF_PROFILE_VALUE_IS_INVALIDUpdates the value only if the value in the profile is invalid (UserProfileConfiguration.ProfileProperty.isValid(String)) and there's a valid value in the header.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserProfileConfiguration.UpdateStrategyvalueOf(String name)Returns the enum constant of this type with the specified name.static UserProfileConfiguration.UpdateStrategy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPDATE_ONLY_IF_PROFILE_VALUE_IS_INVALID
public static final UserProfileConfiguration.UpdateStrategy UPDATE_ONLY_IF_PROFILE_VALUE_IS_INVALID
Updates the value only if the value in the profile is invalid (UserProfileConfiguration.ProfileProperty.isValid(String)) and there's a valid value in the header.
-
UPDATE_ALWAYS
public static final UserProfileConfiguration.UpdateStrategy UPDATE_ALWAYS
Always updates the profile value if the header value is valid (UserProfileConfiguration.ProfileProperty.isValid(String)) and differs from the profile value.
-
-
Method Detail
-
values
public static UserProfileConfiguration.UpdateStrategy[] 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 (UserProfileConfiguration.UpdateStrategy c : UserProfileConfiguration.UpdateStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UserProfileConfiguration.UpdateStrategy valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-