org.apache.directory.server.core.schema
Interface SchemaService

All Known Implementing Classes:
DefaultSchemaService

public interface SchemaService


Method Summary
 org.apache.directory.shared.ldap.schema.SchemaManager getSchemaManager()
           
 SchemaPartition getSchemaPartition()
           
 org.apache.directory.shared.ldap.entry.ServerEntry getSubschemaEntry(java.lang.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(java.lang.String dnString)
          Tells if the given DN is the schemaSubentry DN
 void setSchemaPartition(SchemaPartition schemaPartition)
           
 

Method Detail

isSchemaSubentry

boolean isSchemaSubentry(java.lang.String dnString)
                         throws org.apache.directory.shared.ldap.exception.LdapException
Tells if the given DN is the schemaSubentry DN

Parameters:
dnString - The DN we want to check
Returns:
true if the given DN is the Schema subentry DN
Throws:
org.apache.directory.shared.ldap.exception.LdapException - If the given DN is not valid

getSchemaManager

org.apache.directory.shared.ldap.schema.SchemaManager getSchemaManager()
Returns:
the schemaManager loaded from schemaPartition

getSchemaPartition

SchemaPartition getSchemaPartition()

setSchemaPartition

void setSchemaPartition(SchemaPartition schemaPartition)

initialize

void initialize()
                throws java.lang.Exception
Initializes the SchemaService

Throws:
java.lang.Exception - If the initializaion fails

getSubschemaEntryImmutable

org.apache.directory.shared.ldap.entry.ServerEntry getSubschemaEntryImmutable()
                                                                              throws java.lang.Exception
A seriously unsafe (unsynchronized) means to access the schemaSubentry.

Returns:
the schemaSubentry
Throws:
java.lang.Exception - if there is a failure to access schema timestamps

getSubschemaEntryCloned

org.apache.directory.shared.ldap.entry.ServerEntry getSubschemaEntryCloned()
                                                                           throws java.lang.Exception
A seriously unsafe (unsynchronized) means to access the schemaSubentry.

Returns:
the schemaSubentry
Throws:
java.lang.Exception - if there is a failure to access schema timestamps

getSubschemaEntry

org.apache.directory.shared.ldap.entry.ServerEntry getSubschemaEntry(java.lang.String[] ids)
                                                                     throws java.lang.Exception
Gets the schemaSubentry based on specific search id parameters which include the special '*' and '+' operators.

Parameters:
ids - the ids of the attributes that should be returned from a search
Returns:
the subschema entry with the ids provided
Throws:
java.lang.Exception - if there are failures during schema info access


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.