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:
21: import wilos.model.misc.project.Project;
22:
23: public class ProjectTO extends Project implements Serializable {
24:
25: /**
26: *
27: */
28: private static final long serialVersionUID = -5796969689713723162L;
29:
30: public ProjectTO() {
31: }
32:
33: public ProjectTO(Project _myproject) {
34: this .setProcess(new ProcessTO(_myproject.getProcess()));
35:
36: this.setDescription(_myproject.getDescription());
37: this.setCreationDate(_myproject.getCreationDate());
38: this.setLaunchingDate(_myproject.getLaunchingDate());
39: this.setIsFinished(_myproject.getIsFinished());
40: this.setId(_myproject.getId());
41: this.setConcreteName(_myproject.getConcreteName());
42: this
43: .setPlannedStartingDate(_myproject
44: .getPlannedStartingDate());
45: this.setPlannedFinishingDate(_myproject
46: .getPlannedFinishingDate());
47: this.setPlannedTime(_myproject.getPlannedTime());
48: }
49: }
|