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
SchemaService
isSchemaSubentry
in interface SchemaService
dnString
- 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 SchemaService
public SchemaPartition getSchemaPartition()
getSchemaPartition
in interface SchemaService
public void setSchemaPartition(SchemaPartition schemaPartition)
setSchemaPartition
in interface SchemaService
public org.apache.directory.shared.ldap.entry.ServerEntry getSubschemaEntryImmutable() throws Exception
getSubschemaEntryImmutable
in interface SchemaService
Exception
- if there is a failure to access schema timestampspublic void initialize() throws Exception
initialize
in interface SchemaService
Exception
- If the initializaion failspublic org.apache.directory.shared.ldap.entry.ServerEntry getSubschemaEntryCloned() throws Exception
SchemaService
getSubschemaEntryCloned
in interface SchemaService
Exception
- if there is a failure to access schema timestampspublic org.apache.directory.shared.ldap.entry.ServerEntry getSubschemaEntry(String[] ids) throws Exception
getSubschemaEntry
in interface SchemaService
ids
- the ids of the attributes that should be returned from a searchException
- if there are failures during schema info accessCopyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.