← Back to plugin index

Boolean From Map Value Provider

Description
Defines a boolean value to be provided from a Value Map Provider and a key. If the key is not present, then depending on the configured settings, an empty value (null) or 'false' is returned.

If the provided value is a string, the provider will attempt to convert it to a boolean. Only true/false is recognized.

If the value is an incompatible type, or the string cannot be converted, an error is thrown.

Type name
BooleanFromMapValueProvider
Class
com.airlock.iam.flow.shared.application.configuration.valueprovider.BooleanFromMapValueProviderConfig
May be used by
Properties
Key (key)
Description
Case-sensitive key to select the boolean in the value map.
Attributes
String
Mandatory
Example
secret_questions_enabled
Example
tos_accepted
Provide false for missing entry (provideFalseIfEmpty)
Description
If set, the provider will return boolean 'false' instead of an empty value (null) if the key is not present in the value map.
Attributes
Boolean
Optional
Default value
false
YAML Template (with default values)

type: BooleanFromMapValueProvider
id: BooleanFromMapValueProvider-xxxxxx
displayName: 
comment: 
properties:
  key:
  provideFalseIfEmpty: false
  valueMaps: