org.apache.directory.api.ldap.schemaloader
Class SingleLdifSchemaLoader

java.lang.Object
  extended by org.apache.directory.api.ldap.model.schema.registries.AbstractSchemaLoader
      extended by org.apache.directory.api.ldap.schemaloader.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

Field Summary
 
Fields inherited from class org.apache.directory.api.ldap.model.schema.registries.AbstractSchemaLoader
listener, schemaMap
 
Constructor Summary
SingleLdifSchemaLoader()
          Instantiates a new single LDIF schema loader.
 
Method Summary
 List<Entry> loadAttributeTypes(Schema... schemas)
          Build a list of AttributeTypes read from the underlying storage for a list of specified schema
 List<Entry> loadComparators(Schema... schemas)
          Build a list of Comparators read from the underlying storage for a list of specific schema.
 List<Entry> loadDitContentRules(Schema... schemas)
          Build a list of DitContentRules read from the underlying storage for a list of specific schema.
 List<Entry> loadDitStructureRules(Schema... schemas)
          Build a list of DitStructureRules read from the underlying storage for a list of specific schema.
 List<Entry> loadMatchingRules(Schema... schemas)
          Build a list of MatchingRules read from the underlying storage for a list of specific schema
 List<Entry> loadMatchingRuleUses(Schema... schemas)
          Build a list of MatchingRuleUses read from the underlying storage for a list of specific schema.
 List<Entry> loadNameForms(Schema... schemas)
          Build a list of NameForms read from the underlying storage for a list of specific schema.
 List<Entry> loadNormalizers(Schema... schemas)
          Build a list of Normalizers read from the underlying storage for a list of specified schema
 List<Entry> loadObjectClasses(Schema... schemas)
          Build a list of ObjectClasses read from the underlying storage for a list of specific schema.
 List<Entry> loadSyntaxCheckers(Schema... schemas)
          Build a list of SyntaxCheckers read from the underlying storage for a list of specified schema
 List<Entry> loadSyntaxes(Schema... schemas)
          Build a list of Syntaxes read from the underlying storage for a list of specified schema
 
Methods inherited from class org.apache.directory.api.ldap.model.schema.registries.AbstractSchemaLoader
addSchema, getAllEnabled, getAllSchemas, getDao, getSchema, getSchema, loadAttributeTypes, loadComparators, loadDitContentRules, loadDitStructureRules, loadMatchingRules, loadMatchingRuleUses, loadNameForms, loadNormalizers, loadObjectClasses, loadSyntaxCheckers, loadSyntaxes, notifyListenerOrRegistries, removeSchema, setListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleLdifSchemaLoader

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

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
Throws:
LdapException
IOException

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
Throws:
LdapException
IOException

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
Throws:
LdapException
IOException

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
Throws:
LdapException
IOException

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
Throws:
LdapException
IOException

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
Throws:
LdapException
IOException

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
Throws:
LdapException
IOException

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
Throws:
LdapException
IOException

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
Throws:
LdapException
IOException

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
Throws:
LdapException
IOException

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
Throws:
LdapException
IOException


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.