Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Added AltIdentifier in Entry (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
vidhya9lakshmi authored Jul 26, 2021
1 parent 9c2c1e2 commit 92364e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>api</artifactId>
<packaging>jar</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<version>3.4.22-SNAPSHOT</version>
<version>3.4.23-SNAPSHOT</version>
<description>Hygieia Rest API Layer</description>
<url>https://github.com/Hygieia/api</url>

Expand Down Expand Up @@ -59,7 +59,7 @@

<properties>
<!-- Dependencies -->
<com.capitalone.dashboard.core.version>3.15.0</com.capitalone.dashboard.core.version>
<com.capitalone.dashboard.core.version>3.15.9</com.capitalone.dashboard.core.version>
<spring-security.version>4.2.18.RELEASE</spring-security.version>
<tomcat.version>8.5.57</tomcat.version>
<commons-beanutils.version>1.9.4</commons-beanutils.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ public static abstract class Entry {

String niceName;

String altIdentifier;

@NotEmpty
Map<String, Object> options = new HashMap<>();

Expand Down Expand Up @@ -212,13 +214,22 @@ 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();
collectorItem.setEnabled(true);
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));
Expand Down

0 comments on commit 92364e2

Please sign in to comment.