diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java b/src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java index 75b92e7..5ab373c 100644 --- a/src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java +++ b/src/main/java/org/onap/aai/sparky/search/filters/config/FiltersConfig.java @@ -49,6 +49,14 @@ public class FiltersConfig { public FiltersConfig() { initializeFilters(); } + + public FiltersConfig(String filtersFileName, String filterMappingsFileName) { + this.filtersFileName = filtersFileName; + this.filterMappingsFileName = filterMappingsFileName; + + viewsConfig = this.readUiViewsConfig(); + filtersConfig = this.readUiFiltersConfig(); + } /** * Initialize config. @@ -103,7 +111,7 @@ public class FiltersConfig { this.filtersConfig = filtersConfig; } - public FiltersDetailsConfig readUiFiltersConfig(){ + public FiltersDetailsConfig readUiFiltersConfig() { ObjectMapper mapper = new ObjectMapper(); FiltersDetailsConfig filtersConfig = null; try{ @@ -115,7 +123,7 @@ public class FiltersConfig { return filtersConfig; } - public FiltersForViewsConfig readUiViewsConfig(){ + public FiltersForViewsConfig readUiViewsConfig() { ObjectMapper mapper = new ObjectMapper(); FiltersForViewsConfig viewsConfig = null; |