Class ConsentMappingCallback.Builder
java.lang.Object
org.forgerock.openam.authentication.callbacks.ConsentMappingCallback.Builder
- Enclosing class:
- ConsentMappingCallback
Builder for ConsentMappingCallback.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the ConsentMappingCallback.withAccessLevel
(String accessLevel) Set the access level for the mapping.withDisplayName
(String displayName) Set the display name of the mapping.withFields
(List<String> fields) Set the fields for the mapping.Set the icon for the mapping.withMessage
(String message) Set the message for the mapping.Set the name of the mapping.withRequired
(boolean isRequired) Set whether the mapping is required.
-
Method Details
-
withName
Set the name of the mapping.- Parameters:
name
- the name of the mapping- Returns:
- this builder
-
withDisplayName
Set the display name of the mapping.- Parameters:
displayName
- the display name of the mapping- Returns:
- this builder
-
withIcon
Set the icon for the mapping.- Parameters:
icon
- the icon for the mapping- Returns:
- this builder
-
withAccessLevel
Set the access level for the mapping.- Parameters:
accessLevel
- the access level for the mapping- Returns:
- this builder
-
withFields
Set the fields for the mapping.- Parameters:
fields
- the fields for the mapping- Returns:
- this builder
-
withRequired
Set whether the mapping is required.- Parameters:
isRequired
- whether the mapping is required- Returns:
- this builder
-
withMessage
Set the message for the mapping.- Parameters:
message
- the message for the mapping- Returns:
- this builder
-
build
Build the ConsentMappingCallback.- Returns:
- the ConsentMappingCallback
-