public class SchemaPartitionDaoImpl extends Object implements SchemaPartitionDao
| Constructor and Description |
|---|
SchemaPartitionDaoImpl(Partition partition,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Creates a schema dao object backing information within a schema partition.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enableSchema(String schemaName)
Enables a schema by removing it's m-disabled attribute if present.
|
org.apache.directory.shared.ldap.entry.ServerEntry |
find(String entityName)
Given the non-normalized name (alias) or the OID for a schema entity.
|
org.apache.directory.shared.ldap.name.DN |
findDn(String entityName) |
String |
findSchema(String entityName)
Given the non-normalized name (alias) or the OID for a schema entity.
|
org.apache.directory.shared.ldap.schema.registries.Schema |
getSchema(String schemaName) |
Set<String> |
getSchemaNames() |
Map<String,org.apache.directory.shared.ldap.schema.registries.Schema> |
getSchemas() |
boolean |
hasAttributeType(String oid) |
boolean |
hasMatchingRule(String oid) |
boolean |
hasObjectClass(String oid) |
boolean |
hasSyntax(String oid) |
boolean |
hasSyntaxChecker(String oid) |
EntryFilteringCursor |
listAllNames() |
Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listAttributeTypeDependents(org.apache.directory.shared.ldap.schema.AttributeType at) |
Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listEnabledSchemaDependents(String schemaName)
Lists the SearchResults of metaSchema objects that depend on a schema.
|
Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listMatchingRuleDependents(org.apache.directory.shared.ldap.schema.MatchingRule mr) |
Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listObjectClassDependents(org.apache.directory.shared.ldap.schema.ObjectClass oc) |
Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listSchemaDependents(String schemaName)
Lists the SearchResults of metaSchema objects that depend on a schema.
|
Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listSyntaxDependents(String numericOid)
Returns the set of matchingRules and attributeTypes which depend on the
provided syntax.
|
public SchemaPartitionDaoImpl(Partition partition, org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) throws Exception
partition - the schema partitionregistries - the bootstrap registries that were used to start up the schema partitionNamingException - if there are problems initializing this schema partion daoExceptionpublic Map<String,org.apache.directory.shared.ldap.schema.registries.Schema> getSchemas() throws Exception
getSchemas in interface SchemaPartitionDaoExceptionpublic Set<String> getSchemaNames() throws Exception
getSchemaNames in interface SchemaPartitionDaoExceptionpublic org.apache.directory.shared.ldap.schema.registries.Schema getSchema(String schemaName) throws Exception
getSchema in interface SchemaPartitionDaoExceptionpublic boolean hasMatchingRule(String oid) throws Exception
hasMatchingRule in interface SchemaPartitionDaoExceptionpublic boolean hasAttributeType(String oid) throws Exception
hasAttributeType in interface SchemaPartitionDaoExceptionpublic boolean hasObjectClass(String oid) throws Exception
hasObjectClass in interface SchemaPartitionDaoExceptionpublic boolean hasSyntax(String oid) throws Exception
hasSyntax in interface SchemaPartitionDaoExceptionpublic boolean hasSyntaxChecker(String oid) throws Exception
hasSyntaxChecker in interface SchemaPartitionDaoExceptionpublic String findSchema(String entityName) throws Exception
SchemaPartitionDaofindSchema in interface SchemaPartitionDaoentityName - one of the names of the entity or it's numeric idNamingException - if more than one entity has the name, or if there
are underlying data access problemsExceptionpublic org.apache.directory.shared.ldap.name.DN findDn(String entityName) throws Exception
findDn in interface SchemaPartitionDaoExceptionpublic org.apache.directory.shared.ldap.entry.ServerEntry find(String entityName) throws Exception
SchemaPartitionDaofind in interface SchemaPartitionDaoentityName - one of the names of the entity or it's numeric idNamingException - if more than one entity has the name, or if there
are underlying data access problemsExceptionpublic void enableSchema(String schemaName) throws Exception
SchemaPartitionDaoenableSchema in interface SchemaPartitionDaoschemaName - the name of the schema to enableNamingException - if there is a problem updating the schema entryExceptionpublic Set<org.apache.directory.shared.ldap.entry.ServerEntry> listSyntaxDependents(String numericOid) throws Exception
SchemaPartitionDaolistSyntaxDependents in interface SchemaPartitionDaonumericOid - the numeric identifier for the entityNamingException - if the dao fails to perform search operationsExceptionpublic Set<org.apache.directory.shared.ldap.entry.ServerEntry> listMatchingRuleDependents(org.apache.directory.shared.ldap.schema.MatchingRule mr) throws Exception
listMatchingRuleDependents in interface SchemaPartitionDaoExceptionpublic EntryFilteringCursor listAllNames() throws Exception
listAllNames in interface SchemaPartitionDaoExceptionpublic Set<org.apache.directory.shared.ldap.entry.ServerEntry> listAttributeTypeDependents(org.apache.directory.shared.ldap.schema.AttributeType at) throws Exception
listAttributeTypeDependents in interface SchemaPartitionDaoExceptionpublic Set<org.apache.directory.shared.ldap.entry.ServerEntry> listSchemaDependents(String schemaName) throws Exception
SchemaPartitionDaolistSchemaDependents in interface SchemaPartitionDaoschemaName - the name of the schema to search for dependeesNamingException - if there is a problem while searching the schema partitionExceptionpublic Set<org.apache.directory.shared.ldap.entry.ServerEntry> listEnabledSchemaDependents(String schemaName) throws Exception
SchemaPartitionDaolistEnabledSchemaDependents in interface SchemaPartitionDaoschemaName - the name of the schema to search for dependenciesNamingException - if there is a problem while searching the schema partitionExceptionpublic Set<org.apache.directory.shared.ldap.entry.ServerEntry> listObjectClassDependents(org.apache.directory.shared.ldap.schema.ObjectClass oc) throws Exception
listObjectClassDependents in interface SchemaPartitionDaoExceptionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.