Package org.swisspush.gateleen.user
Class UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder
- java.lang.Object
-
- org.swisspush.gateleen.user.UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder
-
- Enclosing class:
- UserProfileConfiguration.ProfileProperty
public static class UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description booleanoptionalUserProfileConfiguration.UpdateStrategyupdateStrategyStringvalueToUseIfNoOtherValidValue
-
Constructor Summary
Constructors Modifier Constructor Description protectedProfilePropertyBuilder(String headerName, String profileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserProfileConfiguration.ProfilePropertybuild()UserProfileConfiguration.ProfileProperty.ProfilePropertyBuildersetOptional(boolean optional)If optional istrue, missing (null) values are always valid values (regex is ignored in this case).UserProfileConfiguration.ProfileProperty.ProfilePropertyBuildersetUpdateStrategy(UserProfileConfiguration.UpdateStrategy updateStrategy)When to update the profile property from header; defaults to UPDATE_ALWAYS.UserProfileConfiguration.ProfileProperty.ProfilePropertyBuildersetValueToUseIfNoOtherValidValue(String valueToUseIfNoOtherValidValue)Optional (nullable).UserProfileConfiguration.ProfileProperty.ProfilePropertyBuildervalidationRegex(String validationRegex)
-
-
-
Field Detail
-
optional
public boolean optional
-
updateStrategy
public UserProfileConfiguration.UpdateStrategy updateStrategy
-
valueToUseIfNoOtherValidValue
public String valueToUseIfNoOtherValidValue
-
-
Method Detail
-
validationRegex
public UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder validationRegex(String validationRegex)
-
setUpdateStrategy
public UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder setUpdateStrategy(UserProfileConfiguration.UpdateStrategy updateStrategy)
When to update the profile property from header; defaults to UPDATE_ALWAYS.
-
setOptional
public UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder setOptional(boolean optional)
If optional istrue, missing (null) values are always valid values (regex is ignored in this case). If optional isfalse,nullvalues are always invalid (regex is ignored in this case). Defaults tofalse.
-
setValueToUseIfNoOtherValidValue
public UserProfileConfiguration.ProfileProperty.ProfilePropertyBuilder setValueToUseIfNoOtherValidValue(String valueToUseIfNoOtherValidValue)
Optional (nullable). What value to use if there's no valid value in the profile and also no valid value in the headers.
-
build
public UserProfileConfiguration.ProfileProperty build()
-
-