X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=esr-mgr%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fexternalservice%2Faai%2FExternalSystemProxy.java;h=eda2eb2e899c1a339a291d5c3e8976a219ca15d7;hb=cab18110a636691b277ab94a5d6e202c275a8dfc;hp=2f790cd676bcd353f80534f0fcf808a506991814;hpb=c7951d5bca29746e3ca27bc334add16393587ea9;p=aai%2Fesr-server.git diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/ExternalSystemProxy.java b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/ExternalSystemProxy.java index 2f790cd..eda2eb2 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/ExternalSystemProxy.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/ExternalSystemProxy.java @@ -16,6 +16,7 @@ package org.onap.aai.esr.externalservice.aai; import org.glassfish.jersey.client.ClientConfig; +import org.onap.aai.esr.entity.aai.EsrThirdpartySdncDetail; import org.onap.aai.esr.entity.aai.EsrVnfmDetail; import com.eclipsesource.jaxrs.consumer.ConsumerFactory; @@ -34,7 +35,7 @@ public class ExternalSystemProxy { } public static void registerVnfm(String vnfmId, EsrVnfmDetail esrVnfmDetail) throws Exception { - ClientConfig config = new ClientConfig(new RegisterVnfmProvider()); + ClientConfig config = new ClientConfig(new VnfmRegisterProvider()); IExternalSystem registerVnfmServiceproxy = ConsumerFactory .createConsumer(AaiAdapterConfig.getExternalSystemAddr(), config, IExternalSystem.class); registerVnfmServiceproxy.registerVNFM(transactionId, fromAppId, authorization, vnfmId, @@ -44,4 +45,24 @@ public class ExternalSystemProxy { public static String queryVnfmDetail(String vnfmId) throws Exception { return externalSystemproxy.queryVNFMDetail(transactionId, fromAppId, authorization, vnfmId); } + + public static String queryVnfmList() throws Exception { + return externalSystemproxy.queryVNFMList(transactionId, fromAppId, authorization); + } + + public static void deleteVnfm(String vnfmId, String resourceVersion) throws Exception { + externalSystemproxy.deleteVNFM(transactionId, fromAppId, authorization, vnfmId, resourceVersion); + } + + public static void registerSdnc(String thirdpartySdncId, EsrThirdpartySdncDetail esrSdncDetail) throws Exception { + ClientConfig config = new ClientConfig(new ThirdpartySdncRegisterProvider()); + IExternalSystem registerVnfmServiceproxy = ConsumerFactory + .createConsumer(AaiAdapterConfig.getExternalSystemAddr(), config, IExternalSystem.class); + registerVnfmServiceproxy.registerThirdpartySdnc(transactionId, fromAppId, authorization, thirdpartySdncId, + esrSdncDetail); + } + + public static String queryThirdpartySdncDetail(String thirdpartySdncId) throws Exception{ + return externalSystemproxy.queryThirdpartySdncDetail(transactionId, fromAppId, authorization, thirdpartySdncId); + } }