summaryrefslogtreecommitdiffstats
path: root/common-app-api/src/main
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 /common-app-api/src/main
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 'common-app-api/src/main')
-rw-r--r--common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java61
1 files changed, 61 insertions, 0 deletions
diff --git a/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java b/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java
index 6325f00f3e..a9c4ed362a 100644
--- a/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java
+++ b/common-app-api/src/main/java/org/openecomp/sdc/be/config/Configuration.java
@@ -234,6 +234,8 @@ public class Configuration extends BasicConfiguration {
private EnvironmentContext environmentContext;
+ private List<GabConfig> gabConfig;
+
public Map<String, String> getGenericAssetNodeTypes() {
return genericAssetNodeTypes;
}
@@ -617,6 +619,14 @@ public class Configuration extends BasicConfiguration {
this.environmentContext = environmentContext;
}
+ public List<GabConfig> getGabConfig() {
+ return gabConfig;
+ }
+
+ public void setGabConfig(List<GabConfig> gabConfig) {
+ this.gabConfig = gabConfig;
+ }
+
public static class ElasticSearchConfig {
List<IndicesTimeFrequencyEntry> indicesTimeFrequency;
@@ -1585,4 +1595,55 @@ public class Configuration extends BasicConfiguration {
this.healthStatusExclude = healthStatusExclude;
}
+
+ public static class PathsAndNamesDefinition {
+ private String friendlyName;
+ private String path;
+ private String searchable;
+
+ public String getFriendlyName() {
+ return friendlyName;
+ }
+
+ public String getPath() {
+ return path;
+ }
+
+ public String getSearchable() {
+ return searchable;
+ }
+
+ public void setFriendlyName(String friendlyName) {
+ this.friendlyName = friendlyName;
+ }
+
+ public void setPath(String path) {
+ this.path = path;
+ }
+
+ public void setSearchable(String searchable) {
+ this.searchable = searchable;
+ }
+ }
+
+ public static class GabConfig {
+ private String artifactType;
+ private List<PathsAndNamesDefinition> pathsAndNamesDefinitions;
+
+ public String getArtifactType() {
+ return artifactType;
+ }
+
+ public List<PathsAndNamesDefinition> getPathsAndNamesDefinitions() {
+ return pathsAndNamesDefinitions;
+ }
+
+ public void setArtifactType(String artifactType) {
+ this.artifactType = artifactType;
+ }
+
+ public void setPathsAndNamesDefinitions(List<PathsAndNamesDefinition> pathsAndNamesDefinitions) {
+ this.pathsAndNamesDefinitions = pathsAndNamesDefinitions;
+ }
+ }
}