@Path(value="directory") @Consumes(value="application/json") @Produces(value="application/json") public class DirectoryAdminResource extends Object
Constructor and Description |
---|
DirectoryAdminResource(DirectoryAdminController controller) |
Modifier and Type | Method and Description |
---|---|
RestPage<DetailedDirectoryData> |
getDetailedDirectories(RestPageRequest restPageRequest,
String search,
Boolean active)
Lists detailed directory data for all directories which match the search and active
criteria queried by the System Admin
|
DetailedDirectoryData |
getDetailedDirectory(Long directoryId)
Retrieves detailed directory data for directory specified by ID by system admin
|
RestPage<DirectoryData> |
getManagedDirectories(RestPageRequest restPageRequest)
Lists the directories managed by the logged in user
|
javax.ws.rs.core.Response |
scheduleSynchronization(Long directoryId)
Schedules a Synchronisation for the given directory specified
|
public DirectoryAdminResource(DirectoryAdminController controller)
@GET @Path(value="managed") @ExperimentalApi public RestPage<DirectoryData> getManagedDirectories(@Context RestPageRequest restPageRequest) throws OperationFailedException, FeatureInaccessibleException
restPageRequest
- paginated request parametersOperationFailedException
FeatureInaccessibleException
@GET @Path(value="detailed") @ExperimentalApi public RestPage<DetailedDirectoryData> getDetailedDirectories(@Context RestPageRequest restPageRequest, @QueryParam(value="search") String search, @QueryParam(value="active") Boolean active) throws OperationFailedException, FeatureInaccessibleException
restPageRequest
- paginated request parameterssearch
- search request queryactive
- request queryOperationFailedException
FeatureInaccessibleException
@GET @Path(value="detailed/{directoryId}") @ExperimentalApi public DetailedDirectoryData getDetailedDirectory(@PathParam(value="directoryId") Long directoryId) throws DirectoryNotFoundException, FeatureInaccessibleException, OperationFailedException
directoryId
- ID of DirectoryDirectoryNotFoundException
FeatureInaccessibleException
OperationFailedException
@POST @Path(value="detailed/{directoryId}/synchronize") @ExperimentalApi public javax.ws.rs.core.Response scheduleSynchronization(@PathParam(value="directoryId") Long directoryId) throws DirectoryNotFoundException, FeatureInaccessibleException, OperationFailedException
directoryId
- ID of DirectoryDirectoryNotFoundException
FeatureInaccessibleException
OperationFailedException
Copyright © 2021 Atlassian. All rights reserved.