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 java.lang.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()java.lang.StringgetHeaderName()java.lang.StringgetProfileName()UserProfileConfiguration.UpdateStrategygetUpdateStrategy()java.lang.StringgetValidationRegex()java.lang.StringgetValueToUseIfNoOtherValidValue()booleanisOptional()booleanisValid(java.lang.String value)Value missing (null: Is valid if property optional.static UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilderwith(java.lang.String headerName, java.lang.String profileName)
-
-
-
Method Detail
-
with
public static UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder with(java.lang.String headerName, java.lang.String profileName)
-
getHeaderName
public java.lang.String getHeaderName()
-
getProfileName
public java.lang.String getProfileName()
-
getValueToUseIfNoOtherValidValue
public java.lang.String getValueToUseIfNoOtherValidValue()
-
getValidationRegex
public java.lang.String getValidationRegex()
-
getUpdateStrategy
public UserProfileConfiguration.UpdateStrategy getUpdateStrategy()
-
isOptional
public boolean isOptional()
-
isValid
public boolean isValid(java.lang.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()
-
-