[MSO-8] Update the maven dependency
[so.git] / bpmn / MSOCommonBPMN / src / main / java / org / openecomp / mso / bpmn / common / workflow / service / VnfAdapterNotifyServiceImpl.java
@@ -18,7 +18,7 @@
  * ============LICENSE_END=========================================================
  */
 
-package org.openecomp.mso.bpmn.gamma.workflow.service;
+package org.openecomp.mso.bpmn.common.workflow.service;
 
 import java.util.HashMap;
 import java.util.Map;
@@ -36,16 +36,15 @@ import org.camunda.bpm.BpmPlatform;
 import org.camunda.bpm.engine.MismatchingMessageCorrelationException;
 import org.camunda.bpm.engine.ProcessEngineServices;
 import org.camunda.bpm.engine.RuntimeService;
-
-import com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.CreateVnfNotification;
-import com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.DeleteVnfNotification;
-import com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.MsoExceptionCategory;
-import com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.QueryVnfNotification;
-import com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.RollbackVnfNotification;
-import com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.UpdateVnfNotification;
-import com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.VnfAdapterNotify;
-import com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.VnfRollback;
-import com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.VnfStatus;
+import org.openecomp.mso.bpmn.common.adapter.vnf.CreateVnfNotification;
+import org.openecomp.mso.bpmn.common.adapter.vnf.DeleteVnfNotification;
+import org.openecomp.mso.bpmn.common.adapter.vnf.MsoExceptionCategory;
+import org.openecomp.mso.bpmn.common.adapter.vnf.QueryVnfNotification;
+import org.openecomp.mso.bpmn.common.adapter.vnf.RollbackVnfNotification;
+import org.openecomp.mso.bpmn.common.adapter.vnf.UpdateVnfNotification;
+import org.openecomp.mso.bpmn.common.adapter.vnf.VnfAdapterNotify;
+import org.openecomp.mso.bpmn.common.adapter.vnf.VnfRollback;
+import org.openecomp.mso.bpmn.common.adapter.vnf.VnfStatus;
 import org.openecomp.mso.logger.MessageEnum;
 import org.openecomp.mso.logger.MsoLogger;
 
@@ -54,7 +53,7 @@ import org.openecomp.mso.logger.MsoLogger;
  * TODO: Add addition VnfAdapterNotify Methods for remaining VnfAdapterNotify operations.
  */
 
-@WebService(serviceName = "vnfAdapterNotify", targetNamespace = "http://com.att.mso/vnfNotify")
+@WebService(serviceName = "vnfAdapterNotify", targetNamespace = "http://org.openecomp.mso/vnfNotify")
 public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
 
        private static MsoLogger msoLogger = MsoLogger.getMsoLogger(MsoLogger.Catalog.BPEL);
@@ -74,8 +73,8 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
      */
     @WebMethod(operationName = "rollbackVnfNotification")
     @Oneway
