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 daoException
public Map<String,org.apache.directory.shared.ldap.schema.registries.Schema> getSchemas() throws Exception
getSchemas
in interface SchemaPartitionDao
Exception
public Set<String> getSchemaNames() throws Exception
getSchemaNames
in interface SchemaPartitionDao
Exception
public org.apache.directory.shared.ldap.schema.registries.Schema getSchema(String schemaName) throws Exception
getSchema
in interface SchemaPartitionDao
Exception
public boolean hasMatchingRule(String oid) throws Exception
hasMatchingRule
in interface SchemaPartitionDao
Exception
public boolean hasAttributeType(String oid) throws Exception
hasAttributeType
in interface SchemaPartitionDao
Exception
public boolean hasObjectClass(String oid) throws Exception
hasObjectClass
in interface SchemaPartitionDao
Exception
public boolean hasSyntax(String oid) throws Exception
hasSyntax
in interface SchemaPartitionDao
Exception
public boolean hasSyntaxChecker(String oid) throws Exception
hasSyntaxChecker
in interface SchemaPartitionDao
Exception
public String findSchema(String entityName) throws Exception
SchemaPartitionDao
findSchema
in interface SchemaPartitionDao
entityName
- 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 problemsException
public org.apache.directory.shared.ldap.name.DN findDn(String entityName) throws Exception
findDn
in interface SchemaPartitionDao
Exception
public org.apache.directory.shared.ldap.entry.ServerEntry find(String entityName) throws Exception
SchemaPartitionDao
find
in interface SchemaPartitionDao
entityName
- 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 problemsException
public void enableSchema(String schemaName) throws Exception
SchemaPartitionDao
enableSchema
in interface SchemaPartitionDao
schemaName
- the name of the schema to enableNamingException
- if there is a problem updating the schema entryException
public Set<org.apache.directory.shared.ldap.entry.ServerEntry> listSyntaxDependents(String numericOid) throws Exception
SchemaPartitionDao
listSyntaxDependents
in interface SchemaPartitionDao
numericOid
- the numeric identifier for the entityNamingException
- if the dao fails to perform search operationsException
public Set<org.apache.directory.shared.ldap.entry.ServerEntry> listMatchingRuleDependents(org.apache.directory.shared.ldap.schema.MatchingRule mr) throws Exception
listMatchingRuleDependents
in interface SchemaPartitionDao
Exception
public EntryFilteringCursor listAllNames() throws Exception
listAllNames
in interface SchemaPartitionDao
Exception
public Set<org.apache.directory.shared.ldap.entry.ServerEntry> listAttributeTypeDependents(org.apache.directory.shared.ldap.schema.AttributeType at) throws Exception
listAttributeTypeDependents
in interface SchemaPartitionDao
Exception
public Set<org.apache.directory.shared.ldap.entry.ServerEntry> listSchemaDependents(String schemaName) throws Exception
SchemaPartitionDao
listSchemaDependents
in interface SchemaPartitionDao
schemaName
- the name of the schema to search for dependeesNamingException
- if there is a problem while searching the schema partitionException
public Set<org.apache.directory.shared.ldap.entry.ServerEntry> listEnabledSchemaDependents(String schemaName) throws Exception
SchemaPartitionDao
listEnabledSchemaDependents
in interface SchemaPartitionDao
schemaName
- the name of the schema to search for dependenciesNamingException
- if there is a problem while searching the schema partitionException
public Set<org.apache.directory.shared.ldap.entry.ServerEntry> listObjectClassDependents(org.apache.directory.shared.ldap.schema.ObjectClass oc) throws Exception
listObjectClassDependents
in interface SchemaPartitionDao
Exception
Copyright © 2003–2013 The Apache Software Foundation. All rights reserved.