From 92364e25f43f163d640bd39fdae0f0d091b0f920 Mon Sep 17 00:00:00 2001 From: Vidhyalakshmi Vaikundaperumal <53526735+vidhya9lakshmi@users.noreply.github.com> Date: Mon, 26 Jul 2021 07:54:56 -0700 Subject: [PATCH] Added AltIdentifier in Entry (#241) --- pom.xml | 4 ++-- .../dashboard/request/DashboardRemoteRequest.java | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 2e5d7162..04c5b847 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ api jar ${project.groupId}:${project.artifactId} - 3.4.22-SNAPSHOT + 3.4.23-SNAPSHOT Hygieia Rest API Layer https://github.com/Hygieia/api @@ -59,7 +59,7 @@ - 3.15.0 + 3.15.9 4.2.18.RELEASE 8.5.57 1.9.4 diff --git a/src/main/java/com/capitalone/dashboard/request/DashboardRemoteRequest.java b/src/main/java/com/capitalone/dashboard/request/DashboardRemoteRequest.java index c3254100..445f2fd4 100644 --- a/src/main/java/com/capitalone/dashboard/request/DashboardRemoteRequest.java +++ b/src/main/java/com/capitalone/dashboard/request/DashboardRemoteRequest.java @@ -179,6 +179,8 @@ public static abstract class Entry { String niceName; + String altIdentifier; + @NotEmpty Map options = new HashMap<>(); @@ -212,6 +214,14 @@ public void setPushed(boolean pushed) { public void setNiceName(String niceName) { this.niceName = niceName; } + public String getAltIdentifier() { + return altIdentifier; + } + + public void setAltIdentifier(String altIdentifier) { + this.altIdentifier = altIdentifier; + } + public CollectorItem toCollectorItem(Collector collector) throws HygieiaException{ if (options.keySet().containsAll(collector.getUniqueFields().keySet())) { CollectorItem collectorItem = new CollectorItem(); @@ -219,6 +229,7 @@ public CollectorItem toCollectorItem(Collector collector) throws HygieiaExceptio collectorItem.setPushed(isPushed()); collectorItem.setDescription(description); collectorItem.setNiceName(niceName); + collectorItem.setAltIdentifier(altIdentifier); for (String key : options.keySet()) { if (collector.getAllFields().keySet().contains(key)) { collectorItem.getOptions().put(key, options.get(key));