|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.schema.registries.AbstractSchemaLoader
org.apache.directory.server.core.schema.PartitionSchemaLoader
public class PartitionSchemaLoader
A class that loads schemas from a partition.
Field Summary |
---|
Fields inherited from class org.apache.directory.server.schema.registries.AbstractSchemaLoader |
---|
listener |
Constructor Summary | |
---|---|
PartitionSchemaLoader(Partition partition,
Registries registries)
|
Method Summary | |
---|---|
Schema |
getSchema(java.lang.String schemaName)
Gets a schema object based on it's name. |
Schema |
getSchema(java.lang.String schemaName,
java.util.Properties schemaProperties)
Gets a schema object based on it's name and some properties. |
java.util.Set<java.lang.String> |
getSchemaNames()
|
java.util.Map<java.lang.String,Schema> |
getSchemas()
|
java.util.Set<java.lang.String> |
listDependentSchemaNames(java.lang.String schemaName)
Lists the names of the schemas that depend on the schema name provided. |
java.util.Set<java.lang.String> |
listEnabledDependentSchemaNames(java.lang.String schemaName)
Lists the names of the enabled schemas that depend on the schema name provided. |
void |
load(Schema schema,
Registries targetRegistries,
boolean isDepLoad)
SchemaLoader.load(Schema, Registries, boolean) |
void |
loadEnabled(Registries targetRegistries)
Utility method to load all enabled schemas into this registry. |
void |
loadWithDependencies(java.util.Collection<Schema> schemas,
Registries targetRegistries)
Loads a collection of schemas. |
void |
loadWithDependencies(Schema schema,
Registries registries)
Loads a single schema at least and possibly it's dependencies. |
Methods inherited from class org.apache.directory.server.schema.registries.AbstractSchemaLoader |
---|
loadDepsFirst, notifyListenerOrRegistries, setListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartitionSchemaLoader(Partition partition, Registries registries) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public void loadEnabled(Registries targetRegistries) throws java.lang.Exception
targetRegistries
-
javax.naming.NamingException
java.lang.Exception
public java.util.Set<java.lang.String> listDependentSchemaNames(java.lang.String schemaName) throws java.lang.Exception
schemaName
- the name of the schema to find dependents for
javax.naming.NamingException
- if there are problems searching the schema partition
java.lang.Exception
public java.util.Set<java.lang.String> listEnabledDependentSchemaNames(java.lang.String schemaName) throws java.lang.Exception
schemaName
- the name of the schema to find dependents for
javax.naming.NamingException
- if there are problems searching the schema partition
java.lang.Exception
public java.util.Map<java.lang.String,Schema> getSchemas() throws java.lang.Exception
java.lang.Exception
public java.util.Set<java.lang.String> getSchemaNames() throws java.lang.Exception
java.lang.Exception
public Schema getSchema(java.lang.String schemaName) throws java.lang.Exception
SchemaLoader
schemaName
- the name of the schema to load
java.lang.Exception
public Schema getSchema(java.lang.String schemaName, java.util.Properties schemaProperties) throws java.lang.Exception
SchemaLoader
schemaName
- the name of the schema to loadschemaProperties
- the properties associated with that schema to facilitate locating/loading it
java.lang.Exception
public final void loadWithDependencies(java.util.Collection<Schema> schemas, Registries targetRegistries) throws java.lang.Exception
SchemaLoader
schemas
- the collection of schemas to loadtargetRegistries
- the registries to populate with these schemas
java.lang.Exception
public final void load(Schema schema, Registries targetRegistries, boolean isDepLoad) throws java.lang.Exception
SchemaLoader.load(Schema, Registries, boolean)
schema
- the schema to loadtargetRegistries
- the registries to populate with these schemasisDepLoad
- tells the loader if this load request is to satisfy a dependency
java.lang.Exception
public void loadWithDependencies(Schema schema, Registries registries) throws java.lang.Exception
SchemaLoader
schema
- the schema to loadregistries
- the registries to populate with these schemas
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |