Package org.forgerock.opendj.rest2ldap
Class ReferencePropertyMapper
java.lang.Object
org.forgerock.opendj.rest2ldap.PropertyMapper
org.forgerock.opendj.rest2ldap.ReferencePropertyMapper
An property mapper which provides a mapping from a JSON value to a single DN
valued LDAP attribute.
-
Method Summary
Modifier and TypeMethodDescriptionfinal ReferencePropertyMapperisMultiValued(boolean isMultiValued) Indicates that the LDAP attribute is multi-valued and should be represented in JSON using an array of values.final ReferencePropertyMapperisRequired(boolean isRequired) Indicates that the LDAP attribute is mandatory and must be provided during create requests.static voidputWritabilityProperties(WritabilityPolicy writabilityPolicy, org.forgerock.json.JsonValue jsonSchema) searchFilter(String filter) Sets the filter which should be used when searching for referenced LDAP entries.searchFilter(org.forgerock.opendj.ldap.Filter filter) Sets the filter which should be used when searching for referenced LDAP entries.searchScope(org.forgerock.opendj.ldap.SearchScope scope) Sets the search scope which should be used when searching for referenced LDAP entries.toString()final ReferencePropertyMapperwritability(WritabilityPolicy policy) Indicates whether the LDAP attribute supports updates.
-
Method Details
-
searchFilter
Sets the filter which should be used when searching for referenced LDAP entries. The default is(objectClass=*).- Parameters:
filter- The filter which should be used when searching for referenced LDAP entries.- Returns:
- This property mapper.
-
searchFilter
Sets the filter which should be used when searching for referenced LDAP entries. The default is(objectClass=*).- Parameters:
filter- The filter which should be used when searching for referenced LDAP entries.- Returns:
- This property mapper.
-
searchScope
Sets the search scope which should be used when searching for referenced LDAP entries. The default isSearchScope.WHOLE_SUBTREE.- Parameters:
scope- The search scope which should be used when searching for referenced LDAP entries.- Returns:
- This property mapper.
-
toString
-
isRequired
Indicates that the LDAP attribute is mandatory and must be provided during create requests.- Parameters:
isRequired-trueif this property is required.- Returns:
- This property mapper.
-
isMultiValued
Indicates that the LDAP attribute is multi-valued and should be represented in JSON using an array of values.- Parameters:
isMultiValued-trueif this property is multi-valued.- Returns:
- This property mapper.
-
writability
Indicates whether the LDAP attribute supports updates. The default isWritabilityPolicy.READ_WRITE.- Parameters:
policy- The writability policy.- Returns:
- This property mapper.
-
putWritabilityProperties
public static void putWritabilityProperties(WritabilityPolicy writabilityPolicy, org.forgerock.json.JsonValue jsonSchema)
-