@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface Entry
Modifier and Type | Method and Description |
---|---|
java.util.List<Attribute> |
getAttribute(AttributeType type)
Retrieves the attribute with the specified name.
|
Attribute |
getAttribute(AttributeType type,
java.util.Set<java.lang.String> options)
Retrieves the attribute with the specified name and exact set of options.
|
java.util.List<Attribute> |
getAttribute(java.lang.String name)
Retrieves the attribute with the specified name.
|
Attribute |
getAttribute(java.lang.String name,
java.util.Set<java.lang.String> options)
Retrieves the attribute with the specified name and exact set of options.
|
java.util.List<Attribute> |
getAttributes()
Retrieves a list of the attributes contained in the entry.
|
java.lang.String |
getDN()
Retrieves the DN of the entry as a string.
|
DN |
getParsedDN()
Retrieves a parsed representation of the DN for the entry.
|
java.util.List<Attribute> |
getRealAttributes()
Retrieves a list of the real (i.e., non-virtual) attributes contained in
the entry.
|
java.util.List<Attribute> |
getVirtualAttributes()
Retrieves a list of the virtual attributes contained in the entry.
|
boolean |
hasAttribute(AttributeType type)
Indicates whether the entry contains an attribute with the specified type.
|
boolean |
hasAttribute(AttributeType type,
java.util.Set<java.lang.String> options)
Indicates whether the entry contains an attribute with the specified name
and set of options.
|
boolean |
hasAttribute(java.lang.String name)
Indicates whether the entry contains an attribute with the specified name.
|
boolean |
hasAttribute(java.lang.String name,
java.util.Set<java.lang.String> options)
Indicates whether the entry contains an attribute with the specified name
and set of options.
|
boolean |
hasAttributeValue(AttributeType type,
byte[] value)
Indicates whether the entry contains an attribute with the specified name
and value.
|
boolean |
hasAttributeValue(AttributeType type,
java.lang.String value)
Indicates whether the entry contains an attribute with the specified name
and value.
|
boolean |
hasAttributeValue(java.lang.String name,
byte[] value)
Indicates whether the entry contains an attribute with the specified name
and value.
|
boolean |
hasAttributeValue(java.lang.String name,
java.lang.String value)
Indicates whether the entry contains an attribute with the specified name
and value.
|
boolean |
matchesBaseAndScope(java.lang.String baseDN,
SearchScope scope)
Indicates whether this entry is within the range of the provided base DN
and scope.
|
boolean |
matchesFilter(Filter filter)
Indicates whether this entry matches the provided filter.
|
boolean |
matchesFilter(java.lang.String filter)
Indicates whether this entry matches the provided filter.
|
ReadOnlyEntry |
toLDAPSDKEntry()
Converts this server entry to its corresponding LDAP SDK representation.
|
java.lang.String getDN()
DN getParsedDN() throws LDAPException
LDAPException
- If a problem occurs while trying to parse the DN.java.util.List<Attribute> getAttributes()
java.util.List<Attribute> getRealAttributes()
java.util.List<Attribute> getVirtualAttributes()
boolean hasAttribute(AttributeType type)
type
- The attribute type for which to make the determination. It
must not be null
.true
if the entry has an attribute with the specified
name, or false
if not.boolean hasAttribute(java.lang.String name)
name
- The name or OID of the attribute for which to make the
determination. It must not be null
.true
if the entry has an attribute with the specified
name, or false
if not.boolean hasAttribute(AttributeType type, java.util.Set<java.lang.String> options)
type
- The attribute type for which to make the determination.
It must not be null
.options
- The set of attribute options for which to make the
determination. It may be null
or empty to
indicate no options.true
if the entry has an attribute with the specified
name, or false
if not.boolean hasAttribute(java.lang.String name, java.util.Set<java.lang.String> options)
name
- The name or OID of the attribute for which to make the
determination. It must not be null
.options
- The set of attribute options for which to make the
determination. It may be null
or empty to
indicate no options.true
if the entry has an attribute with the specified
name, or false
if not.boolean hasAttributeValue(AttributeType type, java.lang.String value)
type
- The attribute type for the attribute for which to make the
determination. It must not be null
.value
- The value for which to make the determination. It must not
be null
.true
if the entry has an attribute with the specified name
and value, or false
if not.boolean hasAttributeValue(java.lang.String name, java.lang.String value)
name
- The name or OID of the attribute for which to make the
determination. It must not be null
.value
- The value for which to make the determination. It must not
be null
.true
if the entry has an attribute with the specified name
and value, or false
if not.boolean hasAttributeValue(AttributeType type, byte[] value)
type
- The attribute type for the attribute for which to make the
determination. It must not be null
.value
- The value for which to make the determination. It must not
be null
.true
if the entry has an attribute with the specified name
and value, or false
if not.boolean hasAttributeValue(java.lang.String name, byte[] value)
name
- The name or OID of the attribute for which to make the
determination. It must not be null
.value
- The value for which to make the determination. It must not
be null
.true
if the entry has an attribute with the specified name
and value, or false
if not.java.util.List<Attribute> getAttribute(AttributeType type)
type
- The attribute type for the attribute to retrieve. It must
not be null
.null
if the specified attribute is not
present in the entry.java.util.List<Attribute> getAttribute(java.lang.String name)
name
- The name or OID of the attribute to retrieve. It must not be
null
.null
if the specified attribute is not
present in the entry.Attribute getAttribute(AttributeType type, java.util.Set<java.lang.String> options)
type
- The attribute type for the attribute to retrieve. It must
not be null
.options
- The set of attribute options for the attribute to
retrieve. It may be null
or empty if there should
not be any options.null
if it is not present in
the entry.Attribute getAttribute(java.lang.String name, java.util.Set<java.lang.String> options)
name
- The name or OID of the attribute to retrieve. It must not
be null
.options
- The set of attribute options for the attribute to
retrieve. It may be null
or empty if there should
not be any options.null
if it is not present in
the entry.boolean matchesBaseAndScope(java.lang.String baseDN, SearchScope scope) throws LDAPException
baseDN
- The base DN for which to make the determination.scope
- The scope for which to make the determination.true
if this entry is within the range specified by the
provided base DN and scope, or false
if not.LDAPException
- If the provided string cannot be parsed as a valid
DN.boolean matchesFilter(java.lang.String filter) throws LDAPException
filter
- The filter for which to make the determination. It must
not be null
.true
if this entry matches the provided filter, or
false
if not.LDAPException
- If a problem occurs while making the determination,
or if the provided string cannot be parsed as a
valid filter.boolean matchesFilter(Filter filter) throws LDAPException
filter
- The filter for which to make the determination. It must
not be null
.true
if this entry matches the provided filter, or
false
if not.LDAPException
- If a problem occurs while making the determination,
or if the provided string cannot be parsed as a
valid filter.ReadOnlyEntry toLDAPSDKEntry()