|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.schema.SchemaPartitionDaoImpl
public class SchemaPartitionDaoImpl
A specialized data access object for managing schema objects in the schema partition. WARNING: This dao operates directly on a partition. Hence no interceptors are available to perform the various expected services of respective interceptors. Take care to normalize all filters and distinguished names. A single write operation exists for enabling schemas needed for operating indices in partitions and enabling schemas that are dependencies of other schemas that are enabled. In both these limited cases there is no need to worry about issues with a lack of replication propagation because these same updates will take place on replicas when the original operation is propagated or when replicas start up.
| Constructor Summary | |
|---|---|
SchemaPartitionDaoImpl(Partition partition,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
Creates a schema dao object backing information within a schema partition. |
|
| Method Summary | |
|---|---|
void |
enableSchema(java.lang.String schemaName)
Enables a schema by removing it's m-disabled attribute if present. |
org.apache.directory.shared.ldap.entry.ServerEntry |
find(java.lang.String entityName)
Given the non-normalized name (alias) or the OID for a schema entity. |
org.apache.directory.shared.ldap.name.DN |
findDn(java.lang.String entityName)
|
java.lang.String |
findSchema(java.lang.String entityName)
Given the non-normalized name (alias) or the OID for a schema entity. |
org.apache.directory.shared.ldap.schema.registries.Schema |
getSchema(java.lang.String schemaName)
|
java.util.Set<java.lang.String> |
getSchemaNames()
|
java.util.Map<java.lang.String,org.apache.directory.shared.ldap.schema.registries.Schema> |
getSchemas()
|
boolean |
hasAttributeType(java.lang.String oid)
|
boolean |
hasMatchingRule(java.lang.String oid)
|
boolean |
hasObjectClass(java.lang.String oid)
|
boolean |
hasSyntax(java.lang.String oid)
|
boolean |
hasSyntaxChecker(java.lang.String oid)
|
EntryFilteringCursor |
listAllNames()
|
java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listAttributeTypeDependents(org.apache.directory.shared.ldap.schema.AttributeType at)
|
java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listEnabledSchemaDependents(java.lang.String schemaName)
Lists the SearchResults of metaSchema objects that depend on a schema. |
java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listMatchingRuleDependents(org.apache.directory.shared.ldap.schema.MatchingRule mr)
|
java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listObjectClassDependents(org.apache.directory.shared.ldap.schema.ObjectClass oc)
|
java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listSchemaDependents(java.lang.String schemaName)
Lists the SearchResults of metaSchema objects that depend on a schema. |
java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> |
listSyntaxDependents(java.lang.String numericOid)
Returns the set of matchingRules and attributeTypes which depend on the provided syntax. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaPartitionDaoImpl(Partition partition,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager)
throws java.lang.Exception
partition - the schema partitionregistries - the bootstrap registries that were used to start up the schema partition
javax.naming.NamingException - if there are problems initializing this schema partion dao
java.lang.Exception| Method Detail |
|---|
public java.util.Map<java.lang.String,org.apache.directory.shared.ldap.schema.registries.Schema> getSchemas()
throws java.lang.Exception
getSchemas in interface SchemaPartitionDaojava.lang.Exception
public java.util.Set<java.lang.String> getSchemaNames()
throws java.lang.Exception
getSchemaNames in interface SchemaPartitionDaojava.lang.Exception
public org.apache.directory.shared.ldap.schema.registries.Schema getSchema(java.lang.String schemaName)
throws java.lang.Exception
getSchema in interface SchemaPartitionDaojava.lang.Exception
public boolean hasMatchingRule(java.lang.String oid)
throws java.lang.Exception
hasMatchingRule in interface SchemaPartitionDaojava.lang.Exception
public boolean hasAttributeType(java.lang.String oid)
throws java.lang.Exception
hasAttributeType in interface SchemaPartitionDaojava.lang.Exception
public boolean hasObjectClass(java.lang.String oid)
throws java.lang.Exception
hasObjectClass in interface SchemaPartitionDaojava.lang.Exception
public boolean hasSyntax(java.lang.String oid)
throws java.lang.Exception
hasSyntax in interface SchemaPartitionDaojava.lang.Exception
public boolean hasSyntaxChecker(java.lang.String oid)
throws java.lang.Exception
hasSyntaxChecker in interface SchemaPartitionDaojava.lang.Exception
public java.lang.String findSchema(java.lang.String entityName)
throws java.lang.Exception
SchemaPartitionDao
findSchema in interface SchemaPartitionDaoentityName - one of the names of the entity or it's numeric id
javax.naming.NamingException - if more than one entity has the name, or if there
are underlying data access problems
java.lang.Exception
public org.apache.directory.shared.ldap.name.DN findDn(java.lang.String entityName)
throws java.lang.Exception
findDn in interface SchemaPartitionDaojava.lang.Exception
public org.apache.directory.shared.ldap.entry.ServerEntry find(java.lang.String entityName)
throws java.lang.Exception
SchemaPartitionDao
find in interface SchemaPartitionDaoentityName - one of the names of the entity or it's numeric id
javax.naming.NamingException - if more than one entity has the name, or if there
are underlying data access problems
java.lang.Exception
public void enableSchema(java.lang.String schemaName)
throws java.lang.Exception
SchemaPartitionDao
enableSchema in interface SchemaPartitionDaoschemaName - the name of the schema to enable
javax.naming.NamingException - if there is a problem updating the schema entry
java.lang.Exception
public java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> listSyntaxDependents(java.lang.String numericOid)
throws java.lang.Exception
SchemaPartitionDao
listSyntaxDependents in interface SchemaPartitionDaonumericOid - the numeric identifier for the entity
javax.naming.NamingException - if the dao fails to perform search operations
java.lang.Exception
public java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> listMatchingRuleDependents(org.apache.directory.shared.ldap.schema.MatchingRule mr)
throws java.lang.Exception
listMatchingRuleDependents in interface SchemaPartitionDaojava.lang.Exception
public EntryFilteringCursor listAllNames()
throws java.lang.Exception
listAllNames in interface SchemaPartitionDaojava.lang.Exception
public java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> listAttributeTypeDependents(org.apache.directory.shared.ldap.schema.AttributeType at)
throws java.lang.Exception
listAttributeTypeDependents in interface SchemaPartitionDaojava.lang.Exception
public java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> listSchemaDependents(java.lang.String schemaName)
throws java.lang.Exception
SchemaPartitionDao
listSchemaDependents in interface SchemaPartitionDaoschemaName - the name of the schema to search for dependees
javax.naming.NamingException - if there is a problem while searching the schema partition
java.lang.Exception
public java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> listEnabledSchemaDependents(java.lang.String schemaName)
throws java.lang.Exception
SchemaPartitionDao
listEnabledSchemaDependents in interface SchemaPartitionDaoschemaName - the name of the schema to search for dependencies
javax.naming.NamingException - if there is a problem while searching the schema partition
java.lang.Exception
public java.util.Set<org.apache.directory.shared.ldap.entry.ServerEntry> listObjectClassDependents(org.apache.directory.shared.ldap.schema.ObjectClass oc)
throws java.lang.Exception
listObjectClassDependents in interface SchemaPartitionDaojava.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||