Class SingleLdifSchemaLoader

  • All Implemented Interfaces:
    SchemaLoader

    public class SingleLdifSchemaLoader
    extends AbstractSchemaLoader
    A schema loader based on a single monolithic ldif file containing all the schema partition elements Performs better than any other existing LDIF schema loaders. NOT DOCUMENTED atm
    Author:
    Apache Directory Project
    • Constructor Detail

      • SingleLdifSchemaLoader

        public SingleLdifSchemaLoader()
        Instantiates a new single LDIF schema loader.
      • SingleLdifSchemaLoader

        public SingleLdifSchemaLoader​(String schemaFile)
        Instantiates a new single LDIF schema loader.
        Parameters:
        schemaFile - The Schema to load
      • SingleLdifSchemaLoader

        public SingleLdifSchemaLoader​(URL schemaUrl)
        Instantiates a new single LDIF schema loader.
        Parameters:
        schemaUrl - The URL of the schema to load
    • Method Detail

      • loadAttributeTypes

        public List<Entry> loadAttributeTypes​(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<Entry> loadComparators​(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<Entry> loadDitContentRules​(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<Entry> loadDitStructureRules​(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
      • loadMatchingRules

        public List<Entry> loadMatchingRules​(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
      • loadMatchingRuleUses

        public List<Entry> loadMatchingRuleUses​(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
      • loadNameForms

        public List<Entry> loadNameForms​(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<Entry> loadNormalizers​(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<Entry> loadObjectClasses​(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
      • loadSyntaxes

        public List<Entry> loadSyntaxes​(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
      • loadSyntaxCheckers

        public List<Entry> loadSyntaxCheckers​(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