|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.schema.SchemaPartitionDao
public class SchemaPartitionDao
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 | |
---|---|
SchemaPartitionDao(Partition partition,
Registries registries)
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. |
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.LdapDN |
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. |
Schema |
getSchema(java.lang.String schemaName)
|
java.util.Set<java.lang.String> |
getSchemaNames()
|
java.util.Map<java.lang.String,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<ServerEntry> |
listAttributeTypeDependents(org.apache.directory.shared.ldap.schema.AttributeType at)
|
java.util.Set<ServerEntry> |
listEnabledSchemaDependents(java.lang.String schemaName)
Lists the SearchResults of metaSchema objects that depend on a schema. |
java.util.Set<ServerEntry> |
listMatchingRuleDependents(org.apache.directory.shared.ldap.schema.MatchingRule mr)
|
java.util.Set<ServerEntry> |
listObjectClassDependents(org.apache.directory.shared.ldap.schema.ObjectClass oc)
|
java.util.Set<ServerEntry> |
listSchemaDependents(java.lang.String schemaName)
Lists the SearchResults of metaSchema objects that depend on a schema. |
java.util.Set<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 SchemaPartitionDao(Partition partition, Registries registries) 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,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
java.lang.Exception
public boolean hasMatchingRule(java.lang.String oid) throws java.lang.Exception
java.lang.Exception
public boolean hasAttributeType(java.lang.String oid) throws java.lang.Exception
java.lang.Exception
public boolean hasObjectClass(java.lang.String oid) throws java.lang.Exception
java.lang.Exception
public boolean hasSyntax(java.lang.String oid) throws java.lang.Exception
java.lang.Exception
public boolean hasSyntaxChecker(java.lang.String oid) throws java.lang.Exception
java.lang.Exception
public java.lang.String findSchema(java.lang.String entityName) throws java.lang.Exception
entityName
- 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.LdapDN findDn(java.lang.String entityName) throws java.lang.Exception
java.lang.Exception
public ServerEntry find(java.lang.String entityName) throws java.lang.Exception
entityName
- 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
schemaName
- 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<ServerEntry> listSyntaxDependents(java.lang.String numericOid) throws java.lang.Exception
numericOid
- the numeric identifier for the entity
javax.naming.NamingException
- if the dao fails to perform search operations
java.lang.Exception
public java.util.Set<ServerEntry> listMatchingRuleDependents(org.apache.directory.shared.ldap.schema.MatchingRule mr) throws java.lang.Exception
java.lang.Exception
public EntryFilteringCursor listAllNames() throws java.lang.Exception
java.lang.Exception
public java.util.Set<ServerEntry> listAttributeTypeDependents(org.apache.directory.shared.ldap.schema.AttributeType at) throws java.lang.Exception
java.lang.Exception
public java.util.Set<ServerEntry> listSchemaDependents(java.lang.String schemaName) throws java.lang.Exception
schemaName
- 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<ServerEntry> listEnabledSchemaDependents(java.lang.String schemaName) throws java.lang.Exception
schemaName
- 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<ServerEntry> listObjectClassDependents(org.apache.directory.shared.ldap.schema.ObjectClass oc) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |