public final class JsonPropertyMapper extends PropertyMapper
| Modifier and Type | Method and Description |
|---|---|
JsonPropertyMapper |
defaultJsonValue(Object defaultValue)
Sets the default JSON value which should be substituted when the LDAP attribute is not found in the LDAP entry.
|
JsonPropertyMapper |
defaultJsonValues(Collection<?> defaultValues)
Sets the default JSON values which should be substituted when the LDAP attribute is not found in the LDAP entry.
|
T |
isMultiValued(boolean isMultiValued)
Indicates that the LDAP attribute is multi-valued and should be represented in JSON using an array of values.
|
T |
isRequired(boolean isRequired)
Indicates that the LDAP attribute is mandatory and must be provided during create requests.
|
JsonPropertyMapper |
jsonSchema(org.forgerock.json.JsonValue jsonSchema)
Sets the JSON schema corresponding to this simple property mapper.
|
static void |
putWritabilityProperties(WritabilityPolicy writabilityPolicy,
org.forgerock.json.JsonValue jsonSchema) |
String |
toString() |
T |
writability(WritabilityPolicy policy)
Indicates whether the LDAP attribute supports updates.
|
public JsonPropertyMapper defaultJsonValue(Object defaultValue)
defaultValue - The default JSON value.public JsonPropertyMapper defaultJsonValues(Collection<?> defaultValues)
defaultValues - The default JSON values.public JsonPropertyMapper jsonSchema(org.forgerock.json.JsonValue jsonSchema)
null,
it will be returned by toJsonSchema(), otherwise a default JSON schema will be
automatically generated with the information available in this property mapper.jsonSchema - the JSON schema corresponding to this simple property mapper. Can be nullpublic final T isRequired(boolean isRequired)
isRequired - true if this property is required.public final T isMultiValued(boolean isMultiValued)
isMultiValued - true if this property is multi-valued.public final T writability(WritabilityPolicy policy)
WritabilityPolicy.READ_WRITE.policy - The writability policy.public static void putWritabilityProperties(WritabilityPolicy writabilityPolicy, org.forgerock.json.JsonValue jsonSchema)
Copyright © 2017-2020 Wren Security. All Rights Reserved.