From cd5da806dad48bfabd2de5ae56018483dab6106f Mon Sep 17 00:00:00 2001 From: Piotr Darosz Date: Mon, 8 Apr 2019 14:35:40 +0200 Subject: 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 --- .../org/openecomp/sdc/be/config/Configuration.java | 61 ++++++++++++++++++++++ 1 file changed, 61 insertions(+) (limited to 'common-app-api/src/main/java/org/openecomp') 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; + public Map getGenericAssetNodeTypes() { return genericAssetNodeTypes; } @@ -617,6 +619,14 @@ public class Configuration extends BasicConfiguration { this.environmentContext = environmentContext; } + public List getGabConfig() { + return gabConfig; + } + + public void setGabConfig(List gabConfig) { + this.gabConfig = gabConfig; + } + public static class ElasticSearchConfig { List 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 pathsAndNamesDefinitions; + + public String getArtifactType() { + return artifactType; + } + + public List getPathsAndNamesDefinitions() { + return pathsAndNamesDefinitions; + } + + public void setArtifactType(String artifactType) { + this.artifactType = artifactType; + } + + public void setPathsAndNamesDefinitions(List pathsAndNamesDefinitions) { + this.pathsAndNamesDefinitions = pathsAndNamesDefinitions; + } + } } -- cgit 1.2.3-korg