2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2020 Samsung. 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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.so.adapters.vevnfm.configuration;
23 import org.onap.so.adapters.vevnfm.constant.NotificationVnfFilterType;
24 import org.springframework.beans.factory.annotation.Value;
25 import org.springframework.context.annotation.Configuration;
28 public class ConfigProperties {
30 @Value("${vevnfmadapter.vnf-filter-json}")
31 private String vevnfmadapterVnfFilterJson;
33 @Value("${vevnfmadapter.endpoint}")
34 private String vevnfmadapterEndpoint;
37 private String msoKey;
39 @Value("${aai.endpoint}")
40 private String aaiEndpoint;
43 private String aaiAuth;
45 @Value("${vnfm.default-endpoint}")
46 private String vnfmDefaultEndpoint;
48 @Value("${vnfm.subscription}")
49 private String vnfmSubscription;
51 @Value("${vnfm.notification}")
52 private String vnfmNotification;
54 @Value("${notification.vnf-filter-type}")
55 private NotificationVnfFilterType notificationVnfFilterType;
57 @Value("${dmaap.endpoint}")
58 private String dmaapEndpoint;
60 @Value("${dmaap.topic}")
61 private String dmaapTopic;
63 @Value("${dmaap.closed-loop.control.name}")
64 private String dmaapClosedLoopControlName;
66 @Value("${dmaap.version}")
67 private String dmaapVersion;
69 @Value("${spring.security.usercredentials[0].username}")
70 private String springSecurityUsername;
72 @Value("${spring.security.usercredentials[0].openpass}")
73 private String springSecurityOpenpass;
75 public String getVevnfmadapterVnfFilterJson() {
76 return vevnfmadapterVnfFilterJson;
79 public String getVevnfmadapterEndpoint() {
80 return vevnfmadapterEndpoint;
83 public String getMsoKey() {
87 public String getAaiEndpoint() {
91 public String getAaiAuth() {
95 public String getVnfmDefaultEndpoint() {
96 return vnfmDefaultEndpoint;
99 public String getVnfmSubscription() {
100 return vnfmSubscription;
103 public String getVnfmNotification() {
104 return vnfmNotification;
107 public NotificationVnfFilterType getNotificationVnfFilterType() {
108 return notificationVnfFilterType;
111 public String getDmaapEndpoint() {
112 return dmaapEndpoint;
115 public String getDmaapTopic() {
119 public String getDmaapClosedLoopControlName() {
120 return dmaapClosedLoopControlName;
123 public String getDmaapVersion() {
127 public String getSpringSecurityUsername() {
128 return springSecurityUsername;
131 public String getSpringSecurityOpenpass() {
132 return springSecurityOpenpass;