@Internal public class ApplicationAdminResource extends Object
Constructor and Description |
---|
ApplicationAdminResource(ApplicationAdminController controller) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addApplicationDirectoryMapping(long appId,
DirectoryMappingEntity directoryMappingEntity)
Adds a directory mapping to the specified application.
|
javax.ws.rs.core.Response |
deleteApplicationDirectoryMapping(long appId,
long dirId)
Removes a directory mapping from an application.
|
ApplicationEntity |
getApplication(long appId) |
DirectoryMappingEntity |
getApplicationDirectoryMapping(long appId,
long dirId) |
RestPage<DirectoryMappingEntity> |
getApplicationDirectoryMappings(long appId,
RestPageRequest pageRequest) |
RestPage<ApplicationEntity> |
getApplications(RestPageRequest pageRequest) |
javax.ws.rs.core.Response |
reorderApplicationDirectoryMapping(long appId,
long dirId,
ReorderEntity reorderEntity) |
ApplicationEntity |
updateApplication(long appId,
ApplicationEntity entity) |
DirectoryMappingEntity |
updateApplicationDirectoryMapping(long appId,
long dirId,
DirectoryMappingEntity directoryMappingEntity)
Updates the specified directory mapping.
|
public ApplicationAdminResource(ApplicationAdminController controller)
public RestPage<ApplicationEntity> getApplications(@Context RestPageRequest pageRequest)
public ApplicationEntity getApplication(long appId) throws ApplicationNotFoundException
ApplicationNotFoundException
public ApplicationEntity updateApplication(long appId, ApplicationEntity entity) throws ApplicationNotFoundException, ApplicationManagerException
public RestPage<DirectoryMappingEntity> getApplicationDirectoryMappings(long appId, @Context RestPageRequest pageRequest) throws ApplicationNotFoundException
ApplicationNotFoundException
public DirectoryMappingEntity getApplicationDirectoryMapping(long appId, long dirId) throws DirectoryMappingNotFoundException, ApplicationNotFoundException
public javax.ws.rs.core.Response addApplicationDirectoryMapping(long appId, DirectoryMappingEntity directoryMappingEntity) throws DirectoryMappingNotFoundException, DirectoryNotFoundException, ApplicationNotFoundException, OperationFailedException
appId
- the id of the applicationDirectoryMappingNotFoundException
DirectoryNotFoundException
ApplicationNotFoundException
OperationFailedException
public DirectoryMappingEntity updateApplicationDirectoryMapping(long appId, long dirId, DirectoryMappingEntity directoryMappingEntity) throws ApplicationNotFoundException, DirectoryMappingNotFoundException, DirectoryNotFoundException, OperationFailedException, DirectoryMappingConstraintException
appId
- the id of the applicationdirId
- the id of the directoryApplicationNotFoundException
DirectoryMappingNotFoundException
DirectoryNotFoundException
OperationFailedException
DirectoryMappingConstraintException
public javax.ws.rs.core.Response deleteApplicationDirectoryMapping(long appId, long dirId) throws ApplicationNotFoundException, DirectoryMappingNotFoundException, ApplicationManagerException, DirectoryMappingConstraintException
appId
- the id of the application to remove the mapping fordirId
- the id of the directory to remove the mapping forApplicationNotFoundException
DirectoryMappingNotFoundException
ApplicationManagerException
DirectoryMappingConstraintException
public javax.ws.rs.core.Response reorderApplicationDirectoryMapping(long appId, long dirId, ReorderEntity reorderEntity) throws ApplicationNotFoundException, DirectoryMappingNotFoundException, DirectoryNotFoundException
Copyright © 2017 Atlassian. All rights reserved.