+ IExternalSystem registerSdncServiceproxy = ConsumerFactory
+ .createConsumer(MsbConfig.getExternalSystemAddr(), config, IExternalSystem.class);
+ try {
+ registerSdncServiceproxy.registerThirdpartySdnc(transactionId, fromAppId, authorization, thirdpartySdncId,
+ esrSdncDetail);
+ } catch (Exception e) {
+ throw new ExtsysException("PUT thirdparty SDNC to A&AI failed.", e);
+ }
+ }
+
+ public static String queryThirdpartySdncDetail(String thirdpartySdncId) throws ExtsysException {
+ try {
+ return externalSystemproxy.queryThirdpartySdncDetail(transactionId, fromAppId, authorization, thirdpartySdncId);
+ } catch (Exception e) {
+ throw new ExtsysException("Query thirdparty SDNC detail from A&AI failed.", e);
+ }
+ }
+
+ public static String querySdncList() throws ExtsysException {
+ try {
+ return externalSystemproxy.queryThirdpartySdncList(transactionId, fromAppId, authorization);
+ } catch (Exception e) {
+ throw new ExtsysException("Query thirdparty SDNC list from A&AI failed.", e);
+ }
+ }
+
+ public static void deleteThirdpartySdnc(String sdncId, String resourceVersion) throws ExtsysException {
+ try {
+ externalSystemproxy.deleteThirdpartySdnc(transactionId, fromAppId, authorization, sdncId, resourceVersion);
+ } catch (Exception e) {
+ throw new ExtsysException("Delete thirdparty SDNC from A&AI failed.", e);
+ }
+ }
+
+ public static void registerEms(String emsId, EsrEmsDetail emsDetail) throws ExtsysException {
+ ClientConfig config = new ClientConfig(new EmsRegisterProvider());
+ IExternalSystem registerEmsServiceproxy = ConsumerFactory
+ .createConsumer(MsbConfig.getExternalSystemAddr(), config, IExternalSystem.class);
+ try {
+ registerEmsServiceproxy.registerEMS(transactionId, fromAppId, authorization, emsId,
+ emsDetail);
+ } catch (Exception e) {
+ throw new ExtsysException("PUT EMS to A&AI failed.", e);
+ }
+ }
+
+ public static String queryEmsDetail(String emsId) throws ExtsysException {
+ try {
+ return externalSystemproxy.queryEMSDetail(transactionId, fromAppId, authorization, emsId);
+ } catch (Exception e) {
+ throw new ExtsysException("Query EMS detail from A&AI failed.", e);
+ }
+ }
+
+ public static String queryEmsList() throws ExtsysException {
+ try {
+ return externalSystemproxy.queryEMSList(transactionId, fromAppId, authorization);
+ } catch (Exception e) {
+ throw new ExtsysException("Query EMS list from A&AI failed.", e);
+ }