public class OpenDJUtils extends Object
| Modifier and Type | Field and Description | 
|---|---|
private List<String> | 
binaryAttrs
Attributes that should be treated as binary. 
 | 
private SortBehavior | 
sortBehavior
Ldap result sort behavior. 
 | 
| Constructor and Description | 
|---|
OpenDJUtils()
Default constructor. 
 | 
OpenDJUtils(SortBehavior sb)
Creates a new opendj util. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
org.forgerock.opendj.ldap.Modification[] | 
fromAttributeModification(AttributeModification[] am)
Returns opendj modifications using the supplied attribute modifications. 
 | 
org.forgerock.opendj.ldap.ByteString[] | 
fromBinaryValues(Collection<byte[]> values)
Returns an opendj byte string that represents the values in the supplied collection. 
 | 
org.forgerock.opendj.ldap.Attribute | 
fromLdapAttribute(LdapAttribute la)
Returns an opendj attribute that represents the values in the supplied ldap attribute. 
 | 
org.forgerock.opendj.ldap.Attribute[] | 
fromLdapAttributes(Collection<LdapAttribute> c)
Returns a list of opendj attribute that represents the values in the supplied ldap attributes. 
 | 
org.forgerock.opendj.ldap.Entry | 
fromLdapEntry(LdapEntry le)
Returns an opendj entry that represents the values in the supplied entry. 
 | 
static org.forgerock.opendj.ldap.SortKey[] | 
fromSortKey(SortKey[] sk)
Returns opendj sort keys using the supplied sort keys. 
 | 
org.forgerock.opendj.ldap.ByteString[] | 
fromStringValues(Collection<String> values)
Returns an opendj byte string that represents the values in the supplied collection. 
 | 
List<String> | 
getBinaryAttributes()
Returns the list of binary attributes. 
 | 
protected static org.forgerock.opendj.ldap.ModificationType | 
getModificationType(AttributeModificationType am)
Returns the opendj modification type for the supplied attribute modification type. 
 | 
void | 
setBinaryAttributes(String[] s)
Sets the list of binary attributes. 
 | 
byte[][] | 
toBinaryValues(org.forgerock.opendj.ldap.ByteString[] values)
Returns byte array values for the supplied byte strings. 
 | 
LdapAttribute | 
toLdapAttribute(org.forgerock.opendj.ldap.Attribute a)
Returns an ldap attribute using the supplied opendj attribute. 
 | 
SearchEntry | 
toSearchEntry(org.forgerock.opendj.ldap.Entry e,
             ResponseControl[] c,
             int id)
Returns a search entry using the supplied opendj entry. 
 | 
String[] | 
toStringValues(org.forgerock.opendj.ldap.ByteString[] values)
Returns string values for the supplied byte strings. 
 | 
private final SortBehavior sortBehavior
public OpenDJUtils()
public OpenDJUtils(SortBehavior sb)
sb - sort behaviorpublic List<String> getBinaryAttributes()
public void setBinaryAttributes(String[] s)
s - binary attributespublic org.forgerock.opendj.ldap.ByteString[] fromStringValues(Collection<String> values)
values - to convert to byte stringspublic org.forgerock.opendj.ldap.ByteString[] fromBinaryValues(Collection<byte[]> values)
values - to convert to byte stringspublic String[] toStringValues(org.forgerock.opendj.ldap.ByteString[] values)
values - to convert to stringspublic byte[][] toBinaryValues(org.forgerock.opendj.ldap.ByteString[] values)
values - to convert to byte arrayspublic org.forgerock.opendj.ldap.Attribute fromLdapAttribute(LdapAttribute la)
la - ldap attributepublic LdapAttribute toLdapAttribute(org.forgerock.opendj.ldap.Attribute a)
a - opendj attributepublic org.forgerock.opendj.ldap.Attribute[] fromLdapAttributes(Collection<LdapAttribute> c)
c - ldap attributespublic org.forgerock.opendj.ldap.Entry fromLdapEntry(LdapEntry le)
le - ldap entrypublic SearchEntry toSearchEntry(org.forgerock.opendj.ldap.Entry e, ResponseControl[] c, int id)
e - opendj entryc - response controlsid - message idpublic org.forgerock.opendj.ldap.Modification[] fromAttributeModification(AttributeModification[] am)
am - attribute modificationspublic static org.forgerock.opendj.ldap.SortKey[] fromSortKey(SortKey[] sk)
sk - sort keysprotected static org.forgerock.opendj.ldap.ModificationType getModificationType(AttributeModificationType am)
am - attribute modification typeCopyright © 2003-2019 Virginia Tech. All Rights Reserved.