-    @RequestWrapper(localName = "rollbackVnfNotification", targetNamespace = "http://com.att.mso/vnfNotify", className = "org.openecomp.mso.adapters.vnf.async.client.RollbackVnfNotification")
-    @Action(input = "http://com.att.mso/notify/adapterNotify/rollbackVnfNotificationRequest")
+    @RequestWrapper(localName = "rollbackVnfNotification", targetNamespace = "http://org.openecomp.mso/vnfNotify", className = "org.openecomp.mso.adapters.vnf.async.client.RollbackVnfNotification")
+    @Action(input = "http://org.openecomp.mso/notify/adapterNotify/rollbackVnfNotificationRequest")
     public void rollbackVnfNotification(
         @WebParam(name = "messageId", targetNamespace = "")
         String messageId,
@@ -160,8 +159,8 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
      */
     @WebMethod(operationName = "queryVnfNotification")
     @Oneway
-    @RequestWrapper(localName = "queryVnfNotification", targetNamespace = "http://com.att.mso/vnfNotify", className = "org.openecomp.mso.adapters.vnf.async.client.QueryVnfNotification")
-    @Action(input = "http://com.att.mso/notify/adapterNotify/queryVnfNotificationRequest")
+    @RequestWrapper(localName = "queryVnfNotification", targetNamespace = "http://org.openecomp.mso/vnfNotify", className = "org.openecomp.mso.adapters.vnf.async.client.QueryVnfNotification")
+    @Action(input = "http://org.openecomp.mso/notify/adapterNotify/queryVnfNotificationRequest")
     public void queryVnfNotification(
         @WebParam(name = "messageId", targetNamespace = "")
         String messageId,
@@ -178,7 +177,7 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
         @WebParam(name = "status", targetNamespace = "")
         VnfStatus status,
         @WebParam(name = "outputs", targetNamespace = "")
-        com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.QueryVnfNotification.Outputs outputs){
+        org.openecomp.mso.bpmn.common.adapter.vnf.QueryVnfNotification.Outputs outputs){
 
        QueryVnfNotification queryVnfNotification = new QueryVnfNotification();
 
@@ -195,8 +194,8 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
        ProcessEngineServices pes = getProcessEngineServices();
                RuntimeService runtimeService = pes.getRuntimeService();
 
-               msoLogger.setServiceName("MSO." + "vnf Adapter Query");
-               msoLogger.setLogContext(messageId, "N/A");
+               MsoLogger.setServiceName("MSO." + "vnf Adapter Query");
+               MsoLogger.setLogContext(messageId, "N/A");
                msoLogger.debug(logMarker + "Received QueryVnfNotification" + queryVnfNotification.toString());
 
                System.out.println("Received QueryVnfNotification : " + queryVnfNotification.toString());
@@ -253,8 +252,8 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
      */
        @WebMethod(operationName = "createVnfNotification")
     @Oneway
-    @RequestWrapper(localName = "createVnfNotification", targetNamespace = "http://com.att.mso/vnfNotify", className = "org.openecomp.mso.adapters.vnf.async.client.CreateVnfNotification")
-    @Action(input = "http://com.att.mso/notify/adapterNotify/createVnfNotificationRequest")
+    @RequestWrapper(localName = "createVnfNotification", targetNamespace = "http://org.openecomp.mso/vnfNotify", className = "org.openecomp.mso.adapters.vnf.async.client.CreateVnfNotification")
+    @Action(input = "http://org.openecomp.mso/notify/adapterNotify/createVnfNotificationRequest")
        public void createVnfNotification(
                        @WebParam(name = "messageId", targetNamespace = "")
                String messageId,
@@ -267,7 +266,7 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
                @WebParam(name = "vnfId", targetNamespace = "")
                String vnfId,
                @WebParam(name = "outputs", targetNamespace = "")
-               com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.CreateVnfNotification.Outputs outputs,
+               org.openecomp.mso.bpmn.common.adapter.vnf.CreateVnfNotification.Outputs outputs,
                @WebParam(name = "rollback", targetNamespace = "")
                VnfRollback rollback){
 
@@ -284,8 +283,8 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
                ProcessEngineServices pes = getProcessEngineServices();
                RuntimeService runtimeService = pes.getRuntimeService();
 
-               msoLogger.setServiceName("MSO." + "vnf Adapter Create");
-               msoLogger.setLogContext(messageId, "N/A");
+               MsoLogger.setServiceName("MSO." + "vnf Adapter Create");
+               MsoLogger.setLogContext(messageId, "N/A");
                msoLogger.debug(logMarker + "Received CreateVnfNotification - " + createVnfNotification.toString());
 
                long startTime = System.currentTimeMillis();
@@ -341,8 +340,8 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
      */
        @WebMethod(operationName = "updateVnfNotification")
     @Oneway
-    @RequestWrapper(localName = "updateVnfNotification", targetNamespace = "http://com.att.mso/vnfNotify", className = "org.openecomp.mso.adapters.vnf.async.client.UpdateVnfNotification")
-    @Action(input = "http://com.att.mso/notify/adapterNotify/updateVnfNotificationRequest")
+    @RequestWrapper(localName = "updateVnfNotification", targetNamespace = "http://org.openecomp.mso/vnfNotify", className = "org.openecomp.mso.adapters.vnf.async.client.UpdateVnfNotification")
+    @Action(input = "http://org.openecomp.mso/notify/adapterNotify/updateVnfNotificationRequest")
     public void updateVnfNotification(
         @WebParam(name = "messageId", targetNamespace = "")
         String messageId,
@@ -353,7 +352,7 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
         @WebParam(name = "errorMessage", targetNamespace = "")
         String errorMessage,
         @WebParam(name = "outputs", targetNamespace = "")
-        com.att.domain2.workflow.vnf.async.adapter.callback.wsdl.v1.UpdateVnfNotification.Outputs outputs,
+        org.openecomp.mso.bpmn.common.adapter.vnf.UpdateVnfNotification.Outputs outputs,
         @WebParam(name = "rollback", targetNamespace = "")
         VnfRollback rollback){
 
@@ -369,8 +368,8 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
                ProcessEngineServices pes = getProcessEngineServices();
                RuntimeService runtimeService = pes.getRuntimeService();
 
-               msoLogger.setServiceName("MSO." + "vnf Adapter Update");
-               msoLogger.setLogContext(messageId, "N/A");
+               MsoLogger.setServiceName("MSO." + "vnf Adapter Update");
+               MsoLogger.setLogContext(messageId, "N/A");
                msoLogger.debug(logMarker + "Received UpdateVnfNotification - " + updateVnfNotification.toString());
 
                long startTime = System.currentTimeMillis();
@@ -423,11 +422,11 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
      * @param completed
      */
 
-    //@WebService(serviceName="VNFAdapterDeleteCallbackV1", targetNamespace="http://com.att.mso/vnfNotify")
+    //@WebService(serviceName="VNFAdapterDeleteCallbackV1", targetNamespace="http://org.openecomp.mso/vnfNotify")
     @WebMethod(operationName = "deleteVnfNotification")
     @Oneway
-    @RequestWrapper(localName = "deleteVnfNotification", targetNamespace = "http://com.att.mso/vnfNotify", className = "org.openecomp.mso.adapters.vnf.async.client.DeleteVnfNotification")
-    @Action(input = "http://com.att.mso/notify/adapterNotify/deleteVnfNotificationRequest")
+    @RequestWrapper(localName = "deleteVnfNotification", targetNamespace = "http://org.openecomp.mso/vnfNotify", className = "org.openecomp.mso.adapters.vnf.async.client.DeleteVnfNotification")
+    @Action(input = "http://org.openecomp.mso/notify/adapterNotify/deleteVnfNotificationRequest")
     public void deleteVnfNotification(
         @WebParam(name = "messageId", targetNamespace = "")
         String messageId,
@@ -438,7 +437,7 @@ public class VnfAdapterNotifyServiceImpl implements VnfAdapterNotify{
         @WebParam(name = "errorMessage", targetNamespace = "")
         String errorMessage) {
 
-               //Callback URL to use http://localhost:8080/mso/services/VNFAdapterDeleteCallbackV1
+               //Callback URL to use http://localhost:28080/mso/services/VNFAdapterDeleteCallbackV1
 
        //DeleteVnfNotification Class
        DeleteVnfNotification deleteVnfNotification = new DeleteVnfNotification();