Class CatalogueService
java.lang.Object
org.qubership.atp.itf.lite.backend.feign.service.CatalogueService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadFile(String fileId) voidevictProjectCertificateCacheByProjectId(UUID projectId) execute(String authorization, ExecuteRequestDto executeRequestDto) Execute request in catalogue service.org.springframework.http.ResponseEntity<CertificateDto> getCertificate(UUID projectId) Gets certificate from project.
-
Constructor Details
-
CatalogueService
public CatalogueService()
-
-
Method Details
-
execute
Execute request in catalogue service. -
getCertificate
@Cacheable(value="ATP_ITF_LITE_PROJECT_CERT", key="#projectId", condition="#projectId != null", sync=true) public org.springframework.http.ResponseEntity<CertificateDto> getCertificate(UUID projectId) Gets certificate from project.- Parameters:
projectId- project id- Returns:
- response with certificate or null if any exception happened
-
evictProjectCertificateCacheByProjectId
@CacheEvict(value="ATP_ITF_LITE_PROJECT_CERT", key="#projectId") public void evictProjectCertificateCacheByProjectId(UUID projectId) -
downloadFile
public org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> downloadFile(String fileId)
-