public interface SchemaDao
Modifier and Type | Method and Description |
---|---|
void |
enableSchema(String schemaName)
Enables a schema by removing it's m-disabled attribute if present.
|
Entry |
find(String entityName)
Given the non-normalized name (alias) or the OID for a schema entity.
|
DN |
findDn(String entityName) |
String |
findSchema(String entityName)
Given the non-normalized name (alias) or the OID for a schema entity.
|
Schema |
getSchema(String schemaName) |
Set<String> |
getSchemaNames() |
Map<String,Schema> |
getSchemas()
Gets a Map of Schemas managed by a schema store.
|
boolean |
hasAttributeType(String oid) |
boolean |
hasMatchingRule(String oid) |
boolean |
hasObjectClass(String oid) |
boolean |
hasSyntax(String oid) |
boolean |
hasSyntaxChecker(String oid) |
Set<Entry> |
listAttributeTypeDependents(AttributeType at) |
Set<Entry> |
listEnabledSchemaDependents(String schemaName)
Lists the SearchResults of metaSchema objects that depend on a schema.
|
Set<Entry> |
listMatchingRuleDependents(MatchingRule mr) |
Set<Entry> |
listObjectClassDependents(ObjectClass oc) |
Set<Entry> |
listSchemaDependents(String schemaName)
Lists the SearchResults of metaSchema objects that depend on a schema.
|
Set<Entry> |
listSyntaxDependents(String numericOid)
Returns the set of matchingRules and attributeTypes which depend on the
provided syntax.
|
Map<String,Schema> getSchemas() throws Exception
Exception
- if there is some problem accessing the schema dataString findSchema(String entityName) throws Exception
entityName
- one of the names of the entity or it's numeric idLdapException
- if more than one entity has the name, or if there
are underlying data access problemsException
Entry find(String entityName) throws Exception
entityName
- one of the names of the entity or it's numeric idLdapException
- if more than one entity has the name, or if there
are underlying data access problemsException
void enableSchema(String schemaName) throws Exception
schemaName
- the name of the schema to enableLdapException
- if there is a problem updating the schema entryException
Set<Entry> listSyntaxDependents(String numericOid) throws Exception
numericOid
- the numeric identifier for the entityLdapException
- if the dao fails to perform search operationsException
Set<Entry> listMatchingRuleDependents(MatchingRule mr) throws Exception
Exception
Set<Entry> listAttributeTypeDependents(AttributeType at) throws Exception
Exception
Set<Entry> listSchemaDependents(String schemaName) throws Exception
schemaName
- the name of the schema to search for dependeesLdapException
- if there is a problem while searching the schema partitionException
Set<Entry> listEnabledSchemaDependents(String schemaName) throws Exception
schemaName
- the name of the schema to search for dependenciesLdapException
- if there is a problem while searching the schema partitionException
Set<Entry> listObjectClassDependents(ObjectClass oc) throws Exception
Exception
Copyright © 2003–2016 The Apache Software Foundation. All rights reserved.