com.atlassian.confluence.it.usermanagement
Class LdapService

java.lang.Object
  extended by com.atlassian.confluence.it.usermanagement.LdapService

public class LdapService
extends Object

Starts an LDAP server on the first available port within the range.


Nested Class Summary
static class LdapService.LdapServerBindException
           
 
Method Summary
 void createPartition()
           
 void createPartition(String ldif)
           
static String getDefaultLdif()
           
static LdapService getInstance()
           
 int getPort()
           
 LdapUserManagementHelper getUserManagementHelper(ConfluenceRpc rpc)
           
 void removePartition()
           
 void start()
          Tries to start an LDAP server on any free port in the port range between PORT_RANGE_START and PORT_RANGE_END.
 void stop()
          Stops the LDAP server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LdapService getInstance()

start

public void start()
           throws LdapService.LdapServerBindException
Tries to start an LDAP server on any free port in the port range between PORT_RANGE_START and PORT_RANGE_END.

Throws:
LdapService.LdapServerBindException - if there is no free port available in the given range

createPartition

public void createPartition()
                     throws Exception
Throws:
Exception

createPartition

public void createPartition(String ldif)
                     throws Exception
Throws:
Exception

getDefaultLdif

public static String getDefaultLdif()

removePartition

public void removePartition()
                     throws Exception
Throws:
Exception

stop

public void stop()
Stops the LDAP server.


getUserManagementHelper

public LdapUserManagementHelper getUserManagementHelper(ConfluenceRpc rpc)

getPort

public int getPort()


Copyright © 2003-2012 Atlassian. All Rights Reserved.