@Path(value="application") @Consumes(value="application/json") @Produces(value="application/json") public class ApplicationAdminResource extends Object
| Constructor and Description |
|---|
ApplicationAdminResource(ApplicationAdminController appAdminController,
EmailScanController emailScanController) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addApplicationDirectoryMapping(long applicationId,
DirectoryMappingEntity directoryMappingEntity)
Adds a directory mapping to the specified application.
|
javax.ws.rs.core.Response |
deleteApplicationDirectoryMapping(long applicationId,
long directoryId)
Removes a directory mapping from an application.
|
ApplicationEntity |
getApplication(long applicationId)
Returns the application with the specified id
|
AccessBasedSynchronizationFilterTypeEntity |
getApplicationAccessBasedSynchronizationFilter(long applicationId)
Returns the Current Filter Type for Access Based Synchronization for the given Application
|
DirectoryMappingEntity |
getApplicationDirectoryMapping(long applicationId,
long directoryId)
Returns the specified application's mapping to the specified directory
|
RestPage<DirectoryMappingEntity> |
getApplicationDirectoryMappings(long applicationId,
RestPageRequest pageRequest)
The directory mappings of the specified application
|
RestPage<ApplicationEntity> |
getApplications(RestPageRequest pageRequest,
String name,
Boolean isActive)
Returns a paged list of all applications
|
javax.ws.rs.core.Response |
getLatestScanResult(long applicationId) |
javax.ws.rs.core.Response |
reorderApplicationDirectoryMapping(long applicationId,
long directoryId,
ReorderEntity reorderEntity)
Changes the position of the specified application-directory mapping
|
javax.ws.rs.core.Response |
triggerEmailScan(long applicationId) |
ApplicationEntity |
updateApplication(long applicationId,
ApplicationEntity applicationEntity)
Updates the specified application
|
javax.ws.rs.core.Response |
updateApplicationAccessBasedSynchronizationFilter(long applicationId,
AccessBasedSynchronizationFilterTypeEntity filterEntity)
Change the current Filter Type used for Access Based Synchronization for the given Application
|
DirectoryMappingEntity |
updateApplicationDirectoryMapping(long applicationId,
long directoryId,
DirectoryMappingEntity directoryMappingEntity)
Updates the specified directory mapping.
|
public ApplicationAdminResource(ApplicationAdminController appAdminController, EmailScanController emailScanController)
@GET @ExperimentalApi public RestPage<ApplicationEntity> getApplications(@Context RestPageRequest pageRequest, @QueryParam(value="name") String name, @QueryParam(value="active") Boolean isActive)
pageRequest - starting index and maximum number of results returned from the namename - name criteriaisActive - criteria for status of an application@GET
@Path(value="/{applicationId}")
@ExperimentalApi
public ApplicationEntity getApplication(@PathParam(value="applicationId")
long applicationId)
throws ApplicationNotFoundException
applicationId - The application's identifierApplicationNotFoundException@PUT
@Path(value="/{applicationId}")
@ExperimentalApi
public ApplicationEntity updateApplication(@PathParam(value="applicationId")
long applicationId,
ApplicationEntity applicationEntity)
throws ApplicationNotFoundException,
ApplicationManagerException
applicationId - The application's identifierapplicationEntity - The application's configurationApplicationNotFoundExceptionApplicationManagerException@GET
@Path(value="/{applicationId}/directory-mapping")
@ExperimentalApi
public RestPage<DirectoryMappingEntity> getApplicationDirectoryMappings(@PathParam(value="applicationId")
long applicationId,
@Context
RestPageRequest pageRequest)
throws ApplicationNotFoundException
applicationId - The application's identifierApplicationNotFoundException@GET
@Path(value="/{applicationId}/directory-mapping/{directoryId}")
@ExperimentalApi
public DirectoryMappingEntity getApplicationDirectoryMapping(@PathParam(value="applicationId")
long applicationId,
@PathParam(value="directoryId")
long directoryId)
throws DirectoryMappingNotFoundException,
ApplicationNotFoundException
applicationId - The application's identifierdirectoryId - The directory's identifierDirectoryMappingNotFoundExceptionApplicationNotFoundException@POST
@Path(value="/{applicationId}/directory-mapping")
@ExperimentalApi
public javax.ws.rs.core.Response addApplicationDirectoryMapping(@PathParam(value="applicationId")
long applicationId,
DirectoryMappingEntity directoryMappingEntity)
throws DirectoryMappingNotFoundException,
DirectoryNotFoundException,
ApplicationNotFoundException,
OperationFailedException
applicationId - the id of the applicationDirectoryMappingNotFoundExceptionDirectoryNotFoundExceptionApplicationNotFoundExceptionOperationFailedException@PUT
@Path(value="/{applicationId}/directory-mapping/{directoryId}")
@ExperimentalApi
public DirectoryMappingEntity updateApplicationDirectoryMapping(@PathParam(value="applicationId")
long applicationId,
@PathParam(value="directoryId")
long directoryId,
DirectoryMappingEntity directoryMappingEntity)
throws ApplicationNotFoundException,
DirectoryMappingNotFoundException,
DirectoryNotFoundException,
OperationFailedException,
DirectoryMappingConstraintException
applicationId - the id of the applicationdirectoryId - the id of the directoryApplicationNotFoundExceptionDirectoryMappingNotFoundExceptionDirectoryNotFoundExceptionOperationFailedExceptionDirectoryMappingConstraintException@DELETE
@Path(value="/{applicationId}/directory-mapping/{directoryId}")
@ExperimentalApi
public javax.ws.rs.core.Response deleteApplicationDirectoryMapping(@PathParam(value="applicationId")
long applicationId,
@PathParam(value="directoryId")
long directoryId)
throws ApplicationNotFoundException,
DirectoryMappingNotFoundException,
ApplicationManagerException,
DirectoryMappingConstraintException
applicationId - the id of the application to remove the mapping fordirectoryId - the id of the directory to remove the mapping forApplicationNotFoundExceptionDirectoryMappingNotFoundExceptionApplicationManagerExceptionDirectoryMappingConstraintException@POST
@Path(value="/{applicationId}/directory-mapping/{directoryId}/move")
@ExperimentalApi
public javax.ws.rs.core.Response reorderApplicationDirectoryMapping(@PathParam(value="applicationId")
long applicationId,
@PathParam(value="directoryId")
long directoryId,
ReorderEntity reorderEntity)
throws ApplicationNotFoundException,
DirectoryMappingNotFoundException,
DirectoryNotFoundException
applicationId - The application's identifierdirectoryId - The directory's identifierApplicationNotFoundExceptionDirectoryMappingNotFoundExceptionDirectoryNotFoundException@GET
@Path(value="/{applicationId}/access-based-synchronization")
@ExperimentalApi
public AccessBasedSynchronizationFilterTypeEntity getApplicationAccessBasedSynchronizationFilter(@PathParam(value="applicationId")
long applicationId)
throws ApplicationNotFoundException
applicationId - The application's identifierApplicationNotFoundException@PUT
@Path(value="/{applicationId}/access-based-synchronization")
@ExperimentalApi
public javax.ws.rs.core.Response updateApplicationAccessBasedSynchronizationFilter(@PathParam(value="applicationId")
long applicationId,
AccessBasedSynchronizationFilterTypeEntity filterEntity)
throws ApplicationNotFoundException,
ApplicationManagerException
applicationId - The application's identifierfilterEntity - The Filter Entity containing the new filter valueApplicationNotFoundExceptionApplicationManagerException@POST
@Path(value="/{applicationId}/emailscan")
public javax.ws.rs.core.Response triggerEmailScan(@PathParam(value="applicationId")
long applicationId)
@GET
@Path(value="/{applicationId}/emailscan")
public javax.ws.rs.core.Response getLatestScanResult(@PathParam(value="applicationId")
long applicationId)
Copyright © 2021 Atlassian. All rights reserved.