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.
  • Constructor Details

    • EmbeddedApacheDS

      public EmbeddedApacheDS()
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • start

      public EmbeddedApacheDS start(int port) throws Exception
      Throws:
      Exception
    • createPartition

      public void createPartition(String ldif) throws Exception
      Specified by:
      createPartition in interface ApacheDS
      Throws:
      Exception
    • removePartition

      public void removePartition() throws org.apache.directory.api.ldap.model.exception.LdapException
      Specified by:
      removePartition in interface ApacheDS
      Throws:
      org.apache.directory.api.ldap.model.exception.LdapException
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle
    • getLdapUriForTests

      public URI getLdapUriForTests()
      Specified by:
      getLdapUriForTests in interface ApacheDS
    • getLdapUriForConfluence

      public URI getLdapUriForConfluence()
      Specified by:
      getLdapUriForConfluence in interface ApacheDS