|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@NotExtensible @ThreadSafety(level=INTERFACE_NOT_THREADSAFE) public interface UpdatableEntry
This interface defines a set of methods which may be used to update the contents of an entry.
Method Summary | |
---|---|
void |
addAttribute(com.unboundid.ldap.sdk.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(com.unboundid.ldap.sdk.Attribute attribute)
Replaces the specified attribute in the entry, or adds the attribute if it does not exist. |
void |
setDN(com.unboundid.ldap.sdk.DN dn)
Specifies the DN for the entry. |
void |
setDN(java.lang.String dn)
Specifies the DN for the entry. |
Methods inherited from interface com.unboundid.directory.sdk.common.types.Entry |
---|
getAttribute, getAttribute, getAttribute, getAttribute, getAttributes, getDN, getParsedDN, getRealAttributes, getVirtualAttributes, hasAttribute, hasAttribute, hasAttribute, hasAttribute, hasAttributeValue, hasAttributeValue, hasAttributeValue, hasAttributeValue, matchesBaseAndScope, matchesFilter, matchesFilter, toLDAPSDKEntry |
Method Detail |
---|
void setDN(java.lang.String dn) throws com.unboundid.ldap.sdk.LDAPException
dn
- The DN for the entry. It must not be null
.
com.unboundid.ldap.sdk.LDAPException
- If the provided DN is not valid.void setDN(com.unboundid.ldap.sdk.DN dn) throws com.unboundid.ldap.sdk.LDAPException
dn
- The DN for the entry. It must not be null
.
com.unboundid.ldap.sdk.LDAPException
- If the provided DN is not valid.void setAttribute(com.unboundid.ldap.sdk.Attribute attribute)
attribute
- The attribute to be stored in the entry. It must not be
null
.void addAttribute(com.unboundid.ldap.sdk.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |