aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/src
diff options
context:
space:
mode:
authorPiotr Darosz <piotr.darosz@nokia.com>2019-04-08 14:35:40 +0200
committerOfir Sonsino <ofir.sonsino@intl.att.com>2019-04-30 10:16:04 +0000
commitcd5da806dad48bfabd2de5ae56018483dab6106f (patch)
tree34b1734fa0bb74aa5fda887cfca1adbebf1128db /catalog-be/src
parent7480415fabbe61ef06b958c59d4a4af201b69da3 (diff)
Refactor hardcoded column config
Move hardcoded GAB columns configuration to configuration.yaml file Change-Id: Ie70a1d44c9a04a37c3ba0d3b5f64ad2989b11166 Issue-ID: SDC-2225 Signed-off-by: Piotr Darosz <piotr.darosz@nokia.com>
Diffstat (limited to 'catalog-be/src')
-rw-r--r--catalog-be/src/main/java/org/openecomp/sdc/be/servlets/ElementServlet.java2
-rw-r--r--catalog-be/src/main/resources/config/configuration.yaml16
2 files changed, 18 insertions, 0 deletions
diff --git a/catalog-be/src/main/java/org/openecomp/sdc/be/servlets/ElementServlet.java b/catalog-be/src/main/java/org/openecomp/sdc/be/servlets/ElementServlet.java
index eda9a61883..081c9cad1a 100644
--- a/catalog-be/src/main/java/org/openecomp/sdc/be/servlets/ElementServlet.java
+++ b/catalog-be/src/main/java/org/openecomp/sdc/be/servlets/ElementServlet.java
@@ -455,6 +455,8 @@ public class ElementServlet extends BeGenericServlet {
configuration.put("roles", elementBL.getAllSupportedRoles());
configuration.put("resourceTypes", resourceTypesMap.left().value());
configuration.put("environmentContext", ConfigurationManager.getConfigurationManager().getConfiguration().getEnvironmentContext());
+ configuration.put("gab", ConfigurationManager.getConfigurationManager().getConfiguration().getGabConfig());
+
return buildOkResponse(getComponentsUtils().getResponseFormat(ActionStatus.OK), configuration);
}
diff --git a/catalog-be/src/main/resources/config/configuration.yaml b/catalog-be/src/main/resources/config/configuration.yaml
index 1d9a51e6b3..d23f87eb96 100644
--- a/catalog-be/src/main/resources/config/configuration.yaml
+++ b/catalog-be/src/main/resources/config/configuration.yaml
@@ -737,6 +737,22 @@ environmentContext:
- Useful_Non-Revenue
- General_Non-Revenue
+gabConfig:
+ - artifactType: 'VES_EVENTS'
+ pathsandnames:
+ -
+ friendlyName: "Action"
+ path: "event.action[2]"
+ searchable: "true"
+ -
+ friendlyName: "Comment"
+ path: "event.comment"
+ searchable: "true"
+ -
+ friendlyName: "Alarm Additional Information"
+ path: "event.structure.faultFields.structure.alarmAdditionalInformation.comment"
+ searchable: "true"
+
dmaapConsumerConfiguration:
active: true
hosts: olsd004.wnsnet.ws.com:3905