Class TestkitDirectoryResource
java.lang.Object
com.atlassian.crowd.plugins.testkit.rest.TestkitDirectoryResource
@Component
@Path("/directory")
@Produces("application/json")
@Consumes("application/json")
public class TestkitDirectoryResource
extends Object
-
Constructor Summary
ConstructorsConstructorDescriptionTestkitDirectoryResource
(DirectoryManager directoryManager, SynchronisationStatusManager synchronisationStatusManager, EncryptionSettings encryptionSettings) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
createDirectory
(DirectoryImpl directory) jakarta.ws.rs.core.Response
deleteDirectory
(long directoryId) jakarta.ws.rs.core.Response
getAttributes
(long directoryId) jakarta.ws.rs.core.Response
getDirectory
(long directoryId) jakarta.ws.rs.core.Response
getDirectorySynchronisationStatus
(long directoryId) jakarta.ws.rs.core.Response
markSynchronizationFinished
(long directoryId, String syncToken) jakarta.ws.rs.core.Response
setPollDelay
(String value) jakarta.ws.rs.core.Response
syncDirectory
(long directoryId, SynchronisationMode mode) jakarta.ws.rs.core.Response
updateDirectory
(long directoryId, DirectoryImpl directory) jakarta.ws.rs.core.Response
updateDirectoryAttributes
(long directoryId, Map<String, String> attributes) jakarta.ws.rs.core.Response
updateDirectoryPermissions
(long directoryId, Set<OperationType> operationTypes)
-
Constructor Details
-
TestkitDirectoryResource
@Inject public TestkitDirectoryResource(DirectoryManager directoryManager, SynchronisationStatusManager synchronisationStatusManager, EncryptionSettings encryptionSettings)
-
-
Method Details
-
listDirectories
- Throws:
IOException
-
getDirectory
@GET @Path("/{id}") public jakarta.ws.rs.core.Response getDirectory(@PathParam("id") long directoryId) throws DirectoryCurrentlySynchronisingException, DirectoryNotFoundException, IOException -
deleteDirectory
@DELETE @Path("/{id}") public jakarta.ws.rs.core.Response deleteDirectory(@PathParam("id") long directoryId) throws DirectoryCurrentlySynchronisingException, DirectoryNotFoundException -
updateDirectory
@PUT @Path("/{id}") public jakarta.ws.rs.core.Response updateDirectory(@PathParam("id") long directoryId, DirectoryImpl directory) throws DirectoryNotFoundException - Throws:
DirectoryNotFoundException
-
updateDirectoryAttributes
@PUT @Path("/{id}/attributes") public jakarta.ws.rs.core.Response updateDirectoryAttributes(@PathParam("id") long directoryId, Map<String, String> attributes) throws DirectoryNotFoundException- Throws:
DirectoryNotFoundException
-
updateDirectoryPermissions
@PUT @Path("/{id}/permissions") public jakarta.ws.rs.core.Response updateDirectoryPermissions(@PathParam("id") long directoryId, Set<OperationType> operationTypes) throws DirectoryNotFoundException - Throws:
DirectoryNotFoundException
-
createDirectory
@POST public jakarta.ws.rs.core.Response createDirectory(DirectoryImpl directory) throws IOException, DirectoryInstantiationException -
syncDirectory
@Path("/{id}/sync") @POST public jakarta.ws.rs.core.Response syncDirectory(@PathParam("id") long directoryId, @QueryParam("mode") @DefaultValue("INCREMENTAL") SynchronisationMode mode) throws OperationFailedException, DirectoryNotFoundException -
getDirectorySynchronisationStatus
@Path("/{id}/sync") @GET public jakarta.ws.rs.core.Response getDirectorySynchronisationStatus(@PathParam("id") long directoryId) throws DirectoryInstantiationException, DirectoryNotFoundException, IOException -
markSynchronizationFinished
@Path("/{id}/sync/token") @PUT public Map<String,String> markSynchronizationFinished(@PathParam("id") long directoryId, @QueryParam("token") String syncToken) throws DirectoryNotFoundException, IOException, DirectoryInstantiationException -
setPollDelay
@Path("/polldelay/{value}") @POST public jakarta.ws.rs.core.Response setPollDelay(@PathParam("value") String value) -
getAttributes
@Path("{id}/attributes") @GET public jakarta.ws.rs.core.Response getAttributes(@PathParam("id") long directoryId) throws DirectoryNotFoundException - Throws:
DirectoryNotFoundException
-