X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=runtime%2Forg.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fmsg%2Fprocess%2FSlcExecutionStepsRequest.java;h=5ae4727fa799f495a2bb0cac50a23f9402cd6dbe;hb=4acaa7b3eca85263027b1a8875cf0b1971a09c7b;hp=56feca86c96f058ccdfa130443920edd737fb3b8;hpb=ee6c3543a0ff9403420ce6a9c647723269f14331;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/msg/process/SlcExecutionStepsRequest.java b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/msg/process/SlcExecutionStepsRequest.java index 56feca86c..5ae4727fa 100644 --- a/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/msg/process/SlcExecutionStepsRequest.java +++ b/runtime/org.argeo.slc.core/src/main/java/org/argeo/slc/msg/process/SlcExecutionStepsRequest.java @@ -1,12 +1,30 @@ +/* + * Copyright (C) 2010 Mathieu Baudier + * + * 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.msg.process; +import java.io.Serializable; import java.util.ArrayList; import java.util.List; -import java.util.Vector; +import org.argeo.slc.execution.ExecutionStep; import org.argeo.slc.process.SlcExecutionStep; -public class SlcExecutionStepsRequest { +public class SlcExecutionStepsRequest implements Serializable { + private static final long serialVersionUID = 6243880315234605390L; private String slcExecutionUuid; private List steps = new ArrayList(); @@ -15,16 +33,17 @@ public class SlcExecutionStepsRequest { } public SlcExecutionStepsRequest(String slcExecutionUuid, - List steps) { + List steps) { this.slcExecutionUuid = slcExecutionUuid; - this.steps = steps; + for (ExecutionStep step : steps) { + this.steps.add((SlcExecutionStep) step); + } } - public SlcExecutionStepsRequest(String slcExecutionUuid, - SlcExecutionStep step) { + public SlcExecutionStepsRequest(String slcExecutionUuid, ExecutionStep step) { this.slcExecutionUuid = slcExecutionUuid; - List steps = new Vector(); - steps.add(step); + List steps = new ArrayList(); + steps.add((SlcExecutionStep) step); this.steps = steps; }