Package org.swisspush.gateleen.user
Class UserProfileConfiguration.ProfileProperty
- java.lang.Object
-
- org.swisspush.gateleen.user.UserProfileConfiguration.ProfileProperty
-
- Enclosing class:
- UserProfileConfiguration
public static class UserProfileConfiguration.ProfileProperty extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcompileRegex()StringgetHeaderName()StringgetProfileName()UserProfileConfiguration.UpdateStrategygetUpdateStrategy()StringgetValidationRegex()StringgetValueToUseIfNoOtherValidValue()booleanisOptional()booleanisValid(String value)Value missing (null: Is valid if property optional.static UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilderwith(String headerName, String profileName)
-
-
-
Method Detail
-
with
public static UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder with(String headerName, String profileName)
-
getHeaderName
public String getHeaderName()
-
getProfileName
public String getProfileName()
-
getValueToUseIfNoOtherValidValue
public String getValueToUseIfNoOtherValidValue()
-
getValidationRegex
public String getValidationRegex()
-
getUpdateStrategy
public UserProfileConfiguration.UpdateStrategy getUpdateStrategy()
-
isOptional
public boolean isOptional()
-
isValid
public boolean isValid(String value)
Value missing (null: Is valid if property optional. Value not missing: Is valid if validation regex is missing or if the value matches the validation regex.- Parameters:
value- The value ornullif the property is missing.- Returns:
- Valid?
-
compileRegex
protected void compileRegex()
-
-