Class ApplicationAdminResource
java.lang.Object
com.atlassian.crowd.plugin.rest.service.resource.admin.ApplicationAdminResource
@Path("application")
@Consumes("application/json")
@Produces("application/json")
public class ApplicationAdminResource
extends Object
Represents a service for managing applications
-
Constructor Summary
ConstructorDescriptionApplicationAdminResource
(ApplicationAdminController appAdminController, EmailScanController emailScanController) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
addApplicationDirectoryMapping
(long applicationId, DirectoryMappingEntity directoryMappingEntity, javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Response
deleteApplicationDirectoryMapping
(long applicationId, long directoryId) getApplication
(long applicationId) getApplicationAccessBasedSynchronizationFilter
(long applicationId) getApplicationDirectoryMapping
(long applicationId, long directoryId) getApplicationDirectoryMappings
(long applicationId, RestPageRequest pageRequest) getApplications
(RestPageRequest pageRequest, String name, Boolean isActive) javax.ws.rs.core.Response
getLatestScanResult
(long applicationId) javax.ws.rs.core.Response
reorderApplicationDirectoryMapping
(long applicationId, long directoryId, ReorderEntity reorderEntity) javax.ws.rs.core.Response
triggerEmailScan
(long applicationId) updateApplication
(long applicationId, ApplicationEntity applicationEntity) javax.ws.rs.core.Response
updateApplicationAccessBasedSynchronizationFilter
(long applicationId, AccessBasedSynchronizationFilterTypeEntity filterEntity) updateApplicationDirectoryMapping
(long applicationId, long directoryId, DirectoryMappingEntity directoryMappingEntity)
-
Constructor Details
-
ApplicationAdminResource
@Inject public ApplicationAdminResource(ApplicationAdminController appAdminController, EmailScanController emailScanController)
-
-
Method Details
-
getApplications
@GET public RestPage<ApplicationEntity> getApplications(@BeanParam RestPageRequest pageRequest, @QueryParam("name") String name, @QueryParam("active") Boolean isActive) -
getApplication
@GET @Path("/{applicationId}") public ApplicationEntity getApplication(@PathParam("applicationId") long applicationId) throws ApplicationNotFoundException - Throws:
ApplicationNotFoundException
-
updateApplication
@PUT @Path("/{applicationId}") public ApplicationEntity updateApplication(@PathParam("applicationId") long applicationId, ApplicationEntity applicationEntity) throws ApplicationNotFoundException, ApplicationManagerException -
getApplicationDirectoryMappings
@GET @Path("/{applicationId}/directory-mapping") public RestPage<DirectoryMappingEntity> getApplicationDirectoryMappings(@PathParam("applicationId") long applicationId, @BeanParam RestPageRequest pageRequest) throws ApplicationNotFoundException - Throws:
ApplicationNotFoundException
-
getApplicationDirectoryMapping
@GET @Path("/{applicationId}/directory-mapping/{directoryId}") public DirectoryMappingEntity getApplicationDirectoryMapping(@PathParam("applicationId") long applicationId, @PathParam("directoryId") long directoryId) throws DirectoryMappingNotFoundException, ApplicationNotFoundException -
addApplicationDirectoryMapping
@POST @Path("/{applicationId}/directory-mapping") public javax.ws.rs.core.Response addApplicationDirectoryMapping(@PathParam("applicationId") long applicationId, DirectoryMappingEntity directoryMappingEntity, @Context javax.ws.rs.core.UriInfo uriInfo) throws DirectoryMappingNotFoundException, DirectoryNotFoundException, ApplicationNotFoundException, OperationFailedException -
updateApplicationDirectoryMapping
@PUT @Path("/{applicationId}/directory-mapping/{directoryId}") public DirectoryMappingEntity updateApplicationDirectoryMapping(@PathParam("applicationId") long applicationId, @PathParam("directoryId") long directoryId, DirectoryMappingEntity directoryMappingEntity) throws ApplicationNotFoundException, DirectoryMappingNotFoundException, DirectoryNotFoundException, OperationFailedException, DirectoryMappingConstraintException -
deleteApplicationDirectoryMapping
@DELETE @Path("/{applicationId}/directory-mapping/{directoryId}") public javax.ws.rs.core.Response deleteApplicationDirectoryMapping(@PathParam("applicationId") long applicationId, @PathParam("directoryId") long directoryId) throws ApplicationNotFoundException, DirectoryMappingNotFoundException, ApplicationManagerException, DirectoryMappingConstraintException -
reorderApplicationDirectoryMapping
@POST @Path("/{applicationId}/directory-mapping/{directoryId}/move") public javax.ws.rs.core.Response reorderApplicationDirectoryMapping(@PathParam("applicationId") long applicationId, @PathParam("directoryId") long directoryId, ReorderEntity reorderEntity) throws ApplicationNotFoundException, DirectoryMappingNotFoundException, DirectoryNotFoundException -
getApplicationAccessBasedSynchronizationFilter
@GET @Path("/{applicationId}/access-based-synchronization") public AccessBasedSynchronizationFilterTypeEntity getApplicationAccessBasedSynchronizationFilter(@PathParam("applicationId") long applicationId) throws ApplicationNotFoundException - Throws:
ApplicationNotFoundException
-
updateApplicationAccessBasedSynchronizationFilter
@PUT @Path("/{applicationId}/access-based-synchronization") public javax.ws.rs.core.Response updateApplicationAccessBasedSynchronizationFilter(@PathParam("applicationId") long applicationId, AccessBasedSynchronizationFilterTypeEntity filterEntity) throws ApplicationNotFoundException, ApplicationManagerException -
triggerEmailScan
@POST @Path("/{applicationId}/emailscan") public javax.ws.rs.core.Response triggerEmailScan(@PathParam("applicationId") long applicationId) -
getLatestScanResult
@GET @Path("/{applicationId}/emailscan") public javax.ws.rs.core.Response getLatestScanResult(@PathParam("applicationId") long applicationId)
-