Interface LDIFContent

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ADD_CONTENT
      The LDIF record specifies a new entry to be added.
      static int ATTRIBUTE_CONTENT
      The LDIF record specifies an entry and its attributes.
      static int DELETE_CONTENT
      The LDIF record specifies an entry to be deleted.
      static int MODDN_CONTENT
      The LDIF record specifies changes to the DN or RDN of an entry.
      static int MODIFICATION_CONTENT
      The LDIF record specifies modifications to an entry.
    • Field Detail

      • ATTRIBUTE_CONTENT

        static final int ATTRIBUTE_CONTENT
        The LDIF record specifies an entry and its attributes.
        See Also:
        Constant Field Values
      • ADD_CONTENT

        static final int ADD_CONTENT
        The LDIF record specifies a new entry to be added.
        See Also:
        Constant Field Values
      • DELETE_CONTENT

        static final int DELETE_CONTENT
        The LDIF record specifies an entry to be deleted.
        See Also:
        Constant Field Values
      • MODIFICATION_CONTENT

        static final int MODIFICATION_CONTENT
        The LDIF record specifies modifications to an entry.
        See Also:
        Constant Field Values
      • MODDN_CONTENT

        static final int MODDN_CONTENT
        The LDIF record specifies changes to the DN or RDN of an entry.
        See Also:
        Constant Field Values
    • Method Detail

      • getType

        int getType()
        Determines the content type.
        Returns:
        the content type, identified by one of the following values:
        • ATTRIBUTE_CONTENT (specifies an entry and its attributes)
        • ADD_CONTENT (specifies a new entry to be added)
        • DELETE_CONTENT (specifies an entry to be deleted)
        • MODIFICATION_CONTENT (specifies an entry to be modified)
        • MODDN_CONTENT (specifies a change to the RDN or DN of an entry)
      • getControls

        LDAPControl[] getControls()
        Retrieves the list of controls specified in the content of the LDIF record, if any
        Returns:
        an array of LDAPControl objects that represent any controls specified in the the LDIF record, or null if none were specified.
      • setControls

        void setControls​(LDAPControl[] controls)
        Sets the list of controls
        Parameters:
        controls - an array of LDAPControl objects or null if none are to be specified
      • toString

        java.lang.String toString()
        Returns the string representation of the content of the LDIF record.
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation of the content of the LDIF record.