Class DefaultSchemaLoader

    • Constructor Detail

      • DefaultSchemaLoader

        public DefaultSchemaLoader​(LdapConnection connection)
                            throws LdapException
        Creates a new instance of DefaultSchemaLoader.
        Parameters:
        connection - the LDAP connection
        Throws:
        LdapException - if the connection is not authenticated or if there are any problems while loading the schema entries
      • DefaultSchemaLoader

        public DefaultSchemaLoader​(LdapConnection connection,
                                   boolean relaxed)
                            throws LdapException
        Creates a new instance of DefaultSchemaLoader.
        Parameters:
        connection - the LDAP connection
        relaxed - initial setting for the relaxed mode
        Throws:
        LdapException - if the connection is not authenticated or if there are any problems while loading the schema entries
      • DefaultSchemaLoader

        public DefaultSchemaLoader​(LdapConnection connection,
                                   Dn subschemaSubentryDn)
                            throws LdapException
        Creates a new instance of NetworkSchemaLoader.
        Parameters:
        connection - the LDAP connection
        subschemaSubentryDn - The SubschemaSubentry
        Throws:
        LdapException - if the connection is not authenticated or if there are any problems while loading the schema entries
    • Method Detail

      • loadAttributeTypes

        public List<EntryloadAttributeTypes​(Schema... schemas)
                                       throws LdapException,
                                              IOException
        Build a list of AttributeTypes read from the underlying storage for a list of specified schema
        Parameters:
        schemas - the schemas from which AttributeTypes are loaded
        Returns:
        The list of loaded AttributeTypes
        Throws:
        LdapException - if there are failures accessing AttributeType information
        IOException - If we can't read the schemaObject
      • loadComparators

        public List<EntryloadComparators​(Schema... schemas)
                                    throws LdapException,
                                           IOException
        Build a list of Comparators read from the underlying storage for a list of specific schema.
        Parameters:
        schemas - the schemas from which Comparators are loaded
        Returns:
        The list of loaded Comparators
        Throws:
        LdapException - if there are failures accessing Comparator information
        IOException - If we can't read the schemaObject
      • loadDitContentRules

        public List<EntryloadDitContentRules​(Schema... schemas)
                                        throws LdapException,
                                               IOException
        Build a list of DitContentRules read from the underlying storage for a list of specific schema.
        Parameters:
        schemas - the schemas from which DitContentRules are loaded
        Returns:
        The list of loaded DitContentRules
        Throws:
        LdapException - if there are failures accessing DitContentRule information
        IOException - If we can't read the schemaObject
      • loadDitStructureRules

        public List<EntryloadDitStructureRules​(Schema... schemas)
                                          throws LdapException,
                                                 IOException
        Build a list of DitStructureRules read from the underlying storage for a list of specific schema.
        Parameters:
        schemas - the schemas from which DitStructureRules are loaded
        Returns:
        The list of loaded DitStructureRules
        Throws:
        LdapException - if there are failures accessing DitStructureRule information
        IOException - If we can't read the schemaObject
      • loadMatchingRuleUses

        public List<EntryloadMatchingRuleUses​(Schema... schemas)
                                         throws LdapException,
                                                IOException
        Build a list of MatchingRuleUses read from the underlying storage for a list of specific schema.
        Parameters:
        schemas - the schemas from which MatchingRuleUses are loaded
        Returns:
        The list of loaded MatchingRuleUses
        Throws:
        LdapException - if there are failures accessing MatchingRuleUse information
        IOException - If we can't read the schemaObject
      • loadMatchingRules

        public List<EntryloadMatchingRules​(Schema... schemas)
                                      throws LdapException,
                                             IOException
        Build a list of MatchingRules read from the underlying storage for a list of specific schema
        Parameters:
        schemas - the schemas from which MatchingRules are loaded
        Returns:
        The list of loaded MatchingRules
        Throws:
        LdapException - if there are failures accessing MatchingRule information
        IOException - If we can't read the schemaObject
      • loadNameForms

        public List<EntryloadNameForms​(Schema... schemas)
                                  throws LdapException,
                                         IOException
        Build a list of NameForms read from the underlying storage for a list of specific schema.
        Parameters:
        schemas - the schemas from which NameForms are loaded
        Returns:
        The list of loaded NameForms
        Throws:
        LdapException - if there are failures accessing NameForm information
        IOException - If we can't read the schemaObject
      • loadNormalizers

        public List<EntryloadNormalizers​(Schema... schemas)
                                    throws LdapException,
                                           IOException
        Build a list of Normalizers read from the underlying storage for a list of specified schema
        Parameters:
        schemas - the schemas from which Normalizers are loaded
        Returns:
        The list of loaded Normalizers
        Throws:
        LdapException - if there are failures accessing Normalizer information
        IOException - If we can't read the schemaObject
      • loadObjectClasses

        public List<EntryloadObjectClasses​(Schema... schemas)
                                      throws LdapException,
                                             IOException
        Build a list of ObjectClasses read from the underlying storage for a list of specific schema.
        Parameters:
        schemas - the schemas from which ObjectClasses are loaded
        Returns:
        The list of loaded ObjectClasses
        Throws:
        LdapException - if there are failures accessing ObjectClass information
        IOException - If we can't read the schemaObject
      • loadSyntaxCheckers

        public List<EntryloadSyntaxCheckers​(Schema... schemas)
                                       throws LdapException,
                                              IOException
        Build a list of SyntaxCheckers read from the underlying storage for a list of specified schema
        Parameters:
        schemas - the schemas from which SyntaxCheckers are loaded
        Returns:
        The list of loaded SyntaxeCheckers
        Throws:
        LdapException - if there are failures accessing SyntaxChecker information
        IOException - If we can't read the schemaObject
      • loadSyntaxes

        public List<EntryloadSyntaxes​(Schema... schemas)
                                 throws LdapException,
                                        IOException
        Build a list of Syntaxes read from the underlying storage for a list of specified schema
        Parameters:
        schemas - the schemas from which Syntaxes are loaded
        Returns:
        The list of loaded Syntaxes
        Throws:
        LdapException - if there are failures accessing Syntax information
        IOException - If we can't read the schemaObject
      • setQuirksMode

        public void setQuirksMode​(boolean enabled)
        Sets the quirks mode for all the internal parsers. If enabled the parser accepts non-numeric OIDs and some special characters in descriptions.
        Parameters:
        enabled - the new quirks mode