Class AttachmentControllerFacade

java.lang.Object
org.qubership.atp.dataset.service.rest.facade.AttachmentControllerFacade

@Service public class AttachmentControllerFacade extends Object
  • Constructor Details

    • AttachmentControllerFacade

      public AttachmentControllerFacade()
  • Method Details

    • getAttachmentByParameterId

      public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getAttachmentByParameterId(UUID parameterUuid)
      Download file by parameter id.
    • getAttachmentByAttributeIdAndDatasetId

      public org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> getAttachmentByAttributeIdAndDatasetId(UUID attributeId, UUID datasetId)
      Download file by attribute and dataset id.
    • uploadByParameterId

      public FileData uploadByParameterId(UUID parameterUuid, String contentType, String fileName, InputStream file)
      Upload file by parameter id.
    • uploadByAttributeIdAndDatasetId

      public org.springframework.http.ResponseEntity<FileData> uploadByAttributeIdAndDatasetId(UUID attributeId, UUID datasetId, String contentType, String fileName, List<UUID> attrPathIds, UUID dataSetListId, Long modifiedWhen, InputStream file)
      Upload file and store it to GridFs.
    • deleteByParameterId

      public org.springframework.http.ResponseEntity<Void> deleteByParameterId(@PathVariable("parameterUuid") UUID parameterId)
      Delete attachment from parameter.
    • deleteByAttributeIdAndDatasetId

      public org.springframework.http.ResponseEntity<Void> deleteByAttributeIdAndDatasetId(UUID attributeId, UUID datasetId)
      Delete attachment from parameter.