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