@Service public class FileDownloaderService extends Object
| Constructor and Description |
|---|
FileDownloaderService(org.qubership.automation.itf.core.util.eds.service.FileManagementService fileManagementService) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> |
downloadFile(String fileName,
Path archive)
Download file response entity.
|
org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> |
projectFiles(String fileName,
String filePath,
org.qubership.automation.itf.core.util.eds.service.EdsContentType contentType,
UUID projectUuid)
Processing project file.
|
org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> |
zipProjectFiles(List<org.qubership.automation.itf.core.util.eds.service.EdsContentType> typesToDownload,
UUID projectUuid)
Processing project files into zip file.
|
public FileDownloaderService(org.qubership.automation.itf.core.util.eds.service.FileManagementService fileManagementService)
public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> zipProjectFiles(List<org.qubership.automation.itf.core.util.eds.service.EdsContentType> typesToDownload, UUID projectUuid) throws IOException, org.qubership.automation.itf.core.util.exception.ExportException
typesToDownload - types EdsContentType file to downloadprojectUuid - project UUIDResponseEntityorg.qubership.automation.itf.core.util.exception.ExportException - the export exceptionIOException - I/O exception has occurredpublic org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> projectFiles(String fileName, String filePath, org.qubership.automation.itf.core.util.eds.service.EdsContentType contentType, 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 occurredpublic org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> downloadFile(String fileName, Path archive) throws org.qubership.automation.itf.core.util.exception.ExportException, IOException
fileName - the file namearchive - the archiveorg.qubership.automation.itf.core.util.exception.ExportException - the export exceptionIOExceptionCopyright © 2025. All rights reserved.