@Controller public final class PackageController extends LogViewerBaseController
Constructor and Description |
---|
PackageController(UploadPackageService uploadPackageService,
CreatePackageService createPackageService)
Ctr for package controller
|
Modifier and Type | Method and Description |
---|---|
org.springframework.core.io.FileSystemResource |
createPackageForApplication(String application)
Request to create package for a given application.
|
org.springframework.core.io.FileSystemResource |
createPackageForConnection(String workflowExecutionId,
String scenarioExecutionId,
String connectionId)
Request to create package for a given connection
|
void |
uploadPackage(org.springframework.web.multipart.MultipartFile multipartFile,
String packageName)
Request to uploade a log package to the repository.
|
constraintViolation, createErrorResponse, invalidContextException, invalidPackageFile, otherErrors, packageAlreadyExists, unableToCreateDumpException, unableToDeleteTemporaryFiles, unableToPruneWorkflowExecutionException, workflowDoesNotExistException
@Autowired public PackageController(UploadPackageService uploadPackageService, CreatePackageService createPackageService)
uploadPackageService
- Service providing package upload capabilitycreatePackageService
- Service providing package creation capability@GetMapping(value="/workflow-executions/{workflowExecutionId}/scenario-executions/{scenarioExecutionId}/connection/{connectionId}/package", produces="application/zip") @ResponseBody public org.springframework.core.io.FileSystemResource createPackageForConnection(@PathVariable String workflowExecutionId, @PathVariable String scenarioExecutionId, @PathVariable String connectionId)
workflowExecutionId
- ID of the workflow executionscenarioExecutionId
- ID of the scenario executionconnectionId
- ID of the connection@GetMapping(value="/applications/{application}/package", produces="application/zip") @ResponseBody public org.springframework.core.io.FileSystemResource createPackageForApplication(@PathVariable String application)
application
- Name of the application.@PostMapping(value="/upload") @ResponseStatus(value=OK) public void uploadPackage(@RequestParam(value="uploadedPackage") org.springframework.web.multipart.MultipartFile multipartFile, @RequestParam(value="packageName") String packageName)
multipartFile
- Uploaded filepackageName
- Name of the package under which logs will be stored.Copyright © 2020. All rights reserved.