public class DefaultSchemaService extends Object implements SchemaService
| Constructor and Description |
|---|
DefaultSchemaService() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.shared.ldap.schema.SchemaManager |
getSchemaManager() |
SchemaPartition |
getSchemaPartition() |
org.apache.directory.shared.ldap.entry.ServerEntry |
getSubschemaEntry(String[] ids)
Gets the schemaSubentry based on specific search id parameters which
include the special '*' and '+' operators.
|
org.apache.directory.shared.ldap.entry.ServerEntry |
getSubschemaEntryCloned()
A seriously unsafe (unsynchronized) means to access the schemaSubentry.
|
org.apache.directory.shared.ldap.entry.ServerEntry |
getSubschemaEntryImmutable()
A seriously unsafe (unsynchronized) means to access the schemaSubentry.
|
void |
initialize()
Initializes the SchemaService
|
boolean |
isSchemaSubentry(String dnString)
Tells if the given DN is the schemaSubentry DN
|
void |
setSchemaPartition(SchemaPartition schemaPartition) |
public boolean isSchemaSubentry(String dnString) throws org.apache.directory.shared.ldap.exception.LdapException
SchemaServiceisSchemaSubentry in interface SchemaServicednString - The DN we want to checktrue if the given DN is the Schema subentry DNorg.apache.directory.shared.ldap.exception.LdapException - If the given DN is not validpublic final org.apache.directory.shared.ldap.schema.SchemaManager getSchemaManager()
getSchemaManager in interface SchemaServicepublic SchemaPartition getSchemaPartition()
getSchemaPartition in interface SchemaServicepublic void setSchemaPartition(SchemaPartition schemaPartition)
setSchemaPartition in interface SchemaServicepublic org.apache.directory.shared.ldap.entry.ServerEntry getSubschemaEntryImmutable()
throws Exception
getSubschemaEntryImmutable in interface SchemaServiceException - if there is a failure to access schema timestampspublic void initialize()
throws Exception
initialize in interface SchemaServiceException - If the initializaion failspublic org.apache.directory.shared.ldap.entry.ServerEntry getSubschemaEntryCloned()
throws Exception
SchemaServicegetSubschemaEntryCloned in interface SchemaServiceException - if there is a failure to access schema timestampspublic org.apache.directory.shared.ldap.entry.ServerEntry getSubschemaEntry(String[] ids) throws Exception
getSubschemaEntry in interface SchemaServiceids - the ids of the attributes that should be returned from a searchException - if there are failures during schema info accessCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.