public class DirectoryResource extends Object
Constructor and Description |
---|
DirectoryResource(DirectoryController directoryController) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
testAzureAdConnection(AzureAdConnectionTestEntity connectionTestData)
Tests connection to the specified Azure Active Directory.
|
javax.ws.rs.core.Response |
testAzureAdConnection(Long id,
AzureAdConnectionTestEntity connectionTestData)
Tests connection to the specified Azure Active Directory.
|
javax.ws.rs.core.Response |
testCrowdConnection(CrowdConnectionTestEntity connectionTestData)
Tests connection to the specified Remote Crowd directory
|
javax.ws.rs.core.Response |
testCrowdConnection(Long id,
CrowdConnectionTestEntity connectionTestData)
Tests connection to the specified Remote Crowd directory.
|
javax.ws.rs.core.Response |
testLdapConnection(LdapConnectionTestEntity connectionTestData)
Tests connection to the specified LDAP server.
|
javax.ws.rs.core.Response |
testLdapConnection(Long id,
LdapConnectionTestEntity connectionTestData)
Tests connection to the specified LDAP server.
|
javax.ws.rs.core.Response |
testSearch(LdapSearchTestEntity ldapConfiguration)
Tests search with the provided LDAP directory configuration
|
javax.ws.rs.core.Response |
testSearch(LdapSearchTestEntity ldapConfiguration,
Long id)
Tests search with the provided LDAP directory configuration.
|
public DirectoryResource(DirectoryController directoryController)
public javax.ws.rs.core.Response testLdapConnection(LdapConnectionTestEntity connectionTestData) throws OperationFailedException, DirectoryTestFailedException, ValidationFailedException
connectionTestData
- An entity with data required to connect to the serverOperationFailedException
DirectoryTestFailedException
ValidationFailedException
public javax.ws.rs.core.Response testLdapConnection(Long id, LdapConnectionTestEntity connectionTestData) throws DirectoryNotFoundException, OperationFailedException, DirectoryTestFailedException, ValidationFailedException
id
- the database id of the directory to testconnectionTestData
- An entity with data required to connect to the serverDirectoryNotFoundException
OperationFailedException
DirectoryTestFailedException
ValidationFailedException
public javax.ws.rs.core.Response testCrowdConnection(CrowdConnectionTestEntity connectionTestData) throws OperationFailedException, DirectoryTestFailedException, ValidationFailedException
connectionTestData
- An entity with data required to connect to the Remote Crowd directoryOperationFailedException
DirectoryTestFailedException
ValidationFailedException
public javax.ws.rs.core.Response testCrowdConnection(Long id, CrowdConnectionTestEntity connectionTestData) throws DirectoryNotFoundException, OperationFailedException, DirectoryTestFailedException, ValidationFailedException
id
- The ID of the Crowd server which will have its settings changedconnectionTestData
- An entity with data required to connect to the Remote Crowd directoryDirectoryNotFoundException
OperationFailedException
DirectoryTestFailedException
ValidationFailedException
public javax.ws.rs.core.Response testAzureAdConnection(AzureAdConnectionTestEntity connectionTestData) throws OperationFailedException, DirectoryTestFailedException, ValidationFailedException
connectionTestData
- An entity with data required to connect to the Azure Active DirectoryOperationFailedException
DirectoryTestFailedException
ValidationFailedException
public javax.ws.rs.core.Response testAzureAdConnection(Long id, AzureAdConnectionTestEntity connectionTestData) throws OperationFailedException, DirectoryTestFailedException, DirectoryNotFoundException, ValidationFailedException
id
- The database ID of the directory to testconnectionTestData
- An entity with data required to connect to the Azure Active DirectoryOperationFailedException
DirectoryTestFailedException
DirectoryNotFoundException
ValidationFailedException
public javax.ws.rs.core.Response testSearch(LdapSearchTestEntity ldapConfiguration) throws OperationFailedException, DirectoryTestFailedException, ValidationFailedException
ldapConfiguration
- An entity containing directory parametersOperationFailedException
DirectoryTestFailedException
ValidationFailedException
public javax.ws.rs.core.Response testSearch(LdapSearchTestEntity ldapConfiguration, Long id) throws OperationFailedException, DirectoryNotFoundException, DirectoryTestFailedException, ValidationFailedException
ldapConfiguration
- An entity containing directory parametersid
- ID of the directory for which the settings will be testedOperationFailedException
DirectoryNotFoundException
DirectoryTestFailedException
ValidationFailedException
Copyright © 2020 Atlassian. All rights reserved.