Class ObjectClassHolder

    • Constructor Detail

      • ObjectClassHolder

        public ObjectClassHolder​(String oid)
        Create an instance of ObjectClass element
        Parameters:
        oid - the OjectClass OID
    • Method Detail

      • getSuperiors

        public List<StringgetSuperiors()
        Get the list of superior for this objectClass
        Returns:
        A list of all inherited objectClasses
      • setSuperiors

        public void setSuperiors​(List<String> superiors)
        Set the list of inherited objectClasses
        Parameters:
        superiors - The list of inherited objectClasses
      • setMust

        public void setMust​(List<String> must)
        Set the list of mandatory attributes
        Parameters:
        must - The list of mandatory attributes
      • getMay

        public List<StringgetMay()
        Returns:
        The list of optional attributes
      • setMay

        public void setMay​(List<String> may)
        Set the list of optional attributes
        Parameters:
        may - The list of optional attributes
      • toLdif

        public String toLdif​(String schemaName)
                      throws LdapException
        Convert this objectClass to a Ldif string
        Parameters:
        schemaName - The name of the schema file containing this objectClass
        Returns:
        A ldif formatted string
        Throws:
        LdapException - If something went wrong
      • dnToLdif

        public String dnToLdif​(String schemaName)
                        throws LdapException
        Transform a schema name to a Dn pointing to the correct position in the DIT
        Specified by:
        dnToLdif in class SchemaElementImpl
        Parameters:
        schemaName - The schema name
        Returns:
        the Dn associated with this schema in the DIT
        Throws:
        LdapException - If the conversion goes wrong