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

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

public class NetworkSchemaLoader
extends AbstractSchemaLoader

A schema loader which uses LdapConnection to load schema.

Author:
Apache Directory Project

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

NetworkSchemaLoader

public NetworkSchemaLoader(LdapConnection connection)
                    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<Entry> loadAttributeTypes(Schema... schemas)
                               throws LdapException,
                                      IOException

Throws:
LdapException
IOException

loadComparators

public List<Entry> loadComparators(Schema... schemas)
                            throws LdapException,
                                   IOException

Throws:
LdapException
IOException

loadDitContentRules

public List<Entry> loadDitContentRules(Schema... schemas)
                                throws LdapException,
                                       IOException

Throws:
LdapException
IOException

loadDitStructureRules

public List<Entry> loadDitStructureRules(Schema... schemas)
                                  throws LdapException,
                                         IOException

Throws:
LdapException
IOException

loadMatchingRuleUses

public List<Entry> loadMatchingRuleUses(Schema... schemas)
                                 throws LdapException,
                                        IOException

Throws:
LdapException
IOException

loadMatchingRules

public List<Entry> loadMatchingRules(Schema... schemas)
                              throws LdapException,
                                     IOException

Throws:
LdapException
IOException

loadNameForms

public List<Entry> loadNameForms(Schema... schemas)
                          throws LdapException,
                                 IOException

Throws:
LdapException
IOException

loadNormalizers

public List<Entry> loadNormalizers(Schema... schemas)
                            throws LdapException,
                                   IOException

Throws:
LdapException
IOException

loadObjectClasses

public List<Entry> loadObjectClasses(Schema... schemas)
                              throws LdapException,
                                     IOException

Throws:
LdapException
IOException

loadSyntaxCheckers

public List<Entry> loadSyntaxCheckers(Schema... schemas)
                               throws LdapException,
                                      IOException

Throws:
LdapException
IOException

loadSyntaxes

public List<Entry> loadSyntaxes(Schema... schemas)
                         throws LdapException,
                                IOException

Throws:
LdapException
IOException


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