]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/msg/process/SlcExecutionStepsRequest.java
Do some clean up in SLC
[gpl/argeo-slc.git] / runtime / org.argeo.slc.core / src / main / java / org / argeo / slc / msg / process / SlcExecutionStepsRequest.java
index 7492338ef340fef27e09b7981ac7cb7ef81a3329..8ede69fb3863a903a791a72c65fe6b1b2b0f8cbf 100644 (file)
@@ -19,10 +19,11 @@ package org.argeo.slc.msg.process;
 import java.io.Serializable;\r
 import java.util.ArrayList;\r
 import java.util.List;\r
-import java.util.Vector;\r
 \r
+import org.argeo.slc.execution.ExecutionStep;\r
 import org.argeo.slc.process.SlcExecutionStep;\r
 \r
+@Deprecated\r
 public class SlcExecutionStepsRequest implements Serializable {\r
        private static final long serialVersionUID = 6243880315234605390L;\r
        private String slcExecutionUuid;\r
@@ -33,16 +34,17 @@ public class SlcExecutionStepsRequest implements Serializable {
        }\r
 \r
        public SlcExecutionStepsRequest(String slcExecutionUuid,\r
-                       List<SlcExecutionStep> steps) {\r
+                       List<ExecutionStep> steps) {\r
                this.slcExecutionUuid = slcExecutionUuid;\r
-               this.steps = steps;\r
+               for (ExecutionStep step : steps) {\r
+                       this.steps.add((SlcExecutionStep) step);\r
+               }\r
        }\r
 \r
-       public SlcExecutionStepsRequest(String slcExecutionUuid,\r
-                       SlcExecutionStep step) {\r
+       public SlcExecutionStepsRequest(String slcExecutionUuid, ExecutionStep step) {\r
                this.slcExecutionUuid = slcExecutionUuid;\r
-               List<SlcExecutionStep> steps = new Vector<SlcExecutionStep>();\r
-               steps.add(step);\r
+               List<SlcExecutionStep> steps = new ArrayList<SlcExecutionStep>();\r
+               steps.add((SlcExecutionStep) step);\r
                this.steps = steps;\r
        }\r
 \r