f7f98342596aafce57f5a627d9ad8b6505f55a7b
[sdc.git] / common-app-api / src / main / java / org / openecomp / sdc / be / config / Configuration.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * SDC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.openecomp.sdc.be.config;
22
23 import org.apache.commons.collections.map.CaseInsensitiveMap;
24 import org.openecomp.sdc.common.api.BasicConfiguration;
25
26 import java.util.Date;
27 import java.util.List;
28 import java.util.Map;
29 import java.util.Set;
30
31 import static java.lang.String.format;
32 import static java.util.Collections.emptyMap;
33
34 public class Configuration extends BasicConfiguration {
35
36     private List<String> identificationHeaderFields;
37     /**
38      * Requests from these Urls will not be logged by
39      * org.openecomp.sdc.be.filters.BeServletFilter.<br>
40      **/
41     private List<String> unLoggedUrls;
42
43     /**
44      * backend host
45      */
46     private String beFqdn;
47     /**
48      * backend http port
49      */
50     private Integer beHttpPort;
51     /**
52      * backend http secured port
53      */
54     private Integer beSslPort;
55     /**
56      * be http context
57      */
58     private String beContext;
59     /**
60      * backend protocol. http | https
61      */
62     private String beProtocol = "http";
63
64     private Date released;
65     private String version = "1111";
66     private String toscaConformanceLevel = "3.0";
67     private String minToscaConformanceLevel = "3.0";
68     private List<String> protocols;
69     private Map<String, String> users;
70     private Map<String, Object> neo4j;
71     private ElasticSearchConfig elasticSearch;
72     private String titanCfgFile;
73     private String titanMigrationKeySpaceCfgFile;
74     private Boolean titanInMemoryGraph;
75     private int startMigrationFrom;
76     private Long titanLockTimeout;
77     private Long titanReconnectIntervalInSeconds;
78     private List<String> healthStatusExclude;
79     private Long titanHealthCheckReadTimeout;
80     private Long esReconnectIntervalInSeconds;
81     private Long uebHealthCheckReconnectIntervalInSeconds;
82     private Long uebHealthCheckReadTimeout;
83     private List<Map<String, Map<String, String>>> defaultImports;
84
85     private List<String> resourceTypes;
86     private List<String> excludeResourceCategory;
87     private List<String> excludeResourceType;
88     private Map<String, Set<String>> excludedPolicyTypesMapping;
89
90     private Map<String, Set<String>> excludedGroupTypesMapping;
91     private Map<String, Object> deploymentResourceArtifacts;
92     private Map<String, Object> deploymentResourceInstanceArtifacts;
93     private Map<String, Object> toscaArtifacts;
94     private Map<String, Object> informationalResourceArtifacts;
95     private Map<String, Object> informationalServiceArtifacts;
96     private Map<String, ArtifactTypeConfig> resourceDeploymentArtifacts;
97     private Map<String, ArtifactTypeConfig> serviceDeploymentArtifacts;
98     private Map<String, ArtifactTypeConfig> resourceInstanceDeploymentArtifacts;
99     private Map<String, ArtifactTypeConfig> resourceInformationalArtifacts;
100     private Map<String, ArtifactTypeConfig> resourceInformationalDeployedArtifacts;
101     private Map<String, Object> serviceApiArtifacts;
102     private List<String> excludeServiceCategory;
103     private Map<String, Set<String>> requirementsToFulfillBeforeCert;
104     private Map<String, Set<String>> capabilitiesToConsumeBeforeCert;
105
106     private List<String> artifactTypes;
107     private List<String> licenseTypes;
108
109     private Integer additionalInformationMaxNumberOfKeys;
110     private Integer defaultHeatArtifactTimeoutMinutes;
111
112     private BeMonitoringConfig systemMonitoring;
113     private CleanComponentsConfiguration cleanComponentsConfiguration;
114
115     private String artifactsIndex;
116
117     private String heatEnvArtifactHeader;
118     private String heatEnvArtifactFooter;
119
120     private String toscaFilesDir;
121     private String heatTranslatorPath;
122
123     private OnboardingConfig onboarding;
124
125     private DcaeConfig dcae;
126
127     private CassandrConfig cassandraConfig;
128
129     private SwitchoverDetectorConfig switchoverDetector;
130
131     private ApplicationL1CacheConfig applicationL1Cache;
132
133     private ApplicationL2CacheConfig applicationL2Cache;
134
135     private ToscaValidatorsConfig toscaValidators;
136
137     private boolean disableAudit;
138
139     private Map<String, VfModuleProperty> vfModuleProperties;
140
141     private Map<String, String> genericAssetNodeTypes;
142
143     private String appVersion;
144
145     public String getAutoHealingOwner() {
146         return autoHealingOwner;
147     }
148
149     public void setAutoHealingOwner(String autoHealingOwner) {
150         this.autoHealingOwner = autoHealingOwner;
151     }
152
153     private String autoHealingOwner;
154     private boolean enableAutoHealing;
155
156     private Map<String, List<String>> resourcesForUpgrade;
157     private DmaapConsumerConfiguration dmaapConsumerConfiguration;
158         private boolean skipUpgradeFailedVfs;
159         private boolean skipUpgradeVSPs;
160     private DmeConfiguration dmeConfiguration;
161
162     private boolean supportAllottedResourcesAndProxy;
163     private Integer deleteLockTimeoutInSeconds;
164     private Integer maxDeleteComponents;
165
166     public Integer getMaxDeleteComponents() {
167         return maxDeleteComponents;
168     }
169
170     public void setMaxDeleteComponents(Integer maxDeleteComponents) {
171         this.maxDeleteComponents = maxDeleteComponents;
172     }
173
174     public void setEnableAutoHealing(boolean enableAutoHealing) {
175         this.enableAutoHealing = enableAutoHealing;
176     }
177
178     public boolean isEnableAutoHealing() {
179         return enableAutoHealing;
180     }
181
182     public Integer getDeleteLockTimeoutInSeconds() {
183         return deleteLockTimeoutInSeconds;
184     }
185
186     public void setDeleteLockTimeoutInSeconds(Integer deleteLockTimeoutInSeconds) {
187         this.deleteLockTimeoutInSeconds = deleteLockTimeoutInSeconds;
188     }
189
190     public DmaapConsumerConfiguration getDmaapConsumerConfiguration() {
191         return dmaapConsumerConfiguration;
192     }
193
194     public void setDmaapConsumerConfiguration(DmaapConsumerConfiguration dmaapConsumerConfiguration) {
195         this.dmaapConsumerConfiguration = dmaapConsumerConfiguration;
196     }
197
198     public DmeConfiguration getDmeConfiguration() {
199         return dmeConfiguration;
200     }
201
202     public void setDmeConfiguration(DmeConfiguration dmeConfiguration) {
203         this.dmeConfiguration = dmeConfiguration;
204     }
205     public void setSkipUpgradeVSPs(boolean skipUpgradeVSPs) { this.skipUpgradeVSPs = skipUpgradeVSPs; }
206
207     public boolean getSkipUpgradeVSPsFlag() { return skipUpgradeVSPs; }
208
209     public boolean getSkipUpgradeFailedVfs() {
210         return skipUpgradeFailedVfs;
211     }
212
213     public boolean getSupportAllottedResourcesAndProxyFlag() {
214         return supportAllottedResourcesAndProxy;
215     }
216
217     public void setSupportAllottedResourcesAndProxy(boolean supportAllottedResourcesAndProxy) {
218         this.supportAllottedResourcesAndProxy = supportAllottedResourcesAndProxy;
219     }
220
221     public void setSkipUpgradeFailedVfs(boolean skipUpgradeFailedVfs) {
222         this.skipUpgradeFailedVfs = skipUpgradeFailedVfs;
223     }
224
225     public String getAppVersion() {
226         return appVersion;
227     }
228
229     public void setAppVersion(String appVersion) {
230         this.appVersion = appVersion;
231     }
232
233     private String workloadContext;
234
235     private EnvironmentContext environmentContext;
236
237     public Map<String, String> getGenericAssetNodeTypes() {
238         return genericAssetNodeTypes;
239     }
240
241     public void setGenericAssetNodeTypes(Map<String, String> genericAssetNodeTypes) {
242         this.genericAssetNodeTypes = genericAssetNodeTypes;
243     }
244
245     public SwitchoverDetectorConfig getSwitchoverDetector() {
246         return switchoverDetector;
247     }
248
249     public void setSwitchoverDetector(SwitchoverDetectorConfig switchoverDetector) {
250         this.switchoverDetector = switchoverDetector;
251     }
252
253     public ApplicationL1CacheConfig getApplicationL1Cache() {
254         return applicationL1Cache;
255     }
256
257     public void setApplicationL1Cache(ApplicationL1CacheConfig applicationL1Cache) {
258         this.applicationL1Cache = applicationL1Cache;
259     }
260
261     public ApplicationL2CacheConfig getApplicationL2Cache() {
262         return applicationL2Cache;
263     }
264
265     public void setApplicationL2Cache(ApplicationL2CacheConfig applicationL2Cache) {
266         this.applicationL2Cache = applicationL2Cache;
267     }
268
269     private EcompPortalConfig ecompPortal;
270
271     public CassandrConfig getCassandraConfig() {
272         return cassandraConfig;
273     }
274
275     public void setCassandraConfig(CassandrConfig cassandraKeySpace) {
276         this.cassandraConfig = cassandraKeySpace;
277     }
278
279     public List<String> getIdentificationHeaderFields() {
280         return identificationHeaderFields;
281     }
282
283     public void setIdentificationHeaderFields(List<String> identificationHeaderFields) {
284         this.identificationHeaderFields = identificationHeaderFields;
285     }
286
287     public Date getReleased() {
288         return released;
289     }
290
291     public String getVersion() {
292         return version;
293     }
294
295     public void setReleased(Date released) {
296         this.released = released;
297     }
298
299     public void setVersion(String version) {
300         this.version = version;
301     }
302
303     public List<String> getProtocols() {
304         return protocols;
305     }
306
307     public void setProtocols(List<String> protocols) {
308         this.protocols = protocols;
309     }
310
311     public Map<String, String> getUsers() {
312         return users;
313     }
314
315     public void setUsers(Map<String, String> users) {
316         this.users = users;
317     }
318
319     public String getBeFqdn() {
320         return beFqdn;
321     }
322
323     public void setBeFqdn(String beHost) {
324         this.beFqdn = beHost;
325     }
326
327     public Integer getBeHttpPort() {
328         return beHttpPort;
329     }
330
331     public void setBeHttpPort(Integer beHttpPort) {
332         this.beHttpPort = beHttpPort;
333     }
334
335     public Integer getBeSslPort() {
336         return beSslPort;
337     }
338
339     public void setBeSslPort(Integer beSslPort) {
340         this.beSslPort = beSslPort;
341     }
342
343     public String getBeContext() {
344         return beContext;
345     }
346
347     public void setBeContext(String beContext) {
348         this.beContext = beContext;
349     }
350
351     public String getBeProtocol() {
352         return beProtocol;
353     }
354
355     public void setBeProtocol(String beProtocol) {
356         this.beProtocol = beProtocol;
357     }
358
359     public Map<String, Object> getNeo4j() {
360         return neo4j;
361     }
362
363     public void setNeo4j(Map<String, Object> neo4j) {
364         this.neo4j = neo4j;
365     }
366
367     public ElasticSearchConfig getElasticSearch() {
368         return elasticSearch;
369     }
370
371     public void setElasticSearch(ElasticSearchConfig elasticSearch) {
372         this.elasticSearch = elasticSearch;
373     }
374
375     public String getTitanCfgFile() {
376         return titanCfgFile;
377     }
378
379     public void setTitanCfgFile(String titanCfgFile) {
380         this.titanCfgFile = titanCfgFile;
381     }
382
383     public String getTitanMigrationKeySpaceCfgFile() {
384         return titanMigrationKeySpaceCfgFile;
385     }
386
387     public void setTitanMigrationKeySpaceCfgFile(String titanMigrationKeySpaceCfgFile) {
388         this.titanMigrationKeySpaceCfgFile = titanMigrationKeySpaceCfgFile;
389     }
390
391     public Boolean getTitanInMemoryGraph() {
392         return titanInMemoryGraph;
393     }
394
395     public void setTitanInMemoryGraph(Boolean titanInMemoryGraph) {
396         this.titanInMemoryGraph = titanInMemoryGraph;
397     }
398
399     public int getStartMigrationFrom() {
400         return startMigrationFrom;
401     }
402
403     public void setStartMigrationFrom(int startMigrationFrom) {
404         this.startMigrationFrom = startMigrationFrom;
405     }
406
407     public Long getTitanLockTimeout() {
408         return titanLockTimeout;
409     }
410
411     public void setTitanLockTimeout(Long titanLockTimeout) {
412         this.titanLockTimeout = titanLockTimeout;
413     }
414
415     public Long getTitanHealthCheckReadTimeout() {
416         return titanHealthCheckReadTimeout;
417     }
418
419     public Long getTitanHealthCheckReadTimeout(long defaultVal) {
420         return titanHealthCheckReadTimeout == null ? defaultVal : titanHealthCheckReadTimeout;
421     }
422
423     public void setTitanHealthCheckReadTimeout(Long titanHealthCheckReadTimeout) {
424         this.titanHealthCheckReadTimeout = titanHealthCheckReadTimeout;
425     }
426
427     public Long getTitanReconnectIntervalInSeconds() {
428         return titanReconnectIntervalInSeconds;
429     }
430
431     public Long getTitanReconnectIntervalInSeconds(long defaultVal) {
432         return titanReconnectIntervalInSeconds == null ? defaultVal : titanReconnectIntervalInSeconds;
433     }
434
435     public void setTitanReconnectIntervalInSeconds(Long titanReconnectIntervalInSeconds) {
436         this.titanReconnectIntervalInSeconds = titanReconnectIntervalInSeconds;
437     }
438
439     public Long getEsReconnectIntervalInSeconds() {
440         return esReconnectIntervalInSeconds;
441     }
442
443     public Long getEsReconnectIntervalInSeconds(long defaultVal) {
444         return esReconnectIntervalInSeconds == null ? defaultVal : esReconnectIntervalInSeconds;
445     }
446
447     public void setEsReconnectIntervalInSeconds(Long esReconnectIntervalInSeconds) {
448         this.esReconnectIntervalInSeconds = esReconnectIntervalInSeconds;
449     }
450
451     public List<String> getArtifactTypes() {
452         return artifactTypes;
453     }
454
455     public void setArtifactTypes(List<String> artifactTypes) {
456         this.artifactTypes = artifactTypes;
457     }
458
459     public List<String> getExcludeResourceCategory() {
460         return excludeResourceCategory;
461     }
462
463     public void setExcludeResourceCategory(List<String> excludeResourceCategory) {
464         this.excludeResourceCategory = excludeResourceCategory;
465     }
466
467     public List<String> getExcludeResourceType() {
468         return excludeResourceType;
469     }
470
471     public void setExcludeResourceType(List<String> excludeResourceType) {
472         this.excludeResourceType = excludeResourceType;
473     }
474
475     public Map<String, Set<String>> getExcludedPolicyTypesMapping() {
476         return safeGetCapsInsensitiveMap(excludedPolicyTypesMapping);
477     }
478
479     public void setExcludedPolicyTypesMapping(Map<String, Set<String>> excludedPolicyTypesMapping) {
480         this.excludedPolicyTypesMapping = excludedPolicyTypesMapping;
481     }
482
483     public Map<String, Set<String>> getExcludedGroupTypesMapping() {
484         return safeGetCapsInsensitiveMap(excludedGroupTypesMapping);
485     }
486
487     public void setExcludedGroupTypesMapping(Map<String, Set<String>> excludedGroupTypesMapping) {
488         this.excludedGroupTypesMapping = excludedGroupTypesMapping;
489     }
490
491     public Map<String, Object> getToscaArtifacts() {
492         return toscaArtifacts;
493     }
494
495     public void setToscaArtifacts(Map<String, Object> toscaArtifacts) {
496         this.toscaArtifacts = toscaArtifacts;
497     }
498
499     public Map<String, Object> getInformationalResourceArtifacts() {
500         return informationalResourceArtifacts;
501     }
502
503     public void setInformationalResourceArtifacts(Map<String, Object> informationalResourceArtifacts) {
504         this.informationalResourceArtifacts = informationalResourceArtifacts;
505     }
506
507     public Map<String, Object> getInformationalServiceArtifacts() {
508         return informationalServiceArtifacts;
509     }
510
511     public void setInformationalServiceArtifacts(Map<String, Object> informationalServiceArtifacts) {
512         this.informationalServiceArtifacts = informationalServiceArtifacts;
513     }
514
515     public Map<String, Object> getServiceApiArtifacts() {
516         return serviceApiArtifacts;
517     }
518
519     public void setServiceApiArtifacts(Map<String, Object> serviceApiArtifacts) {
520         this.serviceApiArtifacts = serviceApiArtifacts;
521     }
522
523     public Map<String, ArtifactTypeConfig> getServiceDeploymentArtifacts() {
524         return serviceDeploymentArtifacts;
525     }
526
527     public void setServiceDeploymentArtifacts(Map<String, ArtifactTypeConfig> serviceDeploymentArtifacts) {
528         this.serviceDeploymentArtifacts = serviceDeploymentArtifacts;
529     }
530
531     public Map<String, ArtifactTypeConfig> getResourceDeploymentArtifacts() {
532         return resourceDeploymentArtifacts;
533     }
534
535     public void setResourceDeploymentArtifacts(Map<String, ArtifactTypeConfig> resourceDeploymentArtifacts) {
536         this.resourceDeploymentArtifacts = resourceDeploymentArtifacts;
537     }
538
539     public void setResourceInstanceDeploymentArtifacts(
540             Map<String, ArtifactTypeConfig> resourceInstanceDeploymentArtifacts) {
541         this.resourceInstanceDeploymentArtifacts = resourceInstanceDeploymentArtifacts;
542     }
543
544     public Map<String, ArtifactTypeConfig> getResourceInstanceDeploymentArtifacts() {
545         return resourceInstanceDeploymentArtifacts;
546     }
547
548     public List<String> getExcludeServiceCategory() {
549         return excludeServiceCategory;
550     }
551
552     public void setExcludeServiceCategory(List<String> excludeServiceCategory) {
553         this.excludeServiceCategory = excludeServiceCategory;
554     }
555
556     public List<String> getLicenseTypes() {
557         return licenseTypes;
558     }
559
560     public void setLicenseTypes(List<String> licenseTypes) {
561         this.licenseTypes = licenseTypes;
562     }
563
564     public Integer getAdditionalInformationMaxNumberOfKeys() {
565         return additionalInformationMaxNumberOfKeys;
566     }
567
568     public void setAdditionalInformationMaxNumberOfKeys(Integer additionalInformationMaxNumberOfKeys) {
569         this.additionalInformationMaxNumberOfKeys = additionalInformationMaxNumberOfKeys;
570     }
571
572     public BeMonitoringConfig getSystemMonitoring() {
573         return systemMonitoring;
574     }
575
576     public void setSystemMonitoring(BeMonitoringConfig systemMonitoring) {
577         this.systemMonitoring = systemMonitoring;
578     }
579
580     public Integer getDefaultHeatArtifactTimeoutMinutes() {
581         return defaultHeatArtifactTimeoutMinutes;
582     }
583
584     public void setDefaultHeatArtifactTimeoutMinutes(Integer defaultHeatArtifactTimeoutMinutes) {
585         this.defaultHeatArtifactTimeoutMinutes = defaultHeatArtifactTimeoutMinutes;
586     }
587
588     public Long getUebHealthCheckReconnectIntervalInSeconds() {
589         return uebHealthCheckReconnectIntervalInSeconds;
590     }
591
592     public void setUebHealthCheckReconnectIntervalInSeconds(Long uebHealthCheckReconnectIntervalInSeconds) {
593         this.uebHealthCheckReconnectIntervalInSeconds = uebHealthCheckReconnectIntervalInSeconds;
594     }
595
596     public Long getUebHealthCheckReadTimeout() {
597         return uebHealthCheckReadTimeout;
598     }
599
600     public void setUebHealthCheckReadTimeout(Long uebHealthCheckReadTimeout) {
601         this.uebHealthCheckReadTimeout = uebHealthCheckReadTimeout;
602     }
603
604     public String getWorkloadContext() {
605         return workloadContext;
606     }
607
608     public void setWorkloadContext(String workloadContext) {
609         this.workloadContext = workloadContext;
610     }
611
612     public EnvironmentContext getEnvironmentContext() {
613         return environmentContext;
614     }
615
616     public void setEnvironmentContext(EnvironmentContext environmentContext) {
617         this.environmentContext = environmentContext;
618     }
619
620     public static class ElasticSearchConfig {
621
622         List<IndicesTimeFrequencyEntry> indicesTimeFrequency;
623
624         public List<IndicesTimeFrequencyEntry> getIndicesTimeFrequency() {
625             return indicesTimeFrequency;
626         }
627
628         public void setIndicesTimeFrequency(List<IndicesTimeFrequencyEntry> indicesTimeFrequency) {
629             this.indicesTimeFrequency = indicesTimeFrequency;
630         }
631
632         public static class IndicesTimeFrequencyEntry {
633
634             String indexPrefix;
635             String creationPeriod;
636
637             public String getIndexPrefix() {
638                 return indexPrefix;
639             }
640
641             public void setIndexPrefix(String indexPrefix) {
642                 this.indexPrefix = indexPrefix;
643             }
644
645             public String getCreationPeriod() {
646                 return creationPeriod;
647             }
648
649             public void setCreationPeriod(String creationPeriod) {
650                 this.creationPeriod = creationPeriod;
651             }
652         }
653     }
654
655     public static class CassandrConfig {
656
657         List<String> cassandraHosts;
658         String localDataCenter;
659         Long reconnectTimeout;
660                 Integer socketReadTimeout;
661                 Integer socketConnectTimeout;
662         List<KeyspaceConfig> keySpaces;
663         boolean authenticate;
664         String username;
665         String password;
666         boolean ssl;
667         String truststorePath;
668         String truststorePassword;
669
670         public String getLocalDataCenter() {
671             return localDataCenter;
672         }
673
674         public void setLocalDataCenter(String localDataCenter) {
675             this.localDataCenter = localDataCenter;
676         }
677
678         public boolean isAuthenticate() {
679             return authenticate;
680         }
681
682         public void setAuthenticate(boolean authenticate) {
683             this.authenticate = authenticate;
684         }
685
686         public String getUsername() {
687             return username;
688         }
689
690         public void setUsername(String username) {
691             this.username = username;
692         }
693
694         public String getPassword() {
695             return password;
696         }
697
698         public void setPassword(String password) {
699             this.password = password;
700         }
701
702         public boolean isSsl() {
703             return ssl;
704         }
705
706         public void setSsl(boolean ssl) {
707             this.ssl = ssl;
708         }
709
710         public String getTruststorePath() {
711             return truststorePath;
712         }
713
714         public void setTruststorePath(String truststorePath) {
715             this.truststorePath = truststorePath;
716         }
717
718         public String getTruststorePassword() {
719             return truststorePassword;
720         }
721
722         public void setTruststorePassword(String truststorePassword) {
723             this.truststorePassword = truststorePassword;
724         }
725
726         public Long getReconnectTimeout() {
727             return reconnectTimeout;
728         }
729
730         public void setReconnectTimeout(Long reconnectTimeout) {
731             this.reconnectTimeout = reconnectTimeout;
732         }
733
734                 public Integer getSocketReadTimeout() { return socketReadTimeout; }
735
736                 public void setSocketReadTimeout(Integer socketReadTimeout) { this.socketReadTimeout = socketReadTimeout;}
737
738                 public Integer getSocketConnectTimeout() {      return socketConnectTimeout;}
739
740                 public void setSocketConnectTimeout(Integer socketConnectTimeout) { this.socketConnectTimeout = socketConnectTimeout;   }
741
742         public List<String> getCassandraHosts() {
743             return cassandraHosts;
744         }
745
746         public void setCassandraHosts(List<String> cassandraHosts) {
747             this.cassandraHosts = cassandraHosts;
748         }
749
750         public List<KeyspaceConfig> getKeySpaces() {
751             return keySpaces;
752         }
753
754         public void setKeySpaces(List<KeyspaceConfig> cassandraConfig) {
755             this.keySpaces = cassandraConfig;
756         }
757
758         public static class KeyspaceConfig {
759
760             String name;
761             String replicationStrategy;
762             List<String> replicationInfo;
763
764             public String getName() {
765                 return name;
766             }
767
768             public void setName(String name) {
769                 this.name = name;
770             }
771
772             public String getReplicationStrategy() {
773                 return replicationStrategy;
774             }
775
776             public void setReplicationStrategy(String replicationStrategy) {
777                 this.replicationStrategy = replicationStrategy;
778             }
779
780             public List<String> getReplicationInfo() {
781                 return replicationInfo;
782             }
783
784             public void setReplicationInfo(List<String> replicationInfo) {
785                 this.replicationInfo = replicationInfo;
786             }
787         }
788     }
789
790     public static class SwitchoverDetectorConfig {
791
792         String gBeFqdn;
793         String gFeFqdn;
794         String beVip;
795         String feVip;
796         int beResolveAttempts;
797         int feResolveAttempts;
798         Boolean enabled;
799         long interval;
800         String changePriorityUser;
801         String changePriorityPassword;
802         String publishNetworkUrl;
803         String publishNetworkBody;
804         Map<String, GroupInfo> groups;
805
806         public String getgBeFqdn() {
807             return gBeFqdn;
808         }
809
810         public void setgBeFqdn(String gBeFqdn) {
811             this.gBeFqdn = gBeFqdn;
812         }
813
814         public String getgFeFqdn() {
815             return gFeFqdn;
816         }
817
818         public void setgFeFqdn(String gFeFqdn) {
819             this.gFeFqdn = gFeFqdn;
820         }
821
822         public String getBeVip() {
823             return beVip;
824         }
825
826         public void setBeVip(String beVip) {
827             this.beVip = beVip;
828         }
829
830         public String getFeVip() {
831             return feVip;
832         }
833
834         public void setFeVip(String feVip) {
835             this.feVip = feVip;
836         }
837
838         public int getBeResolveAttempts() {
839             return beResolveAttempts;
840         }
841
842         public void setBeResolveAttempts(int beResolveAttempts) {
843             this.beResolveAttempts = beResolveAttempts;
844         }
845
846         public int getFeResolveAttempts() {
847             return feResolveAttempts;
848         }
849
850         public void setFeResolveAttempts(int feResolveAttempts) {
851             this.feResolveAttempts = feResolveAttempts;
852         }
853
854         public Boolean getEnabled() {
855             return enabled;
856         }
857
858         public void setEnabled(Boolean enabled) {
859             this.enabled = enabled;
860         }
861
862         public long getInterval() {
863             return interval;
864         }
865
866         public void setInterval(long interval) {
867             this.interval = interval;
868         }
869
870         public String getChangePriorityUser() {
871             return changePriorityUser;
872         }
873
874         public void setChangePriorityUser(String changePriorityUser) {
875             this.changePriorityUser = changePriorityUser;
876         }
877
878         public String getChangePriorityPassword() {
879             return changePriorityPassword;
880         }
881
882         public void setChangePriorityPassword(String changePriorityPassword) {
883             this.changePriorityPassword = changePriorityPassword;
884         }
885
886         public String getPublishNetworkUrl() {
887             return publishNetworkUrl;
888         }
889
890         public void setPublishNetworkUrl(String publishNetworkUrl) {
891             this.publishNetworkUrl = publishNetworkUrl;
892         }
893
894         public String getPublishNetworkBody() {
895             return publishNetworkBody;
896         }
897
898         public void setPublishNetworkBody(String publishNetworkBody) {
899             this.publishNetworkBody = publishNetworkBody;
900         }
901
902         public Map<String, GroupInfo> getGroups() {
903             return groups;
904         }
905
906         public void setGroups(Map<String, GroupInfo> groups) {
907             this.groups = groups;
908         }
909
910         public static class GroupInfo {
911
912             String changePriorityUrl;
913             String changePriorityBody;
914
915             public String getChangePriorityUrl() {
916                 return changePriorityUrl;
917             }
918
919             public void setChangePriorityUrl(String changePriorityUrl) {
920                 this.changePriorityUrl = changePriorityUrl;
921             }
922
923             public String getChangePriorityBody() {
924                 return changePriorityBody;
925             }
926
927             public void setChangePriorityBody(String changePriorityBody) {
928                 this.changePriorityBody = changePriorityBody;
929             }
930         }
931
932     }
933
934     public static class BeMonitoringConfig {
935
936         Boolean enabled;
937         Boolean isProxy;
938         Integer probeIntervalInSeconds;
939
940         public Boolean getEnabled() {
941             return enabled;
942         }
943
944         public void setEnabled(Boolean enabled) {
945             this.enabled = enabled;
946         }
947
948         public Boolean getIsProxy() {
949             return isProxy;
950         }
951
952         public void setIsProxy(Boolean isProxy) {
953             this.isProxy = isProxy;
954         }
955
956         public Integer getProbeIntervalInSeconds() {
957             return probeIntervalInSeconds;
958         }
959
960         public Integer getProbeIntervalInSeconds(int defaultVal) {
961             return probeIntervalInSeconds == null ? defaultVal : probeIntervalInSeconds;
962         }
963
964         public void setProbeIntervalInSeconds(Integer probeIntervalInSeconds) {
965             this.probeIntervalInSeconds = probeIntervalInSeconds;
966         }
967     }
968
969     public static class ArtifactTypeConfig {
970
971         List<String> acceptedTypes;
972         List<String> validForResourceTypes;
973
974         public List<String> getValidForResourceTypes() {
975             return validForResourceTypes;
976         }
977
978         public void setValidForResourceTypes(List<String> validForResourceTypes) {
979             this.validForResourceTypes = validForResourceTypes;
980         }
981
982         public List<String> getAcceptedTypes() {
983             return acceptedTypes;
984         }
985
986         public void setAcceptedTypes(List<String> acceptedTypes) {
987             this.acceptedTypes = acceptedTypes;
988         }
989     }
990
991     public static class OnboardingConfig {
992
993         String protocol = "http";
994         String host;
995         Integer port;
996         String downloadCsarUri;
997         String healthCheckUri;
998
999         public String getProtocol() {
1000             return protocol;
1001         }
1002
1003         public void setProtocol(String protocol) {
1004             this.protocol = protocol;
1005         }
1006
1007         public String getHost() {
1008             return host;
1009         }
1010
1011         public void setHost(String host) {
1012             this.host = host;
1013         }
1014
1015         public Integer getPort() {
1016             return port;
1017         }
1018
1019         public void setPort(Integer port) {
1020             this.port = port;
1021         }
1022
1023         public String getDownloadCsarUri() {
1024             return downloadCsarUri;
1025         }
1026
1027         public void setDownloadCsarUri(String downloadCsarUri) {
1028             this.downloadCsarUri = downloadCsarUri;
1029         }
1030
1031         public String getHealthCheckUri() {
1032             return healthCheckUri;
1033         }
1034
1035         public void setHealthCheckUri(String healthCheckUri) {
1036             this.healthCheckUri = healthCheckUri;
1037         }
1038
1039         @Override
1040         public String toString() {
1041             return "OnboardingConfig [protocol=" + protocol + ", host=" + host + ", port=" + port + ", downloadCsarUri="
1042                     + downloadCsarUri + "]";
1043         }
1044
1045     }
1046
1047     public DcaeConfig getDcae() {
1048         return dcae;
1049     }
1050
1051     public void setDcae(DcaeConfig dcae) {
1052         this.dcae = dcae;
1053     }
1054
1055     public static class DcaeConfig {
1056
1057         String protocol = "http";
1058         String host;
1059         Integer port;
1060         String healthCheckUri;
1061
1062         public String getProtocol() {
1063             return protocol;
1064         }
1065
1066         public void setProtocol(String protocol) {
1067             this.protocol = protocol;
1068         }
1069
1070         public String getHost() {
1071             return host;
1072         }
1073
1074         public void setHost(String host) {
1075             this.host = host;
1076         }
1077
1078         public Integer getPort() {
1079             return port;
1080         }
1081
1082         public void setPort(Integer port) {
1083             this.port = port;
1084         }
1085
1086         public String getHealthCheckUri() {
1087             return healthCheckUri;
1088         }
1089
1090         public void setHealthCheckUri(String healthCheckUri) {
1091             this.healthCheckUri = healthCheckUri;
1092         }
1093     }
1094
1095     public static class EcompPortalConfig {
1096
1097         private String defaultFunctionalMenu;
1098
1099         public String getDefaultFunctionalMenu() {
1100             return defaultFunctionalMenu;
1101         }
1102
1103         public void setDefaultFunctionalMenu(String defaultFunctionalMenu) {
1104             this.defaultFunctionalMenu = defaultFunctionalMenu;
1105         }
1106
1107         @Override
1108         public String toString() {
1109             return "EcompPortalConfig [defaultFunctionalMenu=" + defaultFunctionalMenu + "]";
1110         }
1111
1112     }
1113
1114     public static class ApplicationL1CacheConfig {
1115
1116         ApplicationL1CacheInfo datatypes;
1117
1118         public ApplicationL1CacheInfo getDatatypes() {
1119             return datatypes;
1120         }
1121
1122         public void setDatatypes(ApplicationL1CacheInfo datatypes) {
1123             this.datatypes = datatypes;
1124         }
1125
1126         @Override
1127         public String toString() {
1128             return "ApplicationL1CacheConfig [datatypes=" + datatypes + "]";
1129         }
1130
1131     }
1132
1133     public static class ApplicationL2CacheConfig {
1134
1135         boolean enabled;
1136         ApplicationL1CacheCatalogInfo catalogL1Cache;
1137
1138         QueueInfo queue;
1139
1140         public boolean isEnabled() {
1141             return enabled;
1142         }
1143
1144         public void setEnabled(boolean enabled) {
1145             this.enabled = enabled;
1146         }
1147
1148         public ApplicationL1CacheCatalogInfo getCatalogL1Cache() {
1149             return catalogL1Cache;
1150         }
1151
1152         public void setCatalogL1Cache(ApplicationL1CacheCatalogInfo catalogL1Cache) {
1153             this.catalogL1Cache = catalogL1Cache;
1154         }
1155
1156         public QueueInfo getQueue() {
1157             return queue;
1158         }
1159
1160         public void setQueue(QueueInfo queue) {
1161             this.queue = queue;
1162         }
1163
1164         @Override
1165         public String toString() {
1166             return "ApplicationL2CacheConfig [enabled=" + enabled + ", catalogL1Cache=" + catalogL1Cache + "]";
1167         }
1168
1169     }
1170
1171     public static class ToscaValidatorsConfig {
1172
1173         private Integer stringMaxLength;
1174
1175         public Integer getStringMaxLength() {
1176             return stringMaxLength;
1177         }
1178
1179         public void setStringMaxLength(Integer stringMaxLength) {
1180             this.stringMaxLength = stringMaxLength;
1181         }
1182
1183         @Override
1184         public String toString() {
1185             return "ToscaValidatorsConfig [stringMaxLength=" + stringMaxLength + "]";
1186         }
1187
1188     }
1189
1190     public static class ApplicationL1CacheInfo {
1191
1192         Boolean enabled;
1193         Integer firstRunDelay;
1194         Integer pollIntervalInSec;
1195
1196         public Boolean getEnabled() {
1197             return enabled;
1198         }
1199
1200         public void setEnabled(Boolean enabled) {
1201             this.enabled = enabled;
1202         }
1203
1204         public Integer getFirstRunDelay() {
1205             return firstRunDelay;
1206         }
1207
1208         public void setFirstRunDelay(Integer firstRunDelay) {
1209             this.firstRunDelay = firstRunDelay;
1210         }
1211
1212         public Integer getPollIntervalInSec() {
1213             return pollIntervalInSec;
1214         }
1215
1216         public void setPollIntervalInSec(Integer pollIntervalInSec) {
1217             this.pollIntervalInSec = pollIntervalInSec;
1218         }
1219
1220         @Override
1221         public String toString() {
1222             return "ApplicationL1CacheInfo [enabled=" + enabled + ", firstRunDelay=" + firstRunDelay
1223                     + ", pollIntervalInSec=" + pollIntervalInSec + "]";
1224         }
1225     }
1226
1227     public static class ApplicationL1CacheCatalogInfo {
1228
1229         Boolean enabled;
1230         Integer resourcesSizeInCache;
1231         Integer servicesSizeInCache;
1232         Integer productsSizeInCache;
1233
1234         public Boolean getEnabled() {
1235             return enabled;
1236         }
1237
1238         public void setEnabled(Boolean enabled) {
1239             this.enabled = enabled;
1240         }
1241
1242         public Integer getResourcesSizeInCache() {
1243             return resourcesSizeInCache;
1244         }
1245
1246         public void setResourcesSizeInCache(Integer resourcesSizeInCache) {
1247             this.resourcesSizeInCache = resourcesSizeInCache;
1248         }
1249
1250         public Integer getServicesSizeInCache() {
1251             return servicesSizeInCache;
1252         }
1253
1254         public void setServicesSizeInCache(Integer servicesSizeInCache) {
1255             this.servicesSizeInCache = servicesSizeInCache;
1256         }
1257
1258         public Integer getProductsSizeInCache() {
1259             return productsSizeInCache;
1260         }
1261
1262         public void setProductsSizeInCache(Integer productsSizeInCache) {
1263             this.productsSizeInCache = productsSizeInCache;
1264         }
1265
1266         @Override
1267         public String toString() {
1268             return "ApplicationL1CacheCatalogInfo [enabled=" + enabled + ", resourcesSizeInCache="
1269                     + resourcesSizeInCache + ", servicesSizeInCache=" + servicesSizeInCache + ", productsSizeInCache="
1270                     + productsSizeInCache + "]";
1271         }
1272
1273     }
1274
1275     public static class QueueInfo {
1276         Integer numberOfCacheWorkers;
1277         Integer waitOnShutDownInMinutes;
1278         Integer syncIntervalInSecondes;
1279
1280         public Integer getWaitOnShutDownInMinutes() {
1281             return waitOnShutDownInMinutes;
1282         }
1283
1284         public void setWaitOnShutDownInMinutes(Integer waitOnShutDownInMinutes) {
1285             this.waitOnShutDownInMinutes = waitOnShutDownInMinutes;
1286         }
1287
1288         public Integer getSyncIntervalInSecondes() {
1289             return syncIntervalInSecondes;
1290         }
1291
1292         public void setSyncIntervalInSecondes(Integer syncIntervalInSecondes) {
1293             this.syncIntervalInSecondes = syncIntervalInSecondes;
1294         }
1295
1296         public Integer getNumberOfCacheWorkers() {
1297             return numberOfCacheWorkers;
1298         }
1299
1300         public void setNumberOfCacheWorkers(Integer numberOfCacheWorkers) {
1301             this.numberOfCacheWorkers = numberOfCacheWorkers;
1302         }
1303
1304         @Override
1305         public String toString() {
1306             return "QueueInfo[" + "waitOnShutDownInMinutes=" + waitOnShutDownInMinutes + ", syncIntervalInSecondes="
1307                     + syncIntervalInSecondes + ", numberOfCacheWorkers=" + this.numberOfCacheWorkers + ']';
1308         }
1309     }
1310
1311     public static class EnvironmentContext {
1312
1313         String defaultValue;
1314         List<String> validValues;
1315
1316         public String getDefaultValue() {
1317             return defaultValue;
1318         }
1319
1320         public void setDefaultValue(String defaultValue) {
1321             this.defaultValue = defaultValue;
1322         }
1323
1324         public List<String> getValidValues() {
1325             return validValues;
1326         }
1327
1328         public void setValidValues(List<String> validValues) {
1329             this.validValues = validValues;
1330         }
1331     }
1332
1333
1334
1335     public CleanComponentsConfiguration getCleanComponentsConfiguration() {
1336         return cleanComponentsConfiguration;
1337     }
1338
1339     public void setCleanComponentsConfiguration(CleanComponentsConfiguration cleanComponentsConfiguration) {
1340         this.cleanComponentsConfiguration = cleanComponentsConfiguration;
1341     }
1342
1343     @Override
1344     public String toString() {
1345         return new StringBuilder().append(format("backend host: %s%n", beFqdn))
1346                 .append(format("backend http port: %s%n", beHttpPort))
1347                 .append(format("backend ssl port: %s%n", beSslPort)).append(format("backend context: %s%n", beContext))
1348                 .append(format("backend protocol: %s%n", beProtocol)).append(format("Version: %s%n", version))
1349                 .append(format("Released: %s%n", released)).append(format("Supported protocols: %s%n", protocols))
1350                 .append(format("Users: %s%n", users)).append(format("Neo4j: %s%n", neo4j))
1351                 .append(format("ElasticSearch: %s%n", elasticSearch))
1352                 .append(format("Titan Cfg File: %s%n", titanCfgFile))
1353                 .append(format("Titan In memory: %s%n", titanInMemoryGraph))
1354                 .append(format("Titan lock timeout: %s%n", titanLockTimeout))
1355                 .append(format("Titan reconnect interval seconds: %s%n", titanReconnectIntervalInSeconds))
1356                 .append(format("excludeResourceCategory: %s%n", excludeResourceCategory))
1357                 .append(format("informationalResourceArtifacts: %s%n", informationalResourceArtifacts))
1358                 .append(format("deploymentResourceArtifacts: %s%n", deploymentResourceArtifacts))
1359                 .append(format("informationalServiceArtifacts: %s%n", informationalServiceArtifacts))
1360                 .append(format("Supported artifacts types: %s%n", artifactTypes))
1361                 .append(format("Supported license types: %s%n", licenseTypes))
1362                 .append(format("Additional information Maximum number of preoperties: %s%n",
1363                         additionalInformationMaxNumberOfKeys))
1364                 .append(format("Default Heat Artifact Timeout in Minutes: %s%n", defaultHeatArtifactTimeoutMinutes))
1365                 .append(format("URLs For HTTP Requests that will not be automatically logged : %s%n", unLoggedUrls))
1366                 .append(format("Service Api Artifacts: %s%n", serviceApiArtifacts))
1367                 .append(format("heat env artifact header: %s%n", heatEnvArtifactHeader))
1368                 .append(format("heat env artifact footer: %s%n", heatEnvArtifactFooter))
1369                                 .append(format("onboarding: %s%n", onboarding))
1370                                 .append(format("tosca conformance level: %s%n", toscaConformanceLevel))
1371                                 .toString();
1372     }
1373
1374     public List<String> getUnLoggedUrls() {
1375         return unLoggedUrls;
1376     }
1377
1378     public void setUnLoggedUrls(List<String> unLoggedUrls) {
1379         this.unLoggedUrls = unLoggedUrls;
1380     }
1381
1382     public Map<String, Object> getDeploymentResourceArtifacts() {
1383         return deploymentResourceArtifacts;
1384     }
1385
1386     public void setDeploymentResourceArtifacts(Map<String, Object> deploymentResourceArtifacts) {
1387         this.deploymentResourceArtifacts = deploymentResourceArtifacts;
1388     }
1389
1390     public String getHeatEnvArtifactHeader() {
1391         return heatEnvArtifactHeader;
1392     }
1393
1394     public void setHeatEnvArtifactHeader(String heatEnvArtifactHeader) {
1395         this.heatEnvArtifactHeader = heatEnvArtifactHeader;
1396     }
1397
1398     public String getHeatEnvArtifactFooter() {
1399         return heatEnvArtifactFooter;
1400     }
1401
1402     public void setHeatEnvArtifactFooter(String heatEnvArtifactFooter) {
1403         this.heatEnvArtifactFooter = heatEnvArtifactFooter;
1404     }
1405
1406     public Map<String, Object> getDeploymentResourceInstanceArtifacts() {
1407         return deploymentResourceInstanceArtifacts;
1408     }
1409
1410     public void setDeploymentResourceInstanceArtifacts(Map<String, Object> deploymentResourceInstanceArtifacts) {
1411         this.deploymentResourceInstanceArtifacts = deploymentResourceInstanceArtifacts;
1412     }
1413
1414     public String getArtifactsIndex() {
1415         return artifactsIndex;
1416     }
1417
1418     public void setArtifactsIndex(String artifactsIndex) {
1419         this.artifactsIndex = artifactsIndex;
1420     }
1421
1422     public Map<String, ArtifactTypeConfig> getResourceInformationalDeployedArtifacts() {
1423         return resourceInformationalDeployedArtifacts;
1424     }
1425
1426     public void setResourceInformationalDeployedArtifacts(
1427             Map<String, ArtifactTypeConfig> resourceInformationalDeployedArtifacts) {
1428         this.resourceInformationalDeployedArtifacts = resourceInformationalDeployedArtifacts;
1429     }
1430
1431     public List<String> getResourceTypes() {
1432         return resourceTypes;
1433     }
1434
1435     public void setResourceTypes(List<String> resourceTypes) {
1436         this.resourceTypes = resourceTypes;
1437     }
1438
1439     public String getToscaFilesDir() {
1440         return toscaFilesDir;
1441     }
1442
1443     public void setToscaFilesDir(String toscaFilesDir) {
1444         this.toscaFilesDir = toscaFilesDir;
1445     }
1446
1447     public String getHeatTranslatorPath() {
1448         return heatTranslatorPath;
1449     }
1450
1451     public void setHeatTranslatorPath(String heatTranslatorPath) {
1452         this.heatTranslatorPath = heatTranslatorPath;
1453     }
1454
1455     public Map<String, Set<String>> getRequirementsToFulfillBeforeCert() {
1456         return requirementsToFulfillBeforeCert;
1457     }
1458
1459     public void setRequirementsToFulfillBeforeCert(Map<String, Set<String>> requirementsToFulfillBeforeCert) {
1460         this.requirementsToFulfillBeforeCert = requirementsToFulfillBeforeCert;
1461     }
1462
1463     public Map<String, Set<String>> getCapabilitiesToConsumeBeforeCert() {
1464         return capabilitiesToConsumeBeforeCert;
1465     }
1466
1467     public void setCapabilitiesToConsumeBeforeCert(Map<String, Set<String>> capabilitiesToConsumeBeforeCert) {
1468         this.capabilitiesToConsumeBeforeCert = capabilitiesToConsumeBeforeCert;
1469     }
1470
1471     public OnboardingConfig getOnboarding() {
1472         return onboarding;
1473     }
1474
1475     public void setOnboarding(OnboardingConfig onboarding) {
1476         this.onboarding = onboarding;
1477     }
1478
1479     public EcompPortalConfig getEcompPortal() {
1480         return ecompPortal;
1481     }
1482
1483     public void setEcompPortal(EcompPortalConfig ecompPortal) {
1484         this.ecompPortal = ecompPortal;
1485     }
1486
1487     public ToscaValidatorsConfig getToscaValidators() {
1488         return toscaValidators;
1489     }
1490
1491     public void setToscaValidators(ToscaValidatorsConfig toscaValidators) {
1492         this.toscaValidators = toscaValidators;
1493     }
1494
1495     public boolean isDisableAudit() {
1496         return disableAudit;
1497     }
1498
1499     public void setDisableAudit(boolean enableAudit) {
1500         this.disableAudit = enableAudit;
1501     }
1502
1503     public Map<String, ArtifactTypeConfig> getResourceInformationalArtifacts() {
1504         return resourceInformationalArtifacts;
1505     }
1506
1507     public void setResourceInformationalArtifacts(Map<String, ArtifactTypeConfig> resourceInformationalArtifacts) {
1508         this.resourceInformationalArtifacts = resourceInformationalArtifacts;
1509     }
1510
1511     public Map<String, VfModuleProperty> getVfModuleProperties() {
1512         return vfModuleProperties;
1513     }
1514
1515     public void setVfModuleProperties(Map<String, VfModuleProperty> vfModuleProperties) {
1516         this.vfModuleProperties = vfModuleProperties;
1517     }
1518
1519     public String getToscaConformanceLevel() {
1520         return toscaConformanceLevel;
1521     }
1522
1523     public void setToscaConformanceLevel(String toscaConformanceLevel) {
1524         this.toscaConformanceLevel = toscaConformanceLevel;
1525     }
1526
1527     public String getMinToscaConformanceLevel() {
1528         return minToscaConformanceLevel;
1529     }
1530
1531     public void setMinToscaConformanceLevel(String toscaConformanceLevel) {
1532         this.minToscaConformanceLevel = toscaConformanceLevel;
1533     }
1534
1535     public static class VfModuleProperty {
1536         private String forBaseModule;
1537         private String forNonBaseModule;
1538         public String getForBaseModule() {
1539             return forBaseModule;
1540         }
1541         public void setForBaseModule(String forBaseModule) {
1542             this.forBaseModule = forBaseModule;
1543         }
1544         public String getForNonBaseModule() {
1545             return forNonBaseModule;
1546         }
1547         public void setForNonBaseModule(String forNonBaseModule) {
1548             this.forNonBaseModule = forNonBaseModule;
1549         }
1550     }
1551
1552     public List<Map<String, Map<String, String>>> getDefaultImports() {
1553         return defaultImports;
1554     }
1555
1556     public void setDefaultImports(List<Map<String, Map<String, String>>> defaultImports) {
1557         this.defaultImports = defaultImports;
1558     }
1559
1560     public Map<String, List<String>> getResourcesForUpgrade() {
1561         return resourcesForUpgrade;
1562     }
1563
1564     public void setResourcesForUpgrade(Map<String, List<String>> resourcesForUpgrade) {
1565         this.resourcesForUpgrade = resourcesForUpgrade;
1566     }
1567
1568     @SuppressWarnings("unchecked")
1569     public static <K,V> Map<K,V> safeGetCapsInsensitiveMap(Map<K,V> map) {
1570         return map == null ? emptyMap() : new CaseInsensitiveMap(map);
1571     }
1572
1573
1574     public List<String> getHealthStatusExclude() {
1575         return healthStatusExclude;
1576     }
1577
1578     public void setHealthStatusExclude(List<String> healthStatusExclude) {
1579         this.healthStatusExclude = healthStatusExclude;
1580     }
1581
1582 }