Interface UpdatableEntry

    • Method Detail

      • setDN

        void setDN​(java.lang.String dn)
            throws LDAPException
        Specifies the DN for the entry.
        Parameters:
        dn - The DN for the entry. It must not be null.
        Throws:
        LDAPException - If the provided DN is not valid.
      • setDN

        void setDN​(DN dn)
            throws LDAPException
        Specifies the DN for the entry.
        Parameters:
        dn - The DN for the entry. It must not be null.
        Throws:
        LDAPException - If the provided DN is not valid.
      • setAttribute

        void setAttribute​(Attribute attribute)
        Replaces the specified attribute in the entry, or adds the attribute if it does not exist.
        Parameters:
        attribute - The attribute to be stored in the entry. It must not be null.
      • addAttribute

        void addAttribute​(Attribute attribute)
        Adds the provided attribute to the entry. If an attribute already exists with the same name and set of options, then the values will be merged.
        Parameters:
        attribute - The attribute to be added. It must not be null.
      • removeAttribute

        void removeAttribute​(AttributeType type)
        Removes all occurrences of the specified attribute from the entry.
        Parameters:
        type - The attribute type for the attribute to remove from the entry. It must not be null.
      • removeAttribute

        void removeAttribute​(java.lang.String name)
        Removes all occurrences of the attribute with the specified name from the entry.
        Parameters:
        name - The name or OID of the attribute to remove from the entry. It must not be null.
      • removeAttribute

        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.
        Parameters:
        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.
      • removeAttribute

        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.
        Parameters:
        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.