public class JLdapUtils 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 |
|---|
JLdapUtils()
Default constructor.
|
JLdapUtils(SortBehavior sb)
Creates a new jldap util.
|
| Modifier and Type | Method and Description |
|---|---|
com.novell.ldap.LDAPModification[] |
fromAttributeModification(AttributeModification[] am)
Returns jldap ldap modifications using the supplied attribute modifications.
|
com.novell.ldap.LDAPAttribute |
fromLdapAttribute(LdapAttribute la)
Returns a jldap attribute that represents the values in the supplied ldap attribute.
|
com.novell.ldap.LDAPAttributeSet |
fromLdapAttributes(Collection<LdapAttribute> c)
Returns a jldap attribute set that represents the values in the supplied ldap attributes.
|
com.novell.ldap.LDAPEntry |
fromLdapEntry(LdapEntry le)
Returns a jldap ldap entry that represents the supplied ldap entry.
|
static com.novell.ldap.controls.LDAPSortKey[] |
fromSortKey(SortKey[] sk)
Returns jldap sort keys using the supplied sort keys.
|
protected static int |
getAttributeModification(AttributeModificationType am)
Returns the jldap modification integer constant for the supplied attribute modification type.
|
List<String> |
getBinaryAttributes()
Returns the list of binary attributes.
|
void |
setBinaryAttributes(String[] s)
Sets the list of binary attributes.
|
LdapAttribute |
toLdapAttribute(com.novell.ldap.LDAPAttribute a)
Returns an ldap attribute using the supplied jldap attribute.
|
SearchEntry |
toSearchEntry(com.novell.ldap.LDAPEntry entry,
ResponseControl[] c,
int id)
Returns a search entry using the supplied jldap ldap entry.
|
private final SortBehavior sortBehavior
public JLdapUtils()
public JLdapUtils(SortBehavior sb)
sb - sort behaviorpublic List<String> getBinaryAttributes()
public void setBinaryAttributes(String[] s)
s - binary attributespublic com.novell.ldap.LDAPAttribute fromLdapAttribute(LdapAttribute la)
la - ldap attributepublic LdapAttribute toLdapAttribute(com.novell.ldap.LDAPAttribute a)
a - jldap attributepublic com.novell.ldap.LDAPAttributeSet fromLdapAttributes(Collection<LdapAttribute> c)
c - ldap attributespublic com.novell.ldap.LDAPEntry fromLdapEntry(LdapEntry le)
le - ldap entrypublic SearchEntry toSearchEntry(com.novell.ldap.LDAPEntry entry, ResponseControl[] c, int id)
entry - jldap ldap entryc - response controlsid - message idpublic com.novell.ldap.LDAPModification[] fromAttributeModification(AttributeModification[] am)
am - attribute modificationspublic static com.novell.ldap.controls.LDAPSortKey[] fromSortKey(SortKey[] sk)
sk - sort keysprotected static int getAttributeModification(AttributeModificationType am)
am - attribute modification typeCopyright © 2003-2019 Virginia Tech. All Rights Reserved.