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