@Named @Path(value="/directory") @Produces(value="application/json") @Consumes(value="application/json") public class TestkitDirectoryResource extends Object
Constructor and Description |
---|
TestkitDirectoryResource(DirectoryManager directoryManager,
SynchronisationStatusManager synchronisationStatusManager,
EncryptionSettings encryptionSettings) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createDirectory(DirectoryImpl directory) |
javax.ws.rs.core.Response |
deleteDirectory(long directoryId) |
javax.ws.rs.core.Response |
getAttributes(long directoryId) |
javax.ws.rs.core.Response |
getDirectory(long directoryId) |
javax.ws.rs.core.Response |
getDirectorySynchronisationStatus(long directoryId) |
javax.ws.rs.core.Response |
listDirectories() |
Map<String,String> |
markSynchronizationFinished(long directoryId,
String syncToken) |
javax.ws.rs.core.Response |
setPollDelay(String value) |
javax.ws.rs.core.Response |
syncDirectory(long directoryId,
SynchronisationMode mode) |
javax.ws.rs.core.Response |
updateDirectory(long directoryId,
DirectoryImpl directory) |
javax.ws.rs.core.Response |
updateDirectoryAttributes(long directoryId,
Map<String,String> attributes) |
javax.ws.rs.core.Response |
updateDirectoryPermissions(long directoryId,
Set<OperationType> operationTypes) |
@Inject public TestkitDirectoryResource(DirectoryManager directoryManager, SynchronisationStatusManager synchronisationStatusManager, EncryptionSettings encryptionSettings)
@GET public javax.ws.rs.core.Response listDirectories() throws IOException
IOException
@GET @Path(value="/{id}") public javax.ws.rs.core.Response getDirectory(@PathParam(value="id") long directoryId) throws DirectoryCurrentlySynchronisingException, DirectoryNotFoundException, IOException
@DELETE @Path(value="/{id}") public javax.ws.rs.core.Response deleteDirectory(@PathParam(value="id") long directoryId) throws DirectoryCurrentlySynchronisingException, DirectoryNotFoundException
@PUT @Path(value="/{id}") public javax.ws.rs.core.Response updateDirectory(@PathParam(value="id") long directoryId, DirectoryImpl directory) throws DirectoryNotFoundException
DirectoryNotFoundException
@PUT @Path(value="/{id}/attributes") public javax.ws.rs.core.Response updateDirectoryAttributes(@PathParam(value="id") long directoryId, Map<String,String> attributes) throws DirectoryNotFoundException
DirectoryNotFoundException
@PUT @Path(value="/{id}/permissions") public javax.ws.rs.core.Response updateDirectoryPermissions(@PathParam(value="id") long directoryId, Set<OperationType> operationTypes) throws DirectoryNotFoundException
DirectoryNotFoundException
@POST public javax.ws.rs.core.Response createDirectory(DirectoryImpl directory) throws IOException, DirectoryInstantiationException
@Path(value="/{id}/sync") @POST public javax.ws.rs.core.Response syncDirectory(@PathParam(value="id") long directoryId, @QueryParam(value="mode") @DefaultValue(value="INCREMENTAL") SynchronisationMode mode) throws OperationFailedException, DirectoryNotFoundException
@Path(value="/{id}/sync") @GET public javax.ws.rs.core.Response getDirectorySynchronisationStatus(@PathParam(value="id") long directoryId) throws DirectoryInstantiationException, DirectoryNotFoundException, IOException
@Path(value="/{id}/sync/token") @PUT public Map<String,String> markSynchronizationFinished(@PathParam(value="id") long directoryId, @QueryParam(value="token") String syncToken) throws DirectoryNotFoundException, IOException, DirectoryInstantiationException
@Path(value="/polldelay/{value}") @POST public javax.ws.rs.core.Response setPollDelay(@PathParam(value="value") String value)
@Path(value="{id}/attributes") @GET public javax.ws.rs.core.Response getAttributes(@PathParam(value="id") long directoryId) throws DirectoryNotFoundException
DirectoryNotFoundException
Copyright © 2021 Atlassian. All rights reserved.