@RestController public class FileDownloadController extends Object
| Constructor and Description |
|---|
FileDownloadController(FileDownloaderService fileDownloaderService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> |
downloadProjectFile(String fileName,
String filePath,
org.qubership.automation.itf.core.util.eds.service.EdsContentType contentType,
UUID projectUuid)
Download file response entity.
|
org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> |
downloadProjectFiles(List<org.qubership.automation.itf.core.util.eds.service.EdsContentType> typesToDownload,
UUID projectUuid)
Download file response entity.
|
public FileDownloadController(FileDownloaderService fileDownloaderService)
@PreAuthorize(value="(@entityAccess.checkAccess(#projectUuid, \"READ\") and !#typesToDownload.contains(T(org.qubership.automation.itf.core.util.eds.service.EdsContentType).KEYSTORE)) or (@entityAccess.isSupport() or @entityAccess.isAdmin())")
@GetMapping(value="/project/files/download",
produces="application/zip")
public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> downloadProjectFiles(@RequestParam
List<org.qubership.automation.itf.core.util.eds.service.EdsContentType> typesToDownload,
@RequestParam
UUID projectUuid)
throws IOException,
org.qubership.automation.itf.core.util.exception.ExportException
typesToDownload - EdsContentType types file to downloadprojectUuid - project UUIDResponseEntityorg.qubership.automation.itf.core.util.exception.ExportException - the export exceptionIOException - I/O exception has occurred@PreAuthorize(value="@entityAccess.checkAccess(#projectUuid, \"READ\")")
@GetMapping(value="/project/file/download")
public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> downloadProjectFile(@RequestParam
String fileName,
@RequestParam
String filePath,
@RequestParam
org.qubership.automation.itf.core.util.eds.service.EdsContentType contentType,
@RequestParam
UUID projectUuid)
throws IOException,
org.qubership.automation.itf.core.util.exception.ExportException
fileName - file namefilePath - path to filecontentType - EdsContentType type content for fileprojectUuid - project UUIDResponseEntityorg.qubership.automation.itf.core.util.exception.ExportException - the export exceptionIOException - I/O exception has occurredCopyright © 2025. All rights reserved.