Interface DirContextOperations

All Superinterfaces:
AttributeModificationsAware, Context, DirContext, LdapDataEntry
All Known Implementing Classes:
DirContextAdapter

public interface DirContextOperations extends DirContext, LdapDataEntry, AttributeModificationsAware
Interface for DirContextAdapter.
See Also:
  • Method Details

    • isUpdateMode

      boolean isUpdateMode()
      Gets the update mode. An entry in update mode will keep track of its modifications so that they can be retrieved using AttributeModificationsAware.getModificationItems(). The update mode should be true for a new entry and true for an existing entry that is being updated.
      Returns:
      update mode.
    • getNamesOfModifiedAttributes

      String[] getNamesOfModifiedAttributes()
      Creates a String array of the names of the attributes which have been changed. If this is a new entry, all set entries will be in the list. If this is an updated entry, only changed and removed entries will be in the array.
      Returns:
      Array of String
    • update

      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. AttributeModificationsAware.getModificationItems() will return an empty array.
    • setDn

      void setDn(Name dn)
      Set the dn of this entry.
      Parameters:
      dn - the dn.
    • getNameInNamespace

      String getNameInNamespace()
      Specified by:
      getNameInNamespace in interface Context
    • getReferralUrl

      String getReferralUrl()
      If this instance results from a referral, this method returns the url of the referred server.
      Returns:
      The url of the referred server, e.g. ldap://localhost:389, or the empty string if this is not a referral.
      Since:
      1.3
    • isReferral

      boolean isReferral()
      Checks whether this instance results from a referral.
      Returns:
      true if this instance results from a referral, false otherwise.
      Since:
      1.3