Class MiaFileController
java.lang.Object
org.qubership.atp.mia.controllers.MiaFileController
- All Implemented Interfaces:
MiaFileControllerApi
IMPORTANT!!! The first parameter in the request must be projectId, the second must be sessionId.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadFile(UUID projectId, UUID sessionId, String logFile) GET /rest/downloadFile/{projectId}/MIA_FILE_TYPE_LOG/{sessionId}/{logFile} Download file of executionorg.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadFileFromUploads(UUID projectId, UUID sessionId, String logFile) GET /rest/downloadFile/{projectId}/MIA_FILE_TYPE_UPLOAD/{sessionId}/{logFile} Download file from uploadsorg.springframework.http.ResponseEntity<org.springframework.core.io.Resource> POST /rest/downloadOutputAsZip downloadOutputAsZiporg.springframework.http.ResponseEntity<String> handleFileUpload(UUID projectId, UUID sessionId, Boolean needDos2Unix, org.springframework.web.multipart.MultipartFile file) POST /rest/uploadFile Upload file for project.org.springframework.http.ResponseEntity<String> handleTestDataFileUpload(UUID projectId, UUID sessionId, org.springframework.web.multipart.MultipartFile file) POST /rest/uploadTestDataFile handleTestDataFileUpload
-
Constructor Details
-
MiaFileController
public MiaFileController()
-
-
Method Details
-
downloadFile
@PreAuthorize("@entityAccess.checkAccess(#projectId, \"EXECUTE\")") public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadFile(UUID projectId, UUID sessionId, String logFile) Description copied from interface:MiaFileControllerApiGET /rest/downloadFile/{projectId}/MIA_FILE_TYPE_LOG/{sessionId}/{logFile} Download file of execution- Specified by:
downloadFilein interfaceMiaFileControllerApi- Parameters:
projectId- projectId (required)sessionId- sessionId (required)logFile- logFile (required)- Returns:
- OK (status code 200) or Created (status code 201) or Unauthorized (status code 401) or Forbidden (status code 403) or Not Found (status code 404)
-
downloadFileFromUploads
@PreAuthorize("@entityAccess.checkAccess(#projectId, \"EXECUTE\")") public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadFileFromUploads(UUID projectId, UUID sessionId, String logFile) Description copied from interface:MiaFileControllerApiGET /rest/downloadFile/{projectId}/MIA_FILE_TYPE_UPLOAD/{sessionId}/{logFile} Download file from uploads- Specified by:
downloadFileFromUploadsin interfaceMiaFileControllerApi- Parameters:
projectId- projectId (required)sessionId- sessionId (required)logFile- logFile (required)- Returns:
- OK (status code 200) or Created (status code 201) or Unauthorized (status code 401) or Forbidden (status code 403) or Not Found (status code 404)
-
downloadOutputAsZip
@PreAuthorize("@entityAccess.checkAccess(#projectId, \"EXECUTE\")") public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadOutputAsZip(UUID projectId, UUID sessionId, String processName, List<String> filePaths) Description copied from interface:MiaFileControllerApiPOST /rest/downloadOutputAsZip downloadOutputAsZip- Specified by:
downloadOutputAsZipin interfaceMiaFileControllerApi- Parameters:
projectId- projectId (required)sessionId- sessionId (required)processName- processName (required)filePaths- filePaths (required)- Returns:
- OK (status code 200) or Created (status code 201) or Unauthorized (status code 401) or Forbidden (status code 403) or Not Found (status code 404)
-
handleFileUpload
@PreAuthorize("@entityAccess.checkAccess(#projectId, \"EXECUTE\")") public org.springframework.http.ResponseEntity<String> handleFileUpload(UUID projectId, UUID sessionId, Boolean needDos2Unix, org.springframework.web.multipart.MultipartFile file) Description copied from interface:MiaFileControllerApiPOST /rest/uploadFile Upload file for project.- Specified by:
handleFileUploadin interfaceMiaFileControllerApi- Parameters:
projectId- projectId (required)sessionId- sessionId (required)needDos2Unix- needDos2Unix (optional)file- file (optional)- Returns:
- OK (status code 200) or Created (status code 201) or Unauthorized (status code 401) or Forbidden (status code 403) or Not Found (status code 404)
-
handleTestDataFileUpload
@PreAuthorize("@entityAccess.checkAccess(#projectId, \"EXECUTE\")") public org.springframework.http.ResponseEntity<String> handleTestDataFileUpload(UUID projectId, UUID sessionId, org.springframework.web.multipart.MultipartFile file) Description copied from interface:MiaFileControllerApiPOST /rest/uploadTestDataFile handleTestDataFileUpload- Specified by:
handleTestDataFileUploadin interfaceMiaFileControllerApi- Parameters:
projectId- projectId (required)sessionId- sessionId (optional)file- file (optional)- Returns:
- OK (status code 200) or Created (status code 201) or Unauthorized (status code 401) or Forbidden (status code 403) or Not Found (status code 404)
-