Class EmbeddedApacheDS
java.lang.Object
com.atlassian.confluence.test.apacheds.EmbeddedApacheDS
- All Implemented Interfaces:
ApacheDS,org.springframework.context.Lifecycle
public final class EmbeddedApacheDS
extends Object
implements ApacheDS, org.springframework.context.Lifecycle
An implementation of
ApacheDS which manages a locally embedded LdapServer.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePartition(String ldif) booleanvoidvoidstart()start(int port) voidstop()
-
Constructor Details
-
EmbeddedApacheDS
public EmbeddedApacheDS()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
start
- Throws:
Exception
-
createPartition
- Specified by:
createPartitionin interfaceApacheDS- Throws:
Exception
-
removePartition
public void removePartition() throws org.apache.directory.api.ldap.model.exception.LdapException- Specified by:
removePartitionin interfaceApacheDS- Throws:
org.apache.directory.api.ldap.model.exception.LdapException
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
getLdapUriForTests
- Specified by:
getLdapUriForTestsin interfaceApacheDS
-
getLdapUriForConfluence
- Specified by:
getLdapUriForConfluencein interfaceApacheDS
-