Add Unit Tests.
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / main / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / common / bo / AdaptorEnv.java
1 /*
2  * Copyright 2016-2017, Nokia Corporation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.vfc.nfvo.driver.vnfm.svnfm.common.bo;
18
19 import org.springframework.beans.factory.annotation.Value;
20 import org.springframework.stereotype.Component;
21
22 @Component
23 public class AdaptorEnv {
24         private String msbIp;
25         private int msbPort;
26         
27         // service name and version of MSB services AAI/LCM/Catalog configured in application.properties
28         @Value("${aaiServiceNameInMsb}")
29         private String aaiServiceNameInMsb;
30
31         @Value("${aaiVersionInMsb}")
32         private String aaiVersionInMsb;
33
34         @Value("${lcmServiceNameInMsb}")
35         private String lcmServiceNameInMsb;
36
37         @Value("${lcmVersionInMsb}")
38         private String lcmVersionInMsb;
39
40         @Value("${catalogServiceNameInMsb}")
41         private String catalogServiceNameInMsb;
42
43         @Value("${catalogVersionInMsb}")
44         private String catalogVersionInMsb;
45
46         //Following uriFront is from msb query
47         
48         private String aaiUrlInMsb;
49         private String aaiApiUriFront;
50         
51         private String lcmUrlInMsb;
52         private String lcmApiUriFront;
53         
54         private String catalogUrlInMsb;
55         private String catalogApiUriFront;
56         
57         //cbamApiFront is from aai query
58         private String cbamApiUriFront;
59
60         // for retrieving token from CBAM, configured in application.properties
61         @Value("${grantType}")
62         private String grantType;
63
64         @Value("${clientId}")
65         private String clientId;
66
67         @Value("${clientSecret}")
68         private String clientSecret;
69
70         public String getAaiServiceNameInMsb() {
71                 return aaiServiceNameInMsb;
72         }
73
74         public void setAaiServiceNameInMsb(String aaiServiceNameInMsb) {
75                 this.aaiServiceNameInMsb = aaiServiceNameInMsb;
76         }
77
78         public String getAaiVersionInMsb() {
79                 return aaiVersionInMsb;
80         }
81
82         public void setAaiVersionInMsb(String aaiVersionInMsb) {
83                 this.aaiVersionInMsb = aaiVersionInMsb;
84         }
85
86         public String getLcmServiceNameInMsb() {
87                 return lcmServiceNameInMsb;
88         }
89
90         public void setLcmServiceNameInMsb(String lcmServiceNameInMsb) {
91                 this.lcmServiceNameInMsb = lcmServiceNameInMsb;
92         }
93
94         public String getLcmVersionInMsb() {
95                 return lcmVersionInMsb;
96         }
97
98         public void setLcmVersionInMsb(String lcmVersionInMsb) {
99                 this.lcmVersionInMsb = lcmVersionInMsb;
100         }
101
102         public String getCatalogServiceNameInMsb() {
103                 return catalogServiceNameInMsb;
104         }
105
106         public void setCatalogServiceNameInMsb(String catalogServiceNameInMsb) {
107                 this.catalogServiceNameInMsb = catalogServiceNameInMsb;
108         }
109
110         public String getCatalogVersionInMsb() {
111                 return catalogVersionInMsb;
112         }
113
114         public void setCatalogVersionInMsb(String catalogVersionInMsb) {
115                 this.catalogVersionInMsb = catalogVersionInMsb;
116         }
117
118         public String getAaiApiUriFront() {
119                 return aaiApiUriFront;
120         }
121
122         public void setAaiApiUriFront(String aaiApiUriFront) {
123                 this.aaiApiUriFront = aaiApiUriFront;
124         }
125
126         public String getCatalogApiUriFront() {
127                 return catalogApiUriFront;
128         }
129
130         public void setCatalogApiUriFront(String catalogApiUriFront) {
131                 this.catalogApiUriFront = catalogApiUriFront;
132         }
133
134         public String getCbamApiUriFront() {
135                 return cbamApiUriFront;
136         }
137
138         public void setCbamApiUriFront(String cbamApiUriFront) {
139                 this.cbamApiUriFront = cbamApiUriFront;
140         }
141
142         public String getGrantType() {
143                 return grantType;
144         }
145
146         public void setGrantType(String grantType) {
147                 this.grantType = grantType;
148         }
149
150         public String getClientId() {
151                 return clientId;
152         }
153
154         public void setClientId(String clientId) {
155                 this.clientId = clientId;
156         }
157
158         public String getClientSecret() {
159                 return clientSecret;
160         }
161
162         public void setClientSecret(String clientSecret) {
163                 this.clientSecret = clientSecret;
164         }
165
166         public String getMsbIp() {
167                 return msbIp;
168         }
169
170         public void setMsbIp(String msbIp) {
171                 this.msbIp = msbIp;
172         }
173
174         public int getMsbPort() {
175                 return msbPort;
176         }
177
178         public void setMsbPort(int msbPort) {
179                 this.msbPort = msbPort;
180         }
181
182         public String getAaiUrlInMsb() {
183                 return aaiUrlInMsb;
184         }
185
186         public void setAaiUrlInMsb(String aaiUrlInMsb) {
187                 this.aaiUrlInMsb = aaiUrlInMsb;
188         }
189
190         public String getCatalogUrlInMsb() {
191                 return catalogUrlInMsb;
192         }
193
194         public void setCatalogUrlInMsb(String catalogUrlInMsb) {
195                 this.catalogUrlInMsb = catalogUrlInMsb;
196         }
197
198         public String getLcmUrlInMsb() {
199                 return lcmUrlInMsb;
200         }
201
202         public void setLcmUrlInMsb(String lcmUrlInMsb) {
203                 this.lcmUrlInMsb = lcmUrlInMsb;
204         }
205
206         public String getLcmApiUriFront() {
207                 return lcmApiUriFront;
208         }
209
210         public void setLcmApiUriFront(String lcmApiUriFront) {
211                 this.lcmApiUriFront = lcmApiUriFront;
212         }
213
214
215 }