org.apache.ldap.server.configuration
Class StartupConfiguration

java.lang.Object
  extended byorg.apache.ldap.server.configuration.Configuration
      extended byorg.apache.ldap.server.configuration.StartupConfiguration
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
MutableStartupConfiguration, ServerStartupConfiguration

public class StartupConfiguration
extends Configuration

A Configuration that starts up ApacheDS.

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

Field Summary
 
Fields inherited from class org.apache.ldap.server.configuration.Configuration
DEFAULT_INSTANCE_ID, JNDI_KEY
 
Constructor Summary
StartupConfiguration()
          Creates a new instance with default settings.
StartupConfiguration(java.lang.String instanceId)
          Creates a new instance with default settings that operates on the ContextFactoryService with the specified ID.
 
Method Summary
 java.util.Set getAuthenticatorConfigurations()
          Returns AuthenticatorConfigurations to use for authenticating clients.
 java.util.Set getBootstrapSchemas()
          Returns BootstrapSchemas to load while bootstrapping.
 java.util.Set getContextPartitionConfigurations()
          Returns ContextPartitionConfigurations to configure context partitions.
 java.util.List getInterceptorConfigurations()
          Returns interceptor chain.
 java.util.List getTestEntries()
          Returns test directory entries(Attributes) to be loaded while bootstrapping.
 java.io.File getWorkingDirectory()
          Returns working directory (counterpart of var/lib).
 boolean isAllowAnonymousAccess()
          Returns true if anonymous access is allowed.
protected  void setAllowAnonymousAccess(boolean enableAnonymousAccess)
          Sets whether to allow anonymous access or not
protected  void setAuthenticatorConfigurations(java.util.Set authenticatorConfigurations)
          Sets AuthenticatorConfigurations to use for authenticating clients.
protected  void setBootstrapSchemas(java.util.Set bootstrapSchemas)
          Sets BootstrapSchemas to load while bootstrapping.
protected  void setContextPartitionConfigurations(java.util.Set contextParitionConfigurations)
          Sets ContextPartitionConfigurations to configure context partitions.
protected  void setInterceptorConfigurations(java.util.List interceptorConfigurations)
          Sets interceptor chain.
protected  void setTestEntries(java.util.List testEntries)
          Sets test directory entries(Attributes) to be loaded while bootstrapping.
protected  void setWorkingDirectory(java.io.File workingDirectory)
          Sets working directory (counterpart of var/lib).
 void validate()
          Validates this configuration.
 
Methods inherited from class org.apache.ldap.server.configuration.Configuration
clone, getInstanceId, setInstanceId, toConfiguration, toJndiEnvironment
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartupConfiguration

public StartupConfiguration()
Creates a new instance with default settings.


StartupConfiguration

public StartupConfiguration(java.lang.String instanceId)
Creates a new instance with default settings that operates on the ContextFactoryService with the specified ID.

Method Detail

getAuthenticatorConfigurations

public java.util.Set getAuthenticatorConfigurations()
Returns AuthenticatorConfigurations to use for authenticating clients.


setAuthenticatorConfigurations

protected void setAuthenticatorConfigurations(java.util.Set authenticatorConfigurations)
Sets AuthenticatorConfigurations to use for authenticating clients.


getBootstrapSchemas

public java.util.Set getBootstrapSchemas()
Returns BootstrapSchemas to load while bootstrapping.


setBootstrapSchemas

protected void setBootstrapSchemas(java.util.Set bootstrapSchemas)
Sets BootstrapSchemas to load while bootstrapping.


getContextPartitionConfigurations

public java.util.Set getContextPartitionConfigurations()
Returns ContextPartitionConfigurations to configure context partitions.


setContextPartitionConfigurations

protected void setContextPartitionConfigurations(java.util.Set contextParitionConfigurations)
Sets ContextPartitionConfigurations to configure context partitions.


isAllowAnonymousAccess

public boolean isAllowAnonymousAccess()
Returns true if anonymous access is allowed.


setAllowAnonymousAccess

protected void setAllowAnonymousAccess(boolean enableAnonymousAccess)
Sets whether to allow anonymous access or not


getInterceptorConfigurations

public java.util.List getInterceptorConfigurations()
Returns interceptor chain.


setInterceptorConfigurations

protected void setInterceptorConfigurations(java.util.List interceptorConfigurations)
Sets interceptor chain.


getTestEntries

public java.util.List getTestEntries()
Returns test directory entries(Attributes) to be loaded while bootstrapping.


setTestEntries

protected void setTestEntries(java.util.List testEntries)
Sets test directory entries(Attributes) to be loaded while bootstrapping.


getWorkingDirectory

public java.io.File getWorkingDirectory()
Returns working directory (counterpart of var/lib).


setWorkingDirectory

protected void setWorkingDirectory(java.io.File workingDirectory)
Sets working directory (counterpart of var/lib).


validate

public void validate()
Description copied from class: Configuration
Validates this configuration.

Overrides:
validate in class Configuration