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
index 343e517..4a9570b 100644 (file)
@@ -21,69 +21,195 @@ import org.springframework.stereotype.Component;
 
 @Component
 public class AdaptorEnv {
-       @Value("${nslcmApiUriFront}")
-       private String nslcmApiUriFront;
+       private String msbIp;
+       private int msbPort;
        
-       @Value("${catalogApiUriFront}")
-       private String catalogApiUriFront;
+       // service name and version of MSB services AAI/LCM/Catalog configured in application.properties
+       @Value("${aaiServiceNameInMsb}")
+       private String aaiServiceNameInMsb;
+
+       @Value("${aaiVersionInMsb}")
+       private String aaiVersionInMsb;
+
+       @Value("${lcmServiceNameInMsb}")
+       private String lcmServiceNameInMsb;
+
+       @Value("${lcmVersionInMsb}")
+       private String lcmVersionInMsb;
+
+       @Value("${catalogServiceNameInMsb}")
+       private String catalogServiceNameInMsb;
+
+       @Value("${catalogVersionInMsb}")
+       private String catalogVersionInMsb;
+
+       //Following uriFront is from msb query
        
-       @Value("${cbamApiUriFront}")
-       private String cbamApiUriFront;
+       private String aaiUrlInMsb;
+       private String aaiApiUriFront;
        
-       @Value("${msbApiUriFront}")
-       private String msbApiUriFront;
+       private String lcmUrlInMsb;
+       private String lcmApiUriFront;
+       
+       private String catalogUrlInMsb;
+       private String catalogApiUriFront;
        
-       //for retrieving token from CBAM
+       //cbamApiFront is from aai query
+       private String cbamApiUriFront;
+
+       // for retrieving token from CBAM, configured in application.properties
        @Value("${grantType}")
        private String grantType;
-       
+
        @Value("${clientId}")
        private String clientId;
-       
+
        @Value("${clientSecret}")
        private String clientSecret;
-       
-       public String getNslcmApiUriFront() {
-               return nslcmApiUriFront;
+
+       public String getAaiServiceNameInMsb() {
+               return aaiServiceNameInMsb;
+       }
+
+       public void setAaiServiceNameInMsb(String aaiServiceNameInMsb) {
+               this.aaiServiceNameInMsb = aaiServiceNameInMsb;
+       }
+
+       public String getAaiVersionInMsb() {
+               return aaiVersionInMsb;
+       }
+
+       public void setAaiVersionInMsb(String aaiVersionInMsb) {
+               this.aaiVersionInMsb = aaiVersionInMsb;
+       }
+
+       public String getLcmServiceNameInMsb() {
+               return lcmServiceNameInMsb;
+       }
+
+       public void setLcmServiceNameInMsb(String lcmServiceNameInMsb) {
+               this.lcmServiceNameInMsb = lcmServiceNameInMsb;
+       }
+
+       public String getLcmVersionInMsb() {
+               return lcmVersionInMsb;
+       }
+
+       public void setLcmVersionInMsb(String lcmVersionInMsb) {
+               this.lcmVersionInMsb = lcmVersionInMsb;
+       }
+
+       public String getCatalogServiceNameInMsb() {
+               return catalogServiceNameInMsb;
+       }
+
+       public void setCatalogServiceNameInMsb(String catalogServiceNameInMsb) {
+               this.catalogServiceNameInMsb = catalogServiceNameInMsb;
+       }
+
+       public String getCatalogVersionInMsb() {
+               return catalogVersionInMsb;
+       }
+
+       public void setCatalogVersionInMsb(String catalogVersionInMsb) {
+               this.catalogVersionInMsb = catalogVersionInMsb;
        }
-       public void setNslcmApiUriFront(String nslcmApiUriFront) {
-               this.nslcmApiUriFront = nslcmApiUriFront;
+
+       public String getAaiApiUriFront() {
+               return aaiApiUriFront;
        }
+
+       public void setAaiApiUriFront(String aaiApiUriFront) {
+               this.aaiApiUriFront = aaiApiUriFront;
+       }
+
        public String getCatalogApiUriFront() {
                return catalogApiUriFront;
        }
+
        public void setCatalogApiUriFront(String catalogApiUriFront) {
                this.catalogApiUriFront = catalogApiUriFront;
        }
+
        public String getCbamApiUriFront() {
                return cbamApiUriFront;
        }
+
        public void setCbamApiUriFront(String cbamApiUriFront) {
                this.cbamApiUriFront = cbamApiUriFront;
        }
+
        public String getGrantType() {
                return grantType;
        }
+
        public void setGrantType(String grantType) {
                this.grantType = grantType;
        }
+
        public String getClientId() {
                return clientId;
        }
+
        public void setClientId(String clientId) {
                this.clientId = clientId;
        }
+
        public String getClientSecret() {
                return clientSecret;
        }
+
        public void setClientSecret(String clientSecret) {
                this.clientSecret = clientSecret;
        }
-       public String getMsbApiUriFront() {
-               return msbApiUriFront;
+
+       public String getMsbIp() {
+               return msbIp;
+       }
+
+       public void setMsbIp(String msbIp) {
+               this.msbIp = msbIp;
        }
-       public void setMsbApiUriFront(String msbApiUriFront) {
-               this.msbApiUriFront = msbApiUriFront;
+
+       public int getMsbPort() {
+               return msbPort;
        }
-       
+
+       public void setMsbPort(int msbPort) {
+               this.msbPort = msbPort;
+       }
+
+       public String getAaiUrlInMsb() {
+               return aaiUrlInMsb;
+       }
+
+       public void setAaiUrlInMsb(String aaiUrlInMsb) {
+               this.aaiUrlInMsb = aaiUrlInMsb;
+       }
+
+       public String getCatalogUrlInMsb() {
+               return catalogUrlInMsb;
+       }
+
+       public void setCatalogUrlInMsb(String catalogUrlInMsb) {
+               this.catalogUrlInMsb = catalogUrlInMsb;
+       }
+
+       public String getLcmUrlInMsb() {
+               return lcmUrlInMsb;
+       }
+
+       public void setLcmUrlInMsb(String lcmUrlInMsb) {
+               this.lcmUrlInMsb = lcmUrlInMsb;
+       }
+
+       public String getLcmApiUriFront() {
+               return lcmApiUriFront;
+       }
+
+       public void setLcmApiUriFront(String lcmApiUriFront) {
+               this.lcmApiUriFront = lcmApiUriFront;
+       }
+
+
 }