01: /*
02: * Wilos Is a cLever process Orchestration Software - http://www.wilos-project.org
03: * Copyright (C) 2006-2007 Paul Sabatier University, IUP ISI (Toulouse, France) <massie@irit.fr>
04: *
05: * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
06: * General Public License as published by the Free Software Foundation; either version 2 of the License,
07: * or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
10: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: * GNU General Public License for more details.
12: *
13: * You should have received a copy of the GNU General Public License along with this program; if not,
14: * write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15: */
16:
17: package wilos.business.webservices.transfertobject;
18:
19: import java.io.Serializable;
20: import java.util.HashSet;
21: import java.util.Set;
22:
23: import wilos.model.misc.concreteactivity.ConcreteActivity;
24: import wilos.model.misc.concreteiteration.ConcreteIteration;
25:
26: public class ConcreteIterationTO extends ConcreteIteration implements
27: Serializable {
28:
29: /**
30: *
31: */
32: private static final long serialVersionUID = -8530841673060460523L;
33:
34: public ConcreteIterationTO() {
35: }
36:
37: public ConcreteIterationTO(ConcreteIteration _myConcreteIteration) {
38: this .setId(_myConcreteIteration.getId());
39: this .setConcreteName(_myConcreteIteration.getConcreteName());
40: this .setIteration(new IterationTO(_myConcreteIteration
41: .getIteration()));
42:
43: Set<ConcreteActivity> concreteActivitys = new HashSet<ConcreteActivity>();
44: // for (ConcreteActivity cta :
45: // _myConcretePhase.getSuperConcreteActivities()) {
46: // concreteActivitys.add(new ConcreteActivityTO(cta));
47: // }
48:
49: concreteActivitys = ConcreteActivityTO
50: .getConcreteActivities(_myConcreteIteration);
51:
52: this.setSuperConcreteActivities(concreteActivitys);
53: }
54:
55: }
|