public final class Converters extends Object
Modifier and Type | Method and Description |
---|---|
static org.forgerock.opendj.ldap.Attribute |
from(Attribute attribute)
Converts from OpenDJ server
Attribute to
OpenDJ LDAP SDK Attribute . |
static BackendVLVIndexCfgDefn.Scope |
from(BackendVLVIndexCfgDefn.Scope scope)
Converts from OpenDJ server
BackendVLVIndexCfgDefn.Scope to
BackendVLVIndexCfgDefn.Scope . |
static org.forgerock.opendj.ldap.controls.Control |
from(Control control)
Converts from OpenDJ server
Control to
OpenDJ LDAP SDK Control . |
static org.forgerock.opendj.ldap.DN |
from(DN dn)
Converts from OpenDJ server
DN to OpenDJ
LDAP SDK DN . |
static org.forgerock.opendj.ldap.Entry |
from(Entry srvResultEntry)
Converts from OpenDJ server
Entry to OpenDJ LDAP SDK
Entry . |
static List<org.forgerock.opendj.ldap.Attribute> |
from(Iterable<Attribute> listOfAttributes)
|
static org.forgerock.opendj.ldap.controls.Control |
from(LDAPControl ldapControl)
Converts from OpenDJ server
LDAPControl to OpenDJ LDAP SDK
Control . |
static List<org.forgerock.opendj.ldap.controls.Control> |
from(List<Control> listOfControl)
|
static LocalDBVLVIndexCfgDefn.Scope |
from(LocalDBVLVIndexCfgDefn.Scope scope)
Converts from OpenDJ server
LocalDBVLVIndexCfgDefn.Scope to
LocalDBVLVIndexCfgDefn.Scope . |
static org.forgerock.opendj.ldap.responses.SearchResultEntry |
from(SearchResultEntry srvResultEntry)
Converts from OpenDJ server
SearchResultEntry to OpenDJ LDAP SDK
SearchResultEntry . |
static org.forgerock.opendj.ldap.responses.SearchResultReference |
from(SearchResultReference srvResultReference)
Converts from OpenDJ server
SearchResultReference to OpenDJ LDAP SDK
SearchResultReference . |
static org.forgerock.opendj.ldap.SearchScope |
from(VirtualAttributeCfgDefn.Scope srvScope)
Converts from OpenDJ server
VirtualAttributeCfgDefn.Scope to OpenDJ LDAP SDK
SearchScope . |
static org.forgerock.opendj.ldap.ByteString |
getCredentials(byte[] authenticationValue)
Converts from
byte[] to OpenDJ server ByteString . |
static org.forgerock.opendj.ldap.responses.Result |
getResponseResult(Operation operation)
Converts the OpenDJ server
Operation object into an OpenDJ LDAP SDK
Result object. |
static <T extends org.forgerock.opendj.ldap.responses.Result> |
getResponseResult(Operation operation,
T result)
Populates the result object with the operation details and return the
result object if it was successful.
|
static RawAttribute |
to(org.forgerock.opendj.ldap.Attribute attribute)
Converts from OpenDJ LDAP SDK
Attribute
to OpenDJ server RawAttribute . |
static LDAPControl |
to(org.forgerock.opendj.ldap.controls.Control control)
Converts from OpenDJ LDAP SDK
Control to OpenDJ server
LDAPControl . |
static DN |
to(org.forgerock.opendj.ldap.DN dn)
Converts from OpenDJ LDAP SDK
DN to OpenDJ server
DN . |
static DN[] |
to(org.forgerock.opendj.ldap.DN[] dns)
Converts an array of OpenDJ LDAP SDK
DN to an array of
OpenDJ server DN . |
static Entry |
to(org.forgerock.opendj.ldap.Entry sdkEntry)
Converts from OpenDJ LDAP SDK
Entry to OpenDJ
server Entry . |
static RawFilter |
to(org.forgerock.opendj.ldap.Filter filter)
Converts from OpenDJ LDAP SDK
Filter to
OpenDJ server RawFilter . |
static List<RawAttribute> |
to(Iterable<org.forgerock.opendj.ldap.Attribute> listOfAttributes)
|
static List<Control> |
to(List<org.forgerock.opendj.ldap.controls.Control> listOfControl)
|
static RawModification |
to(org.forgerock.opendj.ldap.Modification modification)
Converts from OpenDJ LDAP SDK
Modification to OpenDJ server
RawModification . |
static RDN |
to(org.forgerock.opendj.ldap.RDN rdn)
Converts from OpenDJ LDAP SDK
RDN to OpenDJ server
RDN . |
static SearchResultEntry |
to(org.forgerock.opendj.ldap.responses.SearchResultEntry value)
Converts from OpenDJ LDAP SDK
SearchResultEntry to OpenDJ
server SearchResultEntry . |
static SearchResultReference |
to(org.forgerock.opendj.ldap.responses.SearchResultReference searchResultReference)
Converts from OpenDJ LDAP SDK
SearchResultReference to OpenDJ
server SearchResultReference . |
static SortedSet<DN> |
to(SortedSet<org.forgerock.opendj.ldap.DN> dnSet)
Converts a set of OpenDJ LDAP SDK
DN to a set of
OpenDJ server DN . |
static Attribute |
toAttribute(org.forgerock.opendj.ldap.Attribute attribute)
Converts from OpenDJ LDAP SDK
Attribute
to OpenDJ server Attribute . |
static List<Attribute> |
toAttributes(Iterable<org.forgerock.opendj.ldap.Attribute> listOfAttributes)
|
static Modification |
toModification(org.forgerock.opendj.ldap.Modification modification)
Converts from OpenDJ LDAP SDK
Modification to OpenDJ server
Modification . |
static List<Modification> |
toModifications(List<org.forgerock.opendj.ldap.Modification> listOfModifications)
|
static List<RawModification> |
toRawModifications(List<org.forgerock.opendj.ldap.Modification> listOfModifications)
|
static SearchFilter |
toSearchFilter(org.forgerock.opendj.ldap.Filter filter)
Converts from OpenDJ LDAP SDK
Filter to
OpenDJ server RawFilter . |
public static Entry to(org.forgerock.opendj.ldap.Entry sdkEntry)
Entry
to OpenDJ
server Entry
.sdkEntry
- SDK entry to convertpublic static SearchResultEntry to(org.forgerock.opendj.ldap.responses.SearchResultEntry value)
SearchResultEntry
to OpenDJ
server SearchResultEntry
.value
- value to convertpublic static DN to(org.forgerock.opendj.ldap.DN dn)
DN
to OpenDJ server
DN
.dn
- value to convertpublic static SortedSet<DN> to(SortedSet<org.forgerock.opendj.ldap.DN> dnSet)
DN
to a set of
OpenDJ server DN
.dnSet
- set to convertpublic static DN[] to(org.forgerock.opendj.ldap.DN[] dns)
DN
to an array of
OpenDJ server DN
.dns
- array of values to convertpublic static RDN to(org.forgerock.opendj.ldap.RDN rdn)
RDN
to OpenDJ server
RDN
.rdn
- value to convertpublic static RawFilter to(org.forgerock.opendj.ldap.Filter filter)
Filter
to
OpenDJ server RawFilter
.filter
- value to convertpublic static SearchFilter toSearchFilter(org.forgerock.opendj.ldap.Filter filter)
Filter
to
OpenDJ server RawFilter
.filter
- value to convertpublic static SearchResultReference to(org.forgerock.opendj.ldap.responses.SearchResultReference searchResultReference)
SearchResultReference
to OpenDJ
server SearchResultReference
.searchResultReference
- value to convertpublic static LDAPControl to(org.forgerock.opendj.ldap.controls.Control control)
Control
to OpenDJ server
LDAPControl
.control
- value to convertpublic static List<Control> to(List<org.forgerock.opendj.ldap.controls.Control> listOfControl)
listOfControl
- value to convertpublic static RawAttribute to(org.forgerock.opendj.ldap.Attribute attribute)
Attribute
to OpenDJ server RawAttribute
.attribute
- value to convertpublic static List<RawAttribute> to(Iterable<org.forgerock.opendj.ldap.Attribute> listOfAttributes)
listOfAttributes
- value to convertpublic static RawModification to(org.forgerock.opendj.ldap.Modification modification)
Modification
to OpenDJ server
RawModification
.modification
- value to convertpublic static List<RawModification> toRawModifications(List<org.forgerock.opendj.ldap.Modification> listOfModifications)
listOfModifications
- value to convertpublic static Attribute toAttribute(org.forgerock.opendj.ldap.Attribute attribute)
Attribute
to OpenDJ server Attribute
.attribute
- value to convertpublic static List<Attribute> toAttributes(Iterable<org.forgerock.opendj.ldap.Attribute> listOfAttributes)
listOfAttributes
- value to convertpublic static Modification toModification(org.forgerock.opendj.ldap.Modification modification)
Modification
to OpenDJ server
Modification
.modification
- value to convertpublic static List<Modification> toModifications(List<org.forgerock.opendj.ldap.Modification> listOfModifications)
listOfModifications
- value to convertpublic static org.forgerock.opendj.ldap.controls.Control from(LDAPControl ldapControl)
LDAPControl
to OpenDJ LDAP SDK
Control
.ldapControl
- value to convertpublic static org.forgerock.opendj.ldap.controls.Control from(Control control)
Control
to
OpenDJ LDAP SDK Control
.control
- value to convertpublic static List<org.forgerock.opendj.ldap.controls.Control> from(List<Control> listOfControl)
listOfControl
- value to convertpublic static org.forgerock.opendj.ldap.responses.SearchResultReference from(SearchResultReference srvResultReference)
SearchResultReference
to OpenDJ LDAP SDK
SearchResultReference
.srvResultReference
- value to convertpublic static org.forgerock.opendj.ldap.Attribute from(Attribute attribute)
Attribute
to
OpenDJ LDAP SDK Attribute
.attribute
- value to convertpublic static List<org.forgerock.opendj.ldap.Attribute> from(Iterable<Attribute> listOfAttributes)
listOfAttributes
- value to convertpublic static org.forgerock.opendj.ldap.responses.SearchResultEntry from(SearchResultEntry srvResultEntry)
SearchResultEntry
to OpenDJ LDAP SDK
SearchResultEntry
.srvResultEntry
- value to convertpublic static org.forgerock.opendj.ldap.Entry from(Entry srvResultEntry)
Entry
to OpenDJ LDAP SDK
Entry
.srvResultEntry
- value to convertpublic static org.forgerock.opendj.ldap.SearchScope from(VirtualAttributeCfgDefn.Scope srvScope)
VirtualAttributeCfgDefn.Scope
to OpenDJ LDAP SDK
SearchScope
.srvScope
- The server scope value.public static org.forgerock.opendj.ldap.DN from(DN dn)
DN
to OpenDJ
LDAP SDK DN
.dn
- value to convertpublic static <T extends org.forgerock.opendj.ldap.responses.Result> T getResponseResult(Operation operation, T result) throws org.forgerock.opendj.ldap.LdapException
LdapException
.T
- the type of the result objectoperation
- used to populate the resultresult
- the result object to populate from the OperationLdapException
is thrown
otherwiseorg.forgerock.opendj.ldap.LdapException
- when an error occurspublic static org.forgerock.opendj.ldap.responses.Result getResponseResult(Operation operation) throws org.forgerock.opendj.ldap.LdapException
Operation
object into an OpenDJ LDAP SDK
Result
object.operation
- value to convertorg.forgerock.opendj.ldap.LdapException
- when an error occurspublic static org.forgerock.opendj.ldap.ByteString getCredentials(byte[] authenticationValue)
byte[]
to OpenDJ server ByteString
.authenticationValue
- value to convertpublic static BackendVLVIndexCfgDefn.Scope from(BackendVLVIndexCfgDefn.Scope scope)
BackendVLVIndexCfgDefn.Scope
to
BackendVLVIndexCfgDefn.Scope
.scope
- The scope value.public static LocalDBVLVIndexCfgDefn.Scope from(LocalDBVLVIndexCfgDefn.Scope scope)
LocalDBVLVIndexCfgDefn.Scope
to
LocalDBVLVIndexCfgDefn.Scope
.scope
- The scope value.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.