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 TypeMethodDescriptionvoid
createPartition
(String ldif) boolean
void
void
start()
start
(int port) void
stop()
-
Constructor Details
-
EmbeddedApacheDS
public EmbeddedApacheDS()
-
-
Method Details
-
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
start
- Throws:
Exception
-
createPartition
- Specified by:
createPartition
in interfaceApacheDS
- Throws:
Exception
-
removePartition
public void removePartition() throws org.apache.directory.api.ldap.model.exception.LdapException- Specified by:
removePartition
in interfaceApacheDS
- Throws:
org.apache.directory.api.ldap.model.exception.LdapException
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-
getLdapUriForTests
- Specified by:
getLdapUriForTests
in interfaceApacheDS
-
getLdapUriForConfluence
- Specified by:
getLdapUriForConfluence
in interfaceApacheDS
-