@Path(value="directory") @Consumes(value="application/json") @Produces(value="application/json") 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)
@POST @Path(value="testldap") 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
@POST @Path(value="testldap/{id}") public javax.ws.rs.core.Response testLdapConnection(@PathParam(value="id") 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
@POST @Path(value="testcrowd") 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
@POST @Path(value="testcrowd/{id}") public javax.ws.rs.core.Response testCrowdConnection(@PathParam(value="id") 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
@POST @Path(value="testazuread") 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
@POST @Path(value="testazuread/{id}") public javax.ws.rs.core.Response testAzureAdConnection(@PathParam(value="id") 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
@POST @Path(value="testsearch") public javax.ws.rs.core.Response testSearch(LdapSearchTestEntity ldapConfiguration) throws OperationFailedException, DirectoryTestFailedException, ValidationFailedException
ldapConfiguration
- An entity containing directory parametersOperationFailedException
DirectoryTestFailedException
ValidationFailedException
@POST @Path(value="testsearch/{id}") public javax.ws.rs.core.Response testSearch(LdapSearchTestEntity ldapConfiguration, @PathParam(value="id") 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 © 2021 Atlassian. All rights reserved.