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,
String name,
Boolean isActive)
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, String name, Boolean isActive)
pageRequest - starting index and maximum number of results returned from the namename - name criteriaisActive - criteria for status of an application@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 configurationApplicationNotFoundExceptionApplicationManagerException@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 identifierDirectoryMappingNotFoundExceptionApplicationNotFoundException@ExperimentalApi
public javax.ws.rs.core.Response addApplicationDirectoryMapping(long applicationId,
DirectoryMappingEntity directoryMappingEntity)
throws DirectoryMappingNotFoundException,
DirectoryNotFoundException,
ApplicationNotFoundException,
OperationFailedException
applicationId - the id of the applicationDirectoryMappingNotFoundExceptionDirectoryNotFoundExceptionApplicationNotFoundExceptionOperationFailedException@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 directoryApplicationNotFoundExceptionDirectoryMappingNotFoundExceptionDirectoryNotFoundExceptionOperationFailedExceptionDirectoryMappingConstraintException@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 forApplicationNotFoundExceptionDirectoryMappingNotFoundExceptionApplicationManagerExceptionDirectoryMappingConstraintException@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 identifierApplicationNotFoundExceptionDirectoryMappingNotFoundExceptionDirectoryNotFoundExceptionCopyright © 2020 Atlassian. All rights reserved.