org.apache.ldap.server.configuration
Class ContextPartitionConfiguration

java.lang.Object
  extended byorg.apache.ldap.server.configuration.ContextPartitionConfiguration
Direct Known Subclasses:
MutableContextPartitionConfiguration

public class ContextPartitionConfiguration
extends java.lang.Object

A configuration for ContextPartition.

Version:
$Rev: 264732 $, $Date: 2005-08-30 04:04:51 -0400 (Tue, 30 Aug 2005) $
Author:
Apache Directory Project

Field Summary
static java.lang.String SYSTEM_PARTITION_NAME
          The name of reserved system partition
 
Constructor Summary
protected ContextPartitionConfiguration()
          Creates a new instance.
 
Method Summary
 javax.naming.directory.Attributes getContextEntry()
          Returns root entry that will be added to the ContextPartition after it is initialized.
 ContextPartition getContextPartition()
          Returns the ContextPartition that this configuration configures.
 java.util.Set getIndexedAttributes()
          Returns the set of attribute type strings to create an index on.
 java.lang.String getName()
          Returns user-defined name of the ContextPartition that this configuration configures.
 javax.naming.Name getNormalizedSuffix(MatchingRuleRegistry matchingRuleRegistry)
          Returns the normalized suffix of the ContextPartition.
 javax.naming.Name getNormalizedSuffix(org.apache.ldap.common.schema.Normalizer normalizer)
          Returns the normalized suffix of the ContextPartition.
 java.lang.String getSuffix()
          Returns the suffix of the ContextPartition.
protected  void setContextEntry(javax.naming.directory.Attributes rootEntry)
          Sets root entry that will be added to the ContextPartition after it is initialized.
protected  void setContextPartition(ContextPartition partition)
          Sets the ContextPartition that this configuration configures.
protected  void setIndexedAttributes(java.util.Set indexedAttributes)
          Sets the set of attribute type strings to create an index on.
protected  void setName(java.lang.String name)
          Sets user-defined name of the ContextPartition that this configuration configures.
protected  void setSuffix(java.lang.String suffix)
          Sets the suffix of the ContextPartition.
 void validate()
          Validates this configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM_PARTITION_NAME

public static final java.lang.String SYSTEM_PARTITION_NAME
The name of reserved system partition

See Also:
Constant Field Values
Constructor Detail

ContextPartitionConfiguration

protected ContextPartitionConfiguration()
Creates a new instance.

Method Detail

getName

public java.lang.String getName()
Returns user-defined name of the ContextPartition that this configuration configures.


setName

protected void setName(java.lang.String name)
Sets user-defined name of the ContextPartition that this configuration configures.


getIndexedAttributes

public java.util.Set getIndexedAttributes()
Returns the set of attribute type strings to create an index on.


setIndexedAttributes

protected void setIndexedAttributes(java.util.Set indexedAttributes)
Sets the set of attribute type strings to create an index on.


getContextPartition

public ContextPartition getContextPartition()
Returns the ContextPartition that this configuration configures.


setContextPartition

protected void setContextPartition(ContextPartition partition)
Sets the ContextPartition that this configuration configures.


getContextEntry

public javax.naming.directory.Attributes getContextEntry()
Returns root entry that will be added to the ContextPartition after it is initialized.


setContextEntry

protected void setContextEntry(javax.naming.directory.Attributes rootEntry)
Sets root entry that will be added to the ContextPartition after it is initialized.


getSuffix

public java.lang.String getSuffix()
Returns the suffix of the ContextPartition.


getNormalizedSuffix

public javax.naming.Name getNormalizedSuffix(MatchingRuleRegistry matchingRuleRegistry)
                                      throws javax.naming.NamingException
Returns the normalized suffix of the ContextPartition.

Throws:
javax.naming.NamingException

getNormalizedSuffix

public javax.naming.Name getNormalizedSuffix(org.apache.ldap.common.schema.Normalizer normalizer)
                                      throws javax.naming.NamingException
Returns the normalized suffix of the ContextPartition.

Throws:
javax.naming.NamingException

setSuffix

protected void setSuffix(java.lang.String suffix)
Sets the suffix of the ContextPartition.


validate

public void validate()
Validates this configuration.

Throws:
ConfigurationException - if this configuration is not valid