Update css file name in conf.py
[multicloud/framework.git] / artifactbroker / plugins / reception-plugins / src / main / java / org / onap / policy / distribution / reception / handling / sdc / SdcConfiguration.java
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 import org.onap.sdc.api.consumer.IConfiguration;
25
26 /**
27  * This class represents the configurations needed for SDC Client.
28  *
29  */
30 public class SdcConfiguration implements IConfiguration {
31
32     private SdcReceptionHandlerConfigurationParameterGroup configParameters = null;
33
34     /**
35      * Constructor for instantiating {@link SdcConfiguration}.
36      *
37      * @param configParameters the SDC Client configuration parameters
38      */
39     public SdcConfiguration(final SdcReceptionHandlerConfigurationParameterGroup configParameters) {
40         this.configParameters = configParameters;
41     }
42
43     @Override
44     public String getAsdcAddress() {
45         return configParameters.getAsdcAddress();
46     }
47
48     @Override
49     public List<String> getMsgBusAddress() {
50         return configParameters.getMessageBusAddress();
51     }
52
53     @Override
54     public String getUser() {
55         return configParameters.getUser();
56     }
57
58     @Override
59     public String getPassword() {
60         return configParameters.getPassword();
61     }
62
63     @Override
64     public int getPollingInterval() {
65         return configParameters.getPollingInterval();
66     }
67
68     @Override
69     public int getPollingTimeout() {
70         return configParameters.getPollingTimeout();
71     }
72
73     @Override
74     public List<String> getRelevantArtifactTypes() {
75         return configParameters.getArtifactTypes();
76     }
77
78     @Override
79     public String getConsumerGroup() {
80         return configParameters.getConsumerGroup();
81     }
82
83     @Override
84     public String getEnvironmentName() {
85         return configParameters.getEnvironmentName();
86     }
87
88     @Override
89     public String getConsumerID() {
90         return configParameters.getConsumerId();
91     }
92
93     @Override
94     public String getKeyStorePassword() {
95         return configParameters.getKeyStorePassword();
96     }
97
98     @Override
99     public String getKeyStorePath() {
100         return configParameters.getKeyStorePath();
101     }
102
103     @Override
104     public boolean activateServerTLSAuth() {
105         return configParameters.isActiveServerTlsAuth();
106     }
107
108     @Override
109     public boolean isFilterInEmptyResources() {
110         return configParameters.isFilterInEmptyResources();
111     }
112
113     @Override
114     public Boolean isUseHttpsWithDmaap() {
115         return configParameters.isUseHttpsWithDmaap();
116     }
117 }