org.apache.directory.ldap.client.api
Class DefaultSchemaLoader

java.lang.Object
  extended by org.apache.directory.api.ldap.model.schema.registries.AbstractSchemaLoader
      extended by org.apache.directory.ldap.client.api.DefaultSchemaLoader
All Implemented Interfaces:
org.apache.directory.api.ldap.model.schema.registries.SchemaLoader

public class DefaultSchemaLoader
extends org.apache.directory.api.ldap.model.schema.registries.AbstractSchemaLoader

A schema loader which uses LdapConnection to load schema from a ApacheDS serveur

Author:
Apache Directory Project

Field Summary
 
Fields inherited from class org.apache.directory.api.ldap.model.schema.registries.AbstractSchemaLoader
listener, schemaMap
 
Constructor Summary
DefaultSchemaLoader(LdapConnection connection)
          Creates a new instance of DefaultSchemaLoader.
DefaultSchemaLoader(LdapConnection connection, org.apache.directory.api.ldap.model.name.Dn subschemaSubentryDn)
          Creates a new instance of NetworkSchemaLoader.
 
Method Summary
 List<org.apache.directory.api.ldap.model.entry.Entry> loadAttributeTypes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 List<org.apache.directory.api.ldap.model.entry.Entry> loadComparators(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 List<org.apache.directory.api.ldap.model.entry.Entry> loadDitContentRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 List<org.apache.directory.api.ldap.model.entry.Entry> loadDitStructureRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 List<org.apache.directory.api.ldap.model.entry.Entry> loadMatchingRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 List<org.apache.directory.api.ldap.model.entry.Entry> loadMatchingRuleUses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 List<org.apache.directory.api.ldap.model.entry.Entry> loadNameForms(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 List<org.apache.directory.api.ldap.model.entry.Entry> loadNormalizers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 List<org.apache.directory.api.ldap.model.entry.Entry> loadObjectClasses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 List<org.apache.directory.api.ldap.model.entry.Entry> loadSyntaxCheckers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 List<org.apache.directory.api.ldap.model.entry.Entry> loadSyntaxes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
          
 
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

DefaultSchemaLoader

public DefaultSchemaLoader(LdapConnection connection)
                    throws org.apache.directory.api.ldap.model.exception.LdapException
Creates a new instance of DefaultSchemaLoader.

Parameters:
connection - the LDAP connection
Throws:
Exception - if the connection is not authenticated or if there are any problems while loading the schema entries
org.apache.directory.api.ldap.model.exception.LdapException

DefaultSchemaLoader

public DefaultSchemaLoader(LdapConnection connection,
                           org.apache.directory.api.ldap.model.name.Dn subschemaSubentryDn)
                    throws Exception
Creates a new instance of NetworkSchemaLoader.

Parameters:
connection - the LDAP connection
Throws:
Exception - if the connection is not authenticated or if there are any problems while loading the schema entries
Method Detail

loadAttributeTypes

public List<org.apache.directory.api.ldap.model.entry.Entry> loadAttributeTypes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                         throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                                IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException

loadComparators

public List<org.apache.directory.api.ldap.model.entry.Entry> loadComparators(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                      throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                             IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException

loadDitContentRules

public List<org.apache.directory.api.ldap.model.entry.Entry> loadDitContentRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                          throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                                 IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException

loadDitStructureRules

public List<org.apache.directory.api.ldap.model.entry.Entry> loadDitStructureRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                            throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                                   IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException

loadMatchingRuleUses

public List<org.apache.directory.api.ldap.model.entry.Entry> loadMatchingRuleUses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                           throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                                  IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException

loadMatchingRules

public List<org.apache.directory.api.ldap.model.entry.Entry> loadMatchingRules(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                        throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                               IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException

loadNameForms

public List<org.apache.directory.api.ldap.model.entry.Entry> loadNameForms(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                    throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                           IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException

loadNormalizers

public List<org.apache.directory.api.ldap.model.entry.Entry> loadNormalizers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                      throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                             IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException

loadObjectClasses

public List<org.apache.directory.api.ldap.model.entry.Entry> loadObjectClasses(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                        throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                               IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException

loadSyntaxCheckers

public List<org.apache.directory.api.ldap.model.entry.Entry> loadSyntaxCheckers(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                         throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                                IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException

loadSyntaxes

public List<org.apache.directory.api.ldap.model.entry.Entry> loadSyntaxes(org.apache.directory.api.ldap.model.schema.registries.Schema... schemas)
                                                                   throws org.apache.directory.api.ldap.model.exception.LdapException,
                                                                          IOException

Throws:
org.apache.directory.api.ldap.model.exception.LdapException
IOException


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