d4ca5af0f2a785b284cbbe57b041ee15c3fc5b09
[so.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * SO
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
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.onap.so.adapters.vevnfm.configuration;
22
23 import org.onap.so.adapters.vevnfm.constant.NotificationVnfFilterType;
24 import org.springframework.beans.factory.annotation.Value;
25 import org.springframework.context.annotation.Configuration;
26
27 @Configuration
28 public class ConfigProperties {
29
30     @Value("${vevnfmadapter.vnf-filter-json}")
31     private String vevnfmadapterVnfFilterJson;
32
33     @Value("${vevnfmadapter.endpoint}")
34     private String vevnfmadapterEndpoint;
35
36     @Value("${mso.key}")
37     private String msoKey;
38
39     @Value("${aai.endpoint}")
40     private String aaiEndpoint;
41
42     @Value("${aai.auth}")
43     private String aaiAuth;
44
45     @Value("${vnfm.default-endpoint}")
46     private String vnfmDefaultEndpoint;
47
48     @Value("${vnfm.subscription}")
49     private String vnfmSubscription;
50
51     @Value("${vnfm.notification}")
52     private String vnfmNotification;
53
54     @Value("${notification.vnf-filter-type}")
55     private NotificationVnfFilterType notificationVnfFilterType;
56
57     @Value("${dmaap.endpoint}")
58     private String dmaapEndpoint;
59
60     @Value("${dmaap.topic}")
61     private String dmaapTopic;
62
63     @Value("${dmaap.closed-loop.control.name}")
64     private String dmaapClosedLoopControlName;
65
66     @Value("${dmaap.version}")
67     private String dmaapVersion;
68
69     @Value("${spring.security.usercredentials[0].username}")
70     private String springSecurityUsername;
71
72     @Value("${spring.security.usercredentials[0].openpass}")
73     private String springSecurityOpenpass;
74
75     public String getVevnfmadapterVnfFilterJson() {
76         return vevnfmadapterVnfFilterJson;
77     }
78
79     public String getVevnfmadapterEndpoint() {
80         return vevnfmadapterEndpoint;
81     }
82
83     public String getMsoKey() {
84         return msoKey;
85     }
86
87     public String getAaiEndpoint() {
88         return aaiEndpoint;
89     }
90
91     public String getAaiAuth() {
92         return aaiAuth;
93     }
94
95     public String getVnfmDefaultEndpoint() {
96         return vnfmDefaultEndpoint;
97     }
98
99     public String getVnfmSubscription() {
100         return vnfmSubscription;
101     }
102
103     public String getVnfmNotification() {
104         return vnfmNotification;
105     }
106
107     public NotificationVnfFilterType getNotificationVnfFilterType() {
108         return notificationVnfFilterType;
109     }
110
111     public String getDmaapEndpoint() {
112         return dmaapEndpoint;
113     }
114
115     public String getDmaapTopic() {
116         return dmaapTopic;
117     }
118
119     public String getDmaapClosedLoopControlName() {
120         return dmaapClosedLoopControlName;
121     }
122
123     public String getDmaapVersion() {
124         return dmaapVersion;
125     }
126
127     public String getSpringSecurityUsername() {
128         return springSecurityUsername;
129     }
130
131     public String getSpringSecurityOpenpass() {
132         return springSecurityOpenpass;
133     }
134 }