use of bio.terra.workspace.generated.model.ApiWorkspaceApplicationDescription in project terra-workspace-manager by DataBiosphere.
the class WorkspaceApplicationApiController method disableWorkspaceApplication.
@Override
public ResponseEntity<ApiWorkspaceApplicationDescription> disableWorkspaceApplication(@PathVariable("workspaceId") UUID workspaceId, @PathVariable("applicationId") UUID applicationId) {
AuthenticatedUserRequest userRequest = getAuthenticatedInfo();
WsmWorkspaceApplication wsmApp = appService.disableWorkspaceApplication(userRequest, workspaceId, applicationId);
ApiWorkspaceApplicationDescription response = makeApiWorkspaceApplication(wsmApp);
return new ResponseEntity<>(response, HttpStatus.OK);
}
use of bio.terra.workspace.generated.model.ApiWorkspaceApplicationDescription in project terra-workspace-manager by DataBiosphere.
the class WorkspaceApplicationApiController method enableWorkspaceApplication.
@Override
public ResponseEntity<ApiWorkspaceApplicationDescription> enableWorkspaceApplication(@PathVariable("workspaceId") UUID workspaceId, @PathVariable("applicationId") UUID applicationId) {
AuthenticatedUserRequest userRequest = getAuthenticatedInfo();
WsmWorkspaceApplication wsmApp = appService.enableWorkspaceApplication(userRequest, workspaceId, applicationId);
ApiWorkspaceApplicationDescription response = makeApiWorkspaceApplication(wsmApp);
return new ResponseEntity<>(response, HttpStatus.OK);
}
use of bio.terra.workspace.generated.model.ApiWorkspaceApplicationDescription in project terra-workspace-manager by DataBiosphere.
the class WorkspaceApplicationApiController method getWorkspaceApplication.
@Override
public ResponseEntity<ApiWorkspaceApplicationDescription> getWorkspaceApplication(@PathVariable("workspaceId") UUID workspaceId, @PathVariable("applicationId") UUID applicationId) {
AuthenticatedUserRequest userRequest = getAuthenticatedInfo();
WsmWorkspaceApplication wsmApp = appService.getWorkspaceApplication(userRequest, workspaceId, applicationId);
ApiWorkspaceApplicationDescription response = makeApiWorkspaceApplication(wsmApp);
return new ResponseEntity<>(response, HttpStatus.OK);
}
Aggregations