diff options
Diffstat (limited to 'mso-api-handlers/mso-requests-db/src/main/java')
-rw-r--r-- | mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/client/RequestsDbClient.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/client/RequestsDbClient.java b/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/client/RequestsDbClient.java index 9b42eacfc2..806d347582 100644 --- a/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/client/RequestsDbClient.java +++ b/mso-api-handlers/mso-requests-db/src/main/java/org/onap/so/db/request/client/RequestsDbClient.java @@ -127,6 +127,9 @@ public class RequestsDbClient { private static final String findByGroupingIdAndNameAndTag = "/requestProcessingData/search/findByGroupingIdAndNameAndTag"; + private static final String findBySoRequestIdAndNameAndTagOrderByCreateTimeDesc = + "/requestProcessingData/search/findBySoRequestIdAndNameAndTagOrderByCreatedDesc"; + @Autowired protected RestTemplate restTemplate; @@ -403,6 +406,15 @@ public class RequestsDbClient { RequestProcessingData.class); } + public List<RequestProcessingData> getRequestProcessingDataBySoRequestIdAndNameAndTagOrderByCreateTimeDesc( + String soRequestId, String name, String tag) { + + return getMultipleResponse(getUri(UriBuilder + .fromUri(endpoint + findBySoRequestIdAndNameAndTagOrderByCreateTimeDesc) + .queryParam(SO_REQUEST_ID, soRequestId).queryParam(NAME, name).queryParam(TAG, tag).build().toString()), + new ParameterizedTypeReference<List<RequestProcessingData>>() {}); + } + public void persistProcessingData(String flowExecutionPath, String requestId) { |