| Modifier and Type | Class and Description |
|---|---|
static class |
Rest2LDAP.Builder
A builder for incrementally constructing LDAP resource collections.
|
| Modifier and Type | Method and Description |
|---|---|
static org.forgerock.json.resource.ResourceException |
asResourceException(Throwable t)
Adapts a
Throwable to a ResourceException. |
static Rest2LDAP.Builder |
builder()
Returns a builder for incrementally constructing LDAP resource
collections.
|
static org.forgerock.opendj.ldap.ConnectionFactory |
configureConnectionFactory(org.forgerock.json.fluent.JsonValue configuration,
String name)
Creates a new connection factory using the named configuration in the
provided JSON list of factory configurations.
|
static org.forgerock.opendj.ldap.ConnectionFactory |
configureConnectionFactory(org.forgerock.json.fluent.JsonValue configuration,
String name,
ClassLoader providerClassLoader)
Creates a new connection factory using the named configuration in the
provided JSON list of factory configurations.
|
static AttributeMapper |
constant(Object value)
Returns an attribute mapper which maps a single JSON attribute to a JSON
constant.
|
static ObjectAttributeMapper |
object()
Returns an attribute mapper which maps JSON objects to LDAP attributes.
|
static ReferenceAttributeMapper |
reference(org.forgerock.opendj.ldap.AttributeDescription attribute,
org.forgerock.opendj.ldap.DN baseDN,
org.forgerock.opendj.ldap.AttributeDescription primaryKey,
AttributeMapper mapper)
Returns an attribute mapper which provides a mapping from a JSON value to
a single DN valued LDAP attribute.
|
static ReferenceAttributeMapper |
reference(String attribute,
String baseDN,
String primaryKey,
AttributeMapper mapper)
Returns an attribute mapper which provides a mapping from a JSON value to
a single DN valued LDAP attribute.
|
static SimpleAttributeMapper |
simple(org.forgerock.opendj.ldap.AttributeDescription attribute)
Returns an attribute mapper which provides a simple mapping from a JSON
value to a single LDAP attribute.
|
static SimpleAttributeMapper |
simple(String attribute)
Returns an attribute mapper which provides a simple mapping from a JSON
value to a single LDAP attribute.
|
public static org.forgerock.json.resource.ResourceException asResourceException(Throwable t)
Throwable to a ResourceException. If the
Throwable is an LDAP LdapException then an
appropriate ResourceException is returned, otherwise an
InternalServerErrorException is returned.t - The Throwable to be converted.public static Rest2LDAP.Builder builder()
public static org.forgerock.opendj.ldap.ConnectionFactory configureConnectionFactory(org.forgerock.json.fluent.JsonValue configuration, String name, ClassLoader providerClassLoader)
configuration - The JSON configuration.name - The name of the connection factory configuration to be parsed.providerClassLoader - The ClassLoader used to fetch the
TransportProvider.
This can be useful in OSGI environments.IllegalArgumentException - If the configuration is invalid.public static org.forgerock.opendj.ldap.ConnectionFactory configureConnectionFactory(org.forgerock.json.fluent.JsonValue configuration, String name)
configuration - The JSON configuration.name - The name of the connection factory configuration to be parsed.IllegalArgumentException - If the configuration is invalid.public static AttributeMapper constant(Object value)
value - The constant JSON value (a Boolean, Number, String, Map, or
List).public static ObjectAttributeMapper object()
public static ReferenceAttributeMapper reference(org.forgerock.opendj.ldap.AttributeDescription attribute, org.forgerock.opendj.ldap.DN baseDN, org.forgerock.opendj.ldap.AttributeDescription primaryKey, AttributeMapper mapper)
attribute - The DN valued LDAP attribute to be mapped.baseDN - The search base DN for performing reverse lookups.primaryKey - The search primary key LDAP attribute to use for performing
reverse lookups.mapper - An attribute mapper which will be used to map LDAP attributes
in the referenced entry.public static ReferenceAttributeMapper reference(String attribute, String baseDN, String primaryKey, AttributeMapper mapper)
attribute - The DN valued LDAP attribute to be mapped.baseDN - The search base DN for performing reverse lookups.primaryKey - The search primary key LDAP attribute to use for performing
reverse lookups.mapper - An attribute mapper which will be used to map LDAP attributes
in the referenced entry.public static SimpleAttributeMapper simple(org.forgerock.opendj.ldap.AttributeDescription attribute)
attribute - The LDAP attribute to be mapped.public static SimpleAttributeMapper simple(String attribute)
attribute - The LDAP attribute to be mapped.Copyright © 2011-2015 ForgeRock AS. All Rights Reserved.