]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.activemq/src/main/java/org/argeo/slc/jms/JmsSlcExecutionNotifier.java
Fix SLC
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.activemq / src / main / java / org / argeo / slc / jms / JmsSlcExecutionNotifier.java
index 256e837abf11c67897c38daf2c3976496a6eb4dc..7cb5906f4c24a08cddb775e785581e85a04d213a 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright (C) 2010 Mathieu Baudier <mbaudier@argeo.org>
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *         http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.argeo.slc.jms;
 
 import java.util.List;
@@ -7,6 +23,8 @@ import javax.jms.Destination;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.argeo.slc.UnsupportedException;
+import org.argeo.slc.execution.ExecutionProcess;
+import org.argeo.slc.execution.ExecutionStep;
 import org.argeo.slc.msg.process.SlcExecutionStatusRequest;
 import org.argeo.slc.msg.process.SlcExecutionStepsRequest;
 import org.argeo.slc.process.SlcExecution;
@@ -15,6 +33,7 @@ import org.argeo.slc.process.SlcExecutionStep;
 import org.springframework.jms.JmsException;
 import org.springframework.jms.core.JmsTemplate;
 
+@SuppressWarnings("deprecation")
 public class JmsSlcExecutionNotifier implements SlcExecutionNotifier {
        private final static Log log = LogFactory
                        .getLog(JmsSlcExecutionNotifier.class);
@@ -25,15 +44,15 @@ public class JmsSlcExecutionNotifier implements SlcExecutionNotifier {
 
        // private Destination updateStatusDestination;
 
-       public void updateStatus(SlcExecution slcExecution, String oldStatus,
+       public void updateStatus(ExecutionProcess slcExecution, String oldStatus,
                        String newStatus) {
                SlcExecutionStatusRequest req = new SlcExecutionStatusRequest(
                                slcExecution.getUuid(), newStatus);
                convertAndSend(req);
        }
 
-       public void addSteps(SlcExecution slcExecution,
-                       List<SlcExecutionStep> additionalSteps) {
+       public void addSteps(ExecutionProcess slcExecution,
+                       List<ExecutionStep> additionalSteps) {
                SlcExecutionStepsRequest req = new SlcExecutionStepsRequest(
                                slcExecution.getUuid(), additionalSteps);
                convertAndSend(req);