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;
60 // for retrieving token from CBAM, configured in application.properties
61 @Value("${grantType}")
62 private String grantType;
65 private String clientId;
67 @Value("${clientSecret}")
68 private String clientSecret;
70 public String getAaiServiceNameInMsb() {
71 return aaiServiceNameInMsb;
74 public void setAaiServiceNameInMsb(String aaiServiceNameInMsb) {
75 this.aaiServiceNameInMsb = aaiServiceNameInMsb;
78 public String getAaiVersionInMsb() {
79 return aaiVersionInMsb;
82 public void setAaiVersionInMsb(String aaiVersionInMsb) {
83 this.aaiVersionInMsb = aaiVersionInMsb;
86 public String getLcmServiceNameInMsb() {
87 return lcmServiceNameInMsb;
90 public void setLcmServiceNameInMsb(String lcmServiceNameInMsb) {
91 this.lcmServiceNameInMsb = lcmServiceNameInMsb;
94 public String getLcmVersionInMsb() {
95 return lcmVersionInMsb;
98 public void setLcmVersionInMsb(String lcmVersionInMsb) {
99 this.lcmVersionInMsb = lcmVersionInMsb;
102 public String getCatalogServiceNameInMsb() {
103 return catalogServiceNameInMsb;
106 public void setCatalogServiceNameInMsb(String catalogServiceNameInMsb) {
107 this.catalogServiceNameInMsb = catalogServiceNameInMsb;
110 public String getCatalogVersionInMsb() {
111 return catalogVersionInMsb;
114 public void setCatalogVersionInMsb(String catalogVersionInMsb) {
115 this.catalogVersionInMsb = catalogVersionInMsb;
118 public String getAaiApiUriFront() {
119 return aaiApiUriFront;
122 public void setAaiApiUriFront(String aaiApiUriFront) {
123 this.aaiApiUriFront = aaiApiUriFront;
126 public String getCatalogApiUriFront() {
127 return catalogApiUriFront;
130 public void setCatalogApiUriFront(String catalogApiUriFront) {
131 this.catalogApiUriFront = catalogApiUriFront;
134 public String getCbamApiUriFront() {
135 return cbamApiUriFront;
138 public void setCbamApiUriFront(String cbamApiUriFront) {
139 this.cbamApiUriFront = cbamApiUriFront;
142 public String getGrantType() {
146 public void setGrantType(String grantType) {
147 this.grantType = grantType;
150 public String getClientId() {
154 public void setClientId(String clientId) {
155 this.clientId = clientId;
158 public String getClientSecret() {
162 public void setClientSecret(String clientSecret) {
163 this.clientSecret = clientSecret;
166 public String getMsbIp() {
170 public void setMsbIp(String msbIp) {
174 public int getMsbPort() {
178 public void setMsbPort(int msbPort) {
179 this.msbPort = msbPort;
182 public String getAaiUrlInMsb() {
186 public void setAaiUrlInMsb(String aaiUrlInMsb) {
187 this.aaiUrlInMsb = aaiUrlInMsb;
190 public String getCatalogUrlInMsb() {
191 return catalogUrlInMsb;
194 public void setCatalogUrlInMsb(String catalogUrlInMsb) {
195 this.catalogUrlInMsb = catalogUrlInMsb;
198 public String getLcmUrlInMsb() {
202 public void setLcmUrlInMsb(String lcmUrlInMsb) {
203 this.lcmUrlInMsb = lcmUrlInMsb;
206 public String getLcmApiUriFront() {
207 return lcmApiUriFront;
210 public void setLcmApiUriFront(String lcmApiUriFront) {
211 this.lcmApiUriFront = lcmApiUriFront;