public class ApplicationAdminResource extends Object
Constructor and Description |
---|
ApplicationAdminResource(ApplicationAdminController controller) |
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
|
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)
Returns a paged list of all applications
|
javax.ws.rs.core.Response |
reorderApplicationDirectoryMapping(long applicationId,
long directoryId,
ReorderEntity reorderEntity)
Changes the position of the specified application-directory mapping
|
ApplicationEntity |
updateApplication(long applicationId,
ApplicationEntity applicationEntity)
Updates the specified application
|
DirectoryMappingEntity |
updateApplicationDirectoryMapping(long applicationId,
long directoryId,
DirectoryMappingEntity directoryMappingEntity)
Updates the specified directory mapping.
|
public ApplicationAdminResource(ApplicationAdminController controller)
@ExperimentalApi public RestPage<ApplicationEntity> getApplications(@Context RestPageRequest pageRequest)
@ExperimentalApi public ApplicationEntity getApplication(long applicationId) throws ApplicationNotFoundException
applicationId
- The application's identifierApplicationNotFoundException
@ExperimentalApi public ApplicationEntity updateApplication(long applicationId, ApplicationEntity applicationEntity) throws ApplicationNotFoundException, ApplicationManagerException
applicationId
- The application's identifierapplicationEntity
- The application's configurationApplicationNotFoundException
ApplicationManagerException
@ExperimentalApi public RestPage<DirectoryMappingEntity> getApplicationDirectoryMappings(long applicationId, @Context RestPageRequest pageRequest) throws ApplicationNotFoundException
applicationId
- The application's identifierApplicationNotFoundException
@ExperimentalApi public DirectoryMappingEntity getApplicationDirectoryMapping(long applicationId, long directoryId) throws DirectoryMappingNotFoundException, ApplicationNotFoundException
applicationId
- The application's identifierdirectoryId
- The directory's identifierDirectoryMappingNotFoundException
ApplicationNotFoundException
@ExperimentalApi public javax.ws.rs.core.Response addApplicationDirectoryMapping(long applicationId, DirectoryMappingEntity directoryMappingEntity) throws DirectoryMappingNotFoundException, DirectoryNotFoundException, ApplicationNotFoundException, OperationFailedException
applicationId
- the id of the applicationDirectoryMappingNotFoundException
DirectoryNotFoundException
ApplicationNotFoundException
OperationFailedException
@ExperimentalApi public DirectoryMappingEntity updateApplicationDirectoryMapping(long applicationId, long directoryId, DirectoryMappingEntity directoryMappingEntity) throws ApplicationNotFoundException, DirectoryMappingNotFoundException, DirectoryNotFoundException, OperationFailedException, DirectoryMappingConstraintException
applicationId
- the id of the applicationdirectoryId
- the id of the directoryApplicationNotFoundException
DirectoryMappingNotFoundException
DirectoryNotFoundException
OperationFailedException
DirectoryMappingConstraintException
@ExperimentalApi public javax.ws.rs.core.Response deleteApplicationDirectoryMapping(long applicationId, 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 forApplicationNotFoundException
DirectoryMappingNotFoundException
ApplicationManagerException
DirectoryMappingConstraintException
@ExperimentalApi public javax.ws.rs.core.Response reorderApplicationDirectoryMapping(long applicationId, long directoryId, ReorderEntity reorderEntity) throws ApplicationNotFoundException, DirectoryMappingNotFoundException, DirectoryNotFoundException
applicationId
- The application's identifierdirectoryId
- The directory's identifierApplicationNotFoundException
DirectoryMappingNotFoundException
DirectoryNotFoundException
Copyright © 2020 Atlassian. All rights reserved.