2 * Copyright 2016-2017, Nokia Corporation
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package org.onap.vfc.nfvo.driver.vnfm.svnfm.common.bo;
19 import org.springframework.beans.factory.annotation.Value;
20 import org.springframework.stereotype.Component;
23 public class AdaptorEnv {
27 // service name and version of MSB services AAI/LCM/Catalog configured in application.properties
28 @Value("${aaiServiceNameInMsb}")
29 private String aaiServiceNameInMsb;
31 @Value("${aaiVersionInMsb}")
32 private String aaiVersionInMsb;
34 @Value("${lcmServiceNameInMsb}")
35 private String lcmServiceNameInMsb;
37 @Value("${lcmVersionInMsb}")
38 private String lcmVersionInMsb;
40 @Value("${catalogServiceNameInMsb}")
41 private String catalogServiceNameInMsb;
43 @Value("${catalogVersionInMsb}")
44 private String catalogVersionInMsb;
46 //Following uriFront is from msb query
48 private String aaiUrlInMsb;
49 private String aaiApiUriFront;
51 private String lcmUrlInMsb;
52 private String lcmApiUriFront;
54 private String catalogUrlInMsb;
55 private String catalogApiUriFront;
57 //cbamApiFront is from aai query
58 private String cbamApiUriFront;
59 private String cbamUserName;
60 private String cbamPassword;
63 private String msbApiUriFront;
65 // for retrieving token from CBAM, configured in application.properties
66 @Value("${grantType}")
67 private String grantType;
70 private String clientId;
72 @Value("${clientSecret}")
73 private String clientSecret;
75 public String getAaiServiceNameInMsb() {
76 return aaiServiceNameInMsb;
79 public void setAaiServiceNameInMsb(String aaiServiceNameInMsb) {
80 this.aaiServiceNameInMsb = aaiServiceNameInMsb;
83 public String getAaiVersionInMsb() {
84 return aaiVersionInMsb;
87 public void setAaiVersionInMsb(String aaiVersionInMsb) {
88 this.aaiVersionInMsb = aaiVersionInMsb;
91 public String getLcmServiceNameInMsb() {
92 return lcmServiceNameInMsb;
95 public void setLcmServiceNameInMsb(String lcmServiceNameInMsb) {
96 this.lcmServiceNameInMsb = lcmServiceNameInMsb;
99 public String getLcmVersionInMsb() {
100 return lcmVersionInMsb;
103 public void setLcmVersionInMsb(String lcmVersionInMsb) {
104 this.lcmVersionInMsb = lcmVersionInMsb;
107 public String getCatalogServiceNameInMsb() {
108 return catalogServiceNameInMsb;
111 public void setCatalogServiceNameInMsb(String catalogServiceNameInMsb) {
112 this.catalogServiceNameInMsb = catalogServiceNameInMsb;
115 public String getCatalogVersionInMsb() {
116 return catalogVersionInMsb;
119 public void setCatalogVersionInMsb(String catalogVersionInMsb) {
120 this.catalogVersionInMsb = catalogVersionInMsb;
123 public String getAaiApiUriFront() {
124 return aaiApiUriFront;
127 public void setAaiApiUriFront(String aaiApiUriFront) {
128 this.aaiApiUriFront = aaiApiUriFront;
131 public String getCatalogApiUriFront() {
132 return catalogApiUriFront;
135 public void setCatalogApiUriFront(String catalogApiUriFront) {
136 this.catalogApiUriFront = catalogApiUriFront;
139 public String getCbamApiUriFront() {
140 return cbamApiUriFront;
143 public void setCbamApiUriFront(String cbamApiUriFront) {
144 this.cbamApiUriFront = cbamApiUriFront;
147 public String getGrantType() {
151 public void setGrantType(String grantType) {
152 this.grantType = grantType;
155 public String getClientId() {
159 public void setClientId(String clientId) {
160 this.clientId = clientId;
163 public String getClientSecret() {
167 public void setClientSecret(String clientSecret) {
168 this.clientSecret = clientSecret;
171 public String getMsbIp() {
175 public void setMsbIp(String msbIp) {
179 public int getMsbPort() {
183 public void setMsbPort(int msbPort) {
184 this.msbPort = msbPort;
187 public String getAaiUrlInMsb() {
191 public void setAaiUrlInMsb(String aaiUrlInMsb) {
192 this.aaiUrlInMsb = aaiUrlInMsb;
195 public String getCatalogUrlInMsb() {
196 return catalogUrlInMsb;
199 public void setCatalogUrlInMsb(String catalogUrlInMsb) {
200 this.catalogUrlInMsb = catalogUrlInMsb;
203 public String getLcmUrlInMsb() {
207 public void setLcmUrlInMsb(String lcmUrlInMsb) {
208 this.lcmUrlInMsb = lcmUrlInMsb;
211 public String getLcmApiUriFront() {
212 return lcmApiUriFront;
215 public void setLcmApiUriFront(String lcmApiUriFront) {
216 this.lcmApiUriFront = lcmApiUriFront;
219 public String getMsbApiUriFront() {
220 return msbApiUriFront;
223 public void setMsbApiUriFront(String msbApiUriFront) {
224 this.msbApiUriFront = msbApiUriFront;
227 public String getCbamUserName() {
231 public void setCbamUserName(String cbamUserName) {
232 this.cbamUserName = cbamUserName;
235 public String getCbamPassword() {
239 public void setCbamPassword(String cbamPassword) {
240 this.cbamPassword = cbamPassword;