public class

DefaultApacheDs

extends Object
implements ApacheDs
java.lang.Object
   ↳ org.apache.archiva.redback.components.apacheds.DefaultApacheDs

Summary

Public Constructors
DefaultApacheDs()
Public Methods
void addPartition(Partition partition)
void addPartition(String name, String root, Set indexedAttributes, Attributes partitionAttributes)
Partition addSimplePartition(String name, String[] domainComponents)
Creates a partition usable for testing and other light usage.
InitialDirContext getAdminContext()
String getPassword()
int getPort()
InitialDirContext getSystemContext()
boolean isStopped()
void setBasedir(File basedir)
void setEnableNetworking(boolean enableNetworking)
void setPassword(String password)
void setPort(int port)
void startServer()
void stop()
void stopServer()
void sync()
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.archiva.redback.components.apacheds.ApacheDs

Public Constructors

public DefaultApacheDs ()

Public Methods

public void addPartition (Partition partition)

Throws
NamingException

public void addPartition (String name, String root, Set indexedAttributes, Attributes partitionAttributes)

Throws
NamingException

public Partition addSimplePartition (String name, String[] domainComponents)

Creates a partition usable for testing and other light usage.

Parameters
name The name of the partition. Will be used as the directory name when persisted.
domainComponents E.g. "plexus", "codehaus", "org"
Throws
NamingException

public InitialDirContext getAdminContext ()

Throws
NamingException

public String getPassword ()

public int getPort ()

public InitialDirContext getSystemContext ()

Throws
NamingException

public boolean isStopped ()

public void setBasedir (File basedir)

public void setEnableNetworking (boolean enableNetworking)

public void setPassword (String password)

public void setPort (int port)

public void startServer ()

Throws
Exception

public void stop ()

public void stopServer ()

Throws
Exception

public void sync ()

Throws
Exception