@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface UpdatableEntry extends Entry
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Attribute attribute)
Adds the provided attribute to the entry.
|
void |
removeAttribute(AttributeType type)
Removes all occurrences of the specified attribute from the entry.
|
void |
removeAttribute(AttributeType type,
java.util.Set<java.lang.String> options)
Removes the attribute with the specified name and exact set of options
from the entry.
|
void |
removeAttribute(java.lang.String name)
Removes all occurrences of the attribute with the specified name from the
entry.
|
void |
removeAttribute(java.lang.String name,
java.util.Set<java.lang.String> options)
Removes the attribute with the specified name and exact set of options
from the entry.
|
void |
setAttribute(Attribute attribute)
Replaces the specified attribute in the entry, or adds the attribute if
it does not exist.
|
void |
setDN(DN dn)
Specifies the DN for the entry.
|
void |
setDN(java.lang.String dn)
Specifies the DN for the entry.
|
getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getDN, getParsedDN, getRealAttributes, getVirtualAttributes, hasAttribute, hasAttribute, hasAttribute, hasAttribute, hasAttributeValue, hasAttributeValue, hasAttributeValue, hasAttributeValue, matchesBaseAndScope, matchesFilter, matchesFilter, toLDAPSDKEntry
void setDN(java.lang.String dn) throws LDAPException
dn
- The DN for the entry. It must not be null
.LDAPException
- If the provided DN is not valid.void setDN(DN dn) throws LDAPException
dn
- The DN for the entry. It must not be null
.LDAPException
- If the provided DN is not valid.void setAttribute(Attribute attribute)
attribute
- The attribute to be stored in the entry. It must not be
null
.void addAttribute(Attribute attribute)
attribute
- The attribute to be added. It must not be null
.void removeAttribute(AttributeType type)
type
- The attribute type for the attribute to remove from the
entry. It must not be null
.void removeAttribute(java.lang.String name)
name
- The name or OID of the attribute to remove from the entry.
It must not be null
.void removeAttribute(AttributeType type, java.util.Set<java.lang.String> options)
type
- The attribute type for the attribute to remove from the
entry. It must not be null
.options
- The set of attribute options for the attribute to remove
from the entry. It may be null
or empty if there
are no options.void removeAttribute(java.lang.String name, java.util.Set<java.lang.String> options)
name
- The name or OID of the attribute to remove from the entry.
It must not be null
.options
- The set of attribute options for the attribute to remove
from the entry. It may be null
or empty if there
are no options.