Interface DirContextOperations

    • Field Summary

      • Fields inherited from interface javax.naming.Context

        APPLET, 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
      • Fields inherited from interface javax.naming.directory.DirContext

        ADD_ATTRIBUTE, REMOVE_ATTRIBUTE, REPLACE_ATTRIBUTE
    • Method Detail

      • 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

        java.lang.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​(javax.naming.Name dn)
        Set the dn of this entry.
        Parameters:
        dn - the dn.
      • getNameInNamespace

        java.lang.String getNameInNamespace()
        Specified by:
        getNameInNamespace in interface javax.naming.Context
      • getReferralUrl

        java.lang.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