diff options
author | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-08-29 09:34:06 +0200 |
---|---|---|
committer | Fiete Ostkamp <Fiete.Ostkamp@telekom.de> | 2023-08-29 09:35:26 +0200 |
commit | afe2aaffdd5679e61f27f7b5597b21db6a8db4e0 (patch) | |
tree | e6221a8a1f708332c0afeb1cf0634ba46419096a /lib/src/main | |
parent | 4b7cd5405dea9003f31af1aa9cd584d8ccf2141f (diff) |
Consistently use the preferences and history names in the bff code base - Part 2
- some history related properties still had a portal prefix
Issue-ID: PORTALNG-50
Change-Id: Ia044b42c306b8a8837d1cda92f101aebe62283a1
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
Diffstat (limited to 'lib/src/main')
-rw-r--r-- | lib/src/main/java/org/onap/portalng/bff/config/clients/HistoryConfig.java | 4 | ||||
-rw-r--r-- | lib/src/main/java/org/onap/portalng/bff/services/ActionService.java | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/src/main/java/org/onap/portalng/bff/config/clients/HistoryConfig.java b/lib/src/main/java/org/onap/portalng/bff/config/clients/HistoryConfig.java index c7f8709..9d64ef1 100644 --- a/lib/src/main/java/org/onap/portalng/bff/config/clients/HistoryConfig.java +++ b/lib/src/main/java/org/onap/portalng/bff/config/clients/HistoryConfig.java @@ -60,7 +60,7 @@ public class HistoryConfig extends AbstractClientConfig<ProblemHistoryDto> { } @Bean - public ActionsApi portalHistoryActionApi(WebClient.Builder webClientBuilder) { + public ActionsApi historyActionApi(WebClient.Builder webClientBuilder) { return constructApiClient(webClientBuilder, ActionsApi::new); } @@ -88,7 +88,7 @@ public class HistoryConfig extends AbstractClientConfig<ProblemHistoryDto> { .title(httpStatusCode.toString()) .detail(errorResponse.getDetail()) .downstreamMessageId(errorResponse.getType()) - .downstreamSystem(ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString()) + .downstreamSystem(ProblemApiDto.DownstreamSystemEnum.HISTORY.toString()) .downstreamStatus(httpStatusCode.value()) .build(); } diff --git a/lib/src/main/java/org/onap/portalng/bff/services/ActionService.java b/lib/src/main/java/org/onap/portalng/bff/services/ActionService.java index cb7b6b4..bb272a1 100644 --- a/lib/src/main/java/org/onap/portalng/bff/services/ActionService.java +++ b/lib/src/main/java/org/onap/portalng/bff/services/ActionService.java @@ -64,7 +64,7 @@ public class ActionService { xRequestId, "Create actions failed for userId", userId, - ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString()); + ProblemApiDto.DownstreamSystemEnum.HISTORY.toString()); return Mono.error(ex); }); } @@ -82,7 +82,7 @@ public class ActionService { xRequestId, "Get actions failed for userId", userId, - ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString()); + ProblemApiDto.DownstreamSystemEnum.HISTORY.toString()); return Mono.error(ex); }); } @@ -101,7 +101,7 @@ public class ActionService { xRequestId, "List actions failed", null, - ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString()); + ProblemApiDto.DownstreamSystemEnum.HISTORY.toString()); return Mono.error(ex); }); } @@ -118,7 +118,7 @@ public class ActionService { + deleteAfterHours + " hours", userId, - ProblemApiDto.DownstreamSystemEnum.PORTAL_HISTORY.toString()); + ProblemApiDto.DownstreamSystemEnum.HISTORY.toString()); return Mono.error(ex); }); } |