Skip to content
Permalink
Browse files
  • Loading branch information
elecharny committed Jun 13, 2019
2 parents 9ba50f5 + 58a995e commit c7524e0610b5b3a73944734c2ae3b3c70822448a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
@@ -104,6 +104,10 @@ public class DefaultSchemaLoader extends AbstractSchemaLoader
private static final NormalizerDescriptionSchemaParser N_DESCR_SCHEMA_PARSER = new NormalizerDescriptionSchemaParser();
private static final SyntaxCheckerDescriptionSchemaParser SC_DESCR_SCHEMA_PARSER = new SyntaxCheckerDescriptionSchemaParser();

protected DefaultSchemaLoader() throws LdapException
{
// For use in subclasses
}

/**
* Creates a new instance of DefaultSchemaLoader.
@@ -210,7 +214,6 @@ public DefaultSchemaLoader( LdapConnection connection, boolean relaxed ) throws
}
}


/**
* Creates a new instance of NetworkSchemaLoader.
*
@@ -232,6 +235,15 @@ public DefaultSchemaLoader( LdapConnection connection, Dn subschemaSubentryDn )
loadSchemas();
}

protected LdapConnection getConnection()
{
return connection;
}

protected void setConnection( LdapConnection connection )
{
this.connection = connection;
}

/**
* Indicates if the given Root DSE corresponds to an ApacheDS server.
@@ -605,7 +617,7 @@ private void loadSyntaxCheckers( Attribute syntaxCheckers ) throws LdapException
}


private void updateSchemas( SchemaObject schemaObject )
protected void updateSchemas( SchemaObject schemaObject )
{
String schemaName = schemaObject.getSchemaName();
Schema schema;
@@ -280,7 +280,7 @@ private Schema[] toArray( String... schemas ) throws LdapException
}


private void addSchemaObjects( Schema schema, Registries registries ) throws LdapException
protected void addSchemaObjects( Schema schema, Registries registries ) throws LdapException
{
// Create a content container for this schema
registries.addSchema( schema.getSchemaName() );
@@ -1116,7 +1116,7 @@ private void addSyntaxCheckers( Schema schema, Registries registries ) throws Ld
* @return the created schemaObject instance
* @throws LdapException If the registering failed
*/
private SchemaObject addSchemaObject( Registries registries, SchemaObject schemaObject, Schema schema )
protected SchemaObject addSchemaObject( Registries registries, SchemaObject schemaObject, Schema schema )
throws LdapException
{
if ( registries.isRelaxed() )

0 comments on commit c7524e0

Please sign in to comment.