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