|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ldaptive.provider.opendj.OpenDJUtils
public class OpenDJUtils
Provides methods for converting between OpenDJ specific objects and ldaptive specific objects.
| Constructor Summary | |
|---|---|
OpenDJUtils()
Default constructor. |
|
OpenDJUtils(org.ldaptive.SortBehavior sb)
Creates a new opendj util. |
|
| Method Summary | |
|---|---|
org.forgerock.opendj.ldap.Modification[] |
fromAttributeModification(org.ldaptive.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(org.ldaptive.LdapAttribute la)
Returns an opendj attribute that represents the values in the supplied ldap attribute. |
org.forgerock.opendj.ldap.Attribute[] |
fromLdapAttributes(Collection<org.ldaptive.LdapAttribute> c)
Returns a list of opendj attribute that represents the values in the supplied ldap attributes. |
org.forgerock.opendj.ldap.Entry |
fromLdapEntry(org.ldaptive.LdapEntry le)
Returns an opendj entry that represents the values in the supplied entry. |
static org.forgerock.opendj.ldap.SortKey[] |
fromSortKey(org.ldaptive.control.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(org.ldaptive.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. |
org.ldaptive.LdapAttribute |
toLdapAttribute(org.forgerock.opendj.ldap.Attribute a)
Returns an ldap attribute using the supplied opendj attribute. |
org.ldaptive.SearchEntry |
toSearchEntry(org.forgerock.opendj.ldap.Entry e,
org.ldaptive.control.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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenDJUtils()
public OpenDJUtils(org.ldaptive.SortBehavior sb)
sb - sort behavior| Method Detail |
|---|
public 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 strings
public org.forgerock.opendj.ldap.ByteString[] fromBinaryValues(Collection<byte[]> values)
values - to convert to byte strings
public String[] toStringValues(org.forgerock.opendj.ldap.ByteString[] values)
values - to convert to strings
public byte[][] toBinaryValues(org.forgerock.opendj.ldap.ByteString[] values)
values - to convert to byte arrays
public org.forgerock.opendj.ldap.Attribute fromLdapAttribute(org.ldaptive.LdapAttribute la)
la - ldap attribute
public org.ldaptive.LdapAttribute toLdapAttribute(org.forgerock.opendj.ldap.Attribute a)
a - opendj attribute
public org.forgerock.opendj.ldap.Attribute[] fromLdapAttributes(Collection<org.ldaptive.LdapAttribute> c)
c - ldap attributes
public org.forgerock.opendj.ldap.Entry fromLdapEntry(org.ldaptive.LdapEntry le)
le - ldap entry
public org.ldaptive.SearchEntry toSearchEntry(org.forgerock.opendj.ldap.Entry e,
org.ldaptive.control.ResponseControl[] c,
int id)
e - opendj entryc - response controlsid - message id
public org.forgerock.opendj.ldap.Modification[] fromAttributeModification(org.ldaptive.AttributeModification[] am)
am - attribute modifications
public static org.forgerock.opendj.ldap.SortKey[] fromSortKey(org.ldaptive.control.SortKey[] sk)
sk - sort keys
protected static org.forgerock.opendj.ldap.ModificationType getModificationType(org.ldaptive.AttributeModificationType am)
am - attribute modification type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||