com.atlassian.confluence.it.usermanagement
Class CrowdDirectoryConfiguration

java.lang.Object
  extended by com.atlassian.confluence.it.usermanagement.CrowdDirectoryConfiguration
All Implemented Interfaces:
DirectoryConfiguration

public class CrowdDirectoryConfiguration
extends Object
implements DirectoryConfiguration

A directory configuration useful for remote crowd directories.


Constructor Summary
CrowdDirectoryConfiguration()
           
 
Method Summary
 boolean can(DirectoryConfigurationCapability capability)
          Returns true if this configuration supports the required capability during acceptance tests, otherwise false.
 void configure(net.sourceforge.jwebunit.junit.WebTester tester, ConfluenceRpc rpc)
          Changes the active configuration to match this configuration.
 Map<String,String> getCrowdProperties()
           
 String getDirectoryName()
          Returns the name of the directory as it appears to users, e.g.
 UserManagementHelper getHelper(ConfluenceRpc rpc)
           
 boolean isCorrectlyConfigured(net.sourceforge.jwebunit.junit.WebTester tester)
          Returns true if the active configuration matches this configuration.
 boolean isValidGroup(Group group)
          Returns true if the provided group details are valid for creation on this configuration.
 boolean isValidUser(User user)
          Returns true if the provided user details are valid for creation on this configuration.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CrowdDirectoryConfiguration

public CrowdDirectoryConfiguration()
Method Detail

getHelper

public UserManagementHelper getHelper(ConfluenceRpc rpc)
Specified by:
getHelper in interface DirectoryConfiguration

getDirectoryName

public String getDirectoryName()
Description copied from interface: DirectoryConfiguration
Returns the name of the directory as it appears to users, e.g. in the view user screen.

Specified by:
getDirectoryName in interface DirectoryConfiguration

isCorrectlyConfigured

public boolean isCorrectlyConfigured(net.sourceforge.jwebunit.junit.WebTester tester)
Description copied from interface: DirectoryConfiguration
Returns true if the active configuration matches this configuration. Requires a WebTester already logged in as an administrator.

Specified by:
isCorrectlyConfigured in interface DirectoryConfiguration

configure

public void configure(net.sourceforge.jwebunit.junit.WebTester tester,
                      ConfluenceRpc rpc)
Description copied from interface: DirectoryConfiguration
Changes the active configuration to match this configuration. Requires a WebTester and ConfluenceRpc already logged in as an administrator.

Specified by:
configure in interface DirectoryConfiguration

getCrowdProperties

public Map<String,String> getCrowdProperties()

can

public boolean can(DirectoryConfigurationCapability capability)
Description copied from interface: DirectoryConfiguration
Returns true if this configuration supports the required capability during acceptance tests, otherwise false.

Specified by:
can in interface DirectoryConfiguration

isValidUser

public boolean isValidUser(User user)
Description copied from interface: DirectoryConfiguration
Returns true if the provided user details are valid for creation on this configuration. Some LDAP servers have limitations on characters which can be used in usernames and/or display names.

Specified by:
isValidUser in interface DirectoryConfiguration

isValidGroup

public boolean isValidGroup(Group group)
Description copied from interface: DirectoryConfiguration
Returns true if the provided group details are valid for creation on this configuration. Some LDAP servers have limitations on characters which can be used in group names.

Specified by:
isValidGroup in interface DirectoryConfiguration

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.