public class ApacheLdapUtils 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 |
---|
ApacheLdapUtils()
Default constructor.
|
ApacheLdapUtils(SortBehavior sb)
Creates a new apache ldap util.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.directory.api.ldap.model.entry.Value<?> |
createValue(Object o)
Returns an apache ldap value for the supplied object.
|
org.apache.directory.api.ldap.model.entry.Modification[] |
fromAttributeModification(AttributeModification[] am)
Returns apache ldap modifications using the supplied attribute modifications.
|
org.apache.directory.api.ldap.model.entry.Attribute |
fromLdapAttribute(LdapAttribute la)
Returns an apache ldap attribute that represents the values in the supplied ldap attribute.
|
org.apache.directory.api.ldap.model.entry.Attribute[] |
fromLdapAttributes(Collection<LdapAttribute> c)
Returns a list of apache ldap attribute that represents the values in the supplied ldap attributes.
|
org.apache.directory.api.ldap.model.entry.Entry |
fromLdapEntry(LdapEntry le)
Returns an apache ldap entry that represents the supplied ldap entry.
|
protected static org.apache.directory.api.ldap.model.entry.ModificationOperation |
getAttributeModification(AttributeModificationType am)
Returns the apache ldap modification operation 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(org.apache.directory.api.ldap.model.entry.Attribute a)
Returns an ldap attribute using the supplied apache ldap attribute.
|
SearchEntry |
toSearchEntry(org.apache.directory.api.ldap.model.entry.Entry e,
ResponseControl[] c,
int id)
Returns a search entry using the supplied apache ldap entry.
|
private final SortBehavior sortBehavior
public ApacheLdapUtils()
public ApacheLdapUtils(SortBehavior sb)
sb
- sort behaviorpublic List<String> getBinaryAttributes()
public void setBinaryAttributes(String[] s)
s
- binary attributespublic static org.apache.directory.api.ldap.model.entry.Value<?> createValue(Object o)
o
- object valuepublic org.apache.directory.api.ldap.model.entry.Attribute fromLdapAttribute(LdapAttribute la)
la
- ldap attributepublic LdapAttribute toLdapAttribute(org.apache.directory.api.ldap.model.entry.Attribute a)
a
- apache ldap attributepublic org.apache.directory.api.ldap.model.entry.Attribute[] fromLdapAttributes(Collection<LdapAttribute> c)
c
- ldap attributespublic org.apache.directory.api.ldap.model.entry.Entry fromLdapEntry(LdapEntry le) throws org.apache.directory.api.ldap.model.exception.LdapException
le
- ldap entryorg.apache.directory.api.ldap.model.exception.LdapException
- if the apache object cannot be createdpublic SearchEntry toSearchEntry(org.apache.directory.api.ldap.model.entry.Entry e, ResponseControl[] c, int id)
e
- apache ldap entryc
- response controlsid
- message idpublic org.apache.directory.api.ldap.model.entry.Modification[] fromAttributeModification(AttributeModification[] am)
am
- attribute modificationsprotected static org.apache.directory.api.ldap.model.entry.ModificationOperation getAttributeModification(AttributeModificationType am)
am
- attribute modification typeCopyright © 2003-2019 Virginia Tech. All Rights Reserved.