e9a706c55473c1eb68692a88760418395b29e742
[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         private String msbApiUriFront;
61
62         // for retrieving token from CBAM, configured in application.properties
63         @Value("${grantType}")
64         private String grantType;
65
66         @Value("${clientId}")
67         private String clientId;
68
69         @Value("${clientSecret}")
70         private String clientSecret;
71
72         public String getAaiServiceNameInMsb() {
73                 return aaiServiceNameInMsb;
74         }
75
76         public void setAaiServiceNameInMsb(String aaiServiceNameInMsb) {
77                 this.aaiServiceNameInMsb = aaiServiceNameInMsb;
78         }
79
80         public String getAaiVersionInMsb() {
81                 return aaiVersionInMsb;
82         }
83
84         public void setAaiVersionInMsb(String aaiVersionInMsb) {
85                 this.aaiVersionInMsb = aaiVersionInMsb;
86         }
87
88         public String getLcmServiceNameInMsb() {
89                 return lcmServiceNameInMsb;
90         }
91
92         public void setLcmServiceNameInMsb(String lcmServiceNameInMsb) {
93                 this.lcmServiceNameInMsb = lcmServiceNameInMsb;
94         }
95
96         public String getLcmVersionInMsb() {
97                 return lcmVersionInMsb;
98         }
99
100         public void setLcmVersionInMsb(String lcmVersionInMsb) {
101                 this.lcmVersionInMsb = lcmVersionInMsb;
102         }
103
104         public String getCatalogServiceNameInMsb() {
105                 return catalogServiceNameInMsb;
106         }
107
108         public void setCatalogServiceNameInMsb(String catalogServiceNameInMsb) {
109                 this.catalogServiceNameInMsb = catalogServiceNameInMsb;
110         }
111
112         public String getCatalogVersionInMsb() {
113                 return catalogVersionInMsb;
114         }
115
116         public void setCatalogVersionInMsb(String catalogVersionInMsb) {
117                 this.catalogVersionInMsb = catalogVersionInMsb;
118         }
119
120         public String getAaiApiUriFront() {
121                 return aaiApiUriFront;
122         }
123
124         public void setAaiApiUriFront(String aaiApiUriFront) {
125                 this.aaiApiUriFront = aaiApiUriFront;
126         }
127
128         public String getCatalogApiUriFront() {
129                 return catalogApiUriFront;
130         }
131
132         public void setCatalogApiUriFront(String catalogApiUriFront) {
133                 this.catalogApiUriFront = catalogApiUriFront;
134         }
135
136         public String getCbamApiUriFront() {
137                 return cbamApiUriFront;
138         }
139
140         public void setCbamApiUriFront(String cbamApiUriFront) {
141                 this.cbamApiUriFront = cbamApiUriFront;
142         }
143
144         public String getGrantType() {
145                 return grantType;
146         }
147
148         public void setGrantType(String grantType) {
149                 this.grantType = grantType;
150         }
151
152         public String getClientId() {
153                 return clientId;
154         }
155
156         public void setClientId(String clientId) {
157                 this.clientId = clientId;
158         }
159
160         public String getClientSecret() {
161                 return clientSecret;
162         }
163
164         public void setClientSecret(String clientSecret) {
165                 this.clientSecret = clientSecret;
166         }
167
168         public String getMsbIp() {
169                 return msbIp;
170         }
171
172         public void setMsbIp(String msbIp) {
173                 this.msbIp = msbIp;
174         }
175
176         public int getMsbPort() {
177                 return msbPort;
178         }
179
180         public void setMsbPort(int msbPort) {
181                 this.msbPort = msbPort;
182         }
183
184         public String getAaiUrlInMsb() {
185                 return aaiUrlInMsb;
186         }
187
188         public void setAaiUrlInMsb(String aaiUrlInMsb) {
189                 this.aaiUrlInMsb = aaiUrlInMsb;
190         }
191
192         public String getCatalogUrlInMsb() {
193                 return catalogUrlInMsb;
194         }
195
196         public void setCatalogUrlInMsb(String catalogUrlInMsb) {
197                 this.catalogUrlInMsb = catalogUrlInMsb;
198         }
199
200         public String getLcmUrlInMsb() {
201                 return lcmUrlInMsb;
202         }
203
204         public void setLcmUrlInMsb(String lcmUrlInMsb) {
205                 this.lcmUrlInMsb = lcmUrlInMsb;
206         }
207
208         public String getLcmApiUriFront() {
209                 return lcmApiUriFront;
210         }
211
212         public void setLcmApiUriFront(String lcmApiUriFront) {
213                 this.lcmApiUriFront = lcmApiUriFront;
214         }
215
216         public String getMsbApiUriFront() {
217                 return msbApiUriFront;
218         }
219
220         public void setMsbApiUriFront(String msbApiUriFront) {
221                 this.msbApiUriFront = msbApiUriFront;
222         }
223
224
225 }