com.atlassian.confluence.it.usermanagement
Interface DirectoryConfiguration

All Known Implementing Classes:
ActiveDirectoryDirectoryConfiguration, CrowdDirectoryConfiguration, DefaultDirectoryConfiguration, LdapReadOnlyDirectoryConfiguration, LdapReadOnlyLocalGroupsDirectoryConfiguration, LdapReadWriteDirectoryConfiguration, OnDemandCrowdDirectoryConfiguration

public interface DirectoryConfiguration


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.
 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.
 

Method Detail

getHelper

UserManagementHelper getHelper(ConfluenceRpc rpc)

getDirectoryName

String getDirectoryName()
Returns the name of the directory as it appears to users, e.g. in the view user screen.


isCorrectlyConfigured

boolean isCorrectlyConfigured(net.sourceforge.jwebunit.junit.WebTester tester)
Returns true if the active configuration matches this configuration. Requires a WebTester already logged in as an administrator.


configure

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


can

boolean can(DirectoryConfigurationCapability capability)
Returns true if this configuration supports the required capability during acceptance tests, otherwise false.


isValidUser

boolean isValidUser(User user)
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.


isValidGroup

boolean isValidGroup(Group group)
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.



Copyright © 2003–2015 Atlassian. All rights reserved.