public interface DirContextOperations extends DirContext, LdapDataEntry, AttributeModificationsAware
DirContextAdapterADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTEAPPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES| Modifier and Type | Method and Description |
|---|---|
String |
getNameInNamespace() |
String[] |
getNamesOfModifiedAttributes()
Creates a String array of the names of the attributes which have been
changed.
|
String |
getReferralUrl()
If this instance results from a referral, this method returns the url of
the referred server.
|
boolean |
isReferral()
Checks whether this instance results from a referral.
|
boolean |
isUpdateMode()
Gets the update mode.
|
void |
setDn(Name dn)
Set the dn of this entry.
|
void |
update()
Update the attributes.This will mean that the getters (
getStringAttribute methods) will return the updated values,
and the modifications will be forgotten (i.e. |
bind, bind, createSubcontext, createSubcontext, getAttributes, getAttributes, getAttributes, getAttributes, getSchema, getSchema, getSchemaClassDefinition, getSchemaClassDefinition, modifyAttributes, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, search, search, search, search, search, search, search, searchaddToEnvironment, bind, bind, close, composeName, composeName, createSubcontext, createSubcontext, destroySubcontext, destroySubcontext, getEnvironment, getNameParser, getNameParser, list, list, listBindings, listBindings, lookup, lookup, lookupLink, lookupLink, rebind, rebind, removeFromEnvironment, rename, rename, unbind, unbindaddAttributeValue, addAttributeValue, attributeExists, getAttributes, getAttributeSortedStringSet, getDn, getObjectAttribute, getObjectAttributes, getStringAttribute, getStringAttributes, removeAttributeValue, setAttributeValue, setAttributeValues, setAttributeValuesgetModificationItemsboolean isUpdateMode()
AttributeModificationsAware.getModificationItems(). The update
mode should be true for a new entry and true
for an existing entry that is being updated.String[] getNamesOfModifiedAttributes()
void update()
getStringAttribute methods) will return the updated values,
and the modifications will be forgotten (i.e.
AttributeModificationsAware.getModificationItems() will return an
empty array.void setDn(Name dn)
dn - the dn.String getNameInNamespace()
getNameInNamespace in interface ContextString getReferralUrl()
ldap://localhost:389, or the empty string if this is not a
referral.boolean isReferral()
true if this instance results from a referral,
false otherwise.