86d2a550394e0459c1223902033a7cf1d653ab54
[policy/distribution.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2018 Intel. All rights reserved.
4  * ================================================================================
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *      http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * SPDX-License-Identifier: Apache-2.0
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.distribution.reception.handling.sdc;
22
23 import java.util.List;
24
25 import org.onap.sdc.api.consumer.IConfiguration;
26
27 /**
28  * Properties for the handling Sdc
29  *
30  */
31 public class PSSDConfiguration implements IConfiguration {
32
33     // Configuration file structure
34
35     // Configuration file properties
36     private PSSDConfigurationParametersGroup configParameters = null;
37
38     /**
39      * Original constructor
40      *
41      * @param configParameters properties needed to be configured for the model loader
42      */
43     public PSSDConfiguration(final PSSDConfigurationParametersGroup configParameters) {
44         this.configParameters = configParameters;
45
46     }
47
48
49     @Override
50     public String getAsdcAddress() {
51         return configParameters.getAsdcAddress();
52     }
53
54     @Override
55     public List<String> getMsgBusAddress() {
56         return configParameters.getMsgBusAddress();
57     }
58
59     @Override
60     public String getUser() {
61         return configParameters.getUser();
62     }
63
64     @Override
65     public String getPassword() {
66         return configParameters.getPassword();
67     }
68
69     @Override
70     public int getPollingInterval() {
71         return configParameters.getPollingInterval();
72     }
73
74     @Override
75     public int getPollingTimeout() {
76         return configParameters.getPollingTimeout();
77     }
78
79     @Override
80     public List<String> getRelevantArtifactTypes() {
81         return configParameters.getArtifactTypes();
82     }
83
84     @Override
85     public String getConsumerGroup() {
86         return configParameters.getConsumerGroup();
87     }
88
89     @Override
90     public String getEnvironmentName() {
91         return configParameters.getEnvironmentName();
92     }
93
94     @Override
95     public String getConsumerID() {
96         return configParameters.getConsumerID();
97     }
98
99     @Override
100     public String getKeyStorePassword() {
101         return configParameters.getKeyStorePassword();
102     }
103
104     @Override
105     public String getKeyStorePath() {
106         return configParameters.getKeyStorePath();
107     }
108
109     @Override
110     public boolean activateServerTLSAuth() {
111         return configParameters.activateServerTLSAuth();
112     }
113
114     @Override
115     public boolean isFilterInEmptyResources() {
116         return configParameters.isFilterInEmptyResources();
117     }
118
119     @Override
120     public Boolean isUseHttpsWithDmaap() {
121         return configParameters.isUseHttpsWithDmaap();
122     }
123
124
125 }