001: package org.emforge.xfer;
002:
003: import java.util.Date;
004:
005: /**
006: * @author LMeerovich
007: */
008: public class MilestoneTO {
009:
010: private Long id;
011: private String name;
012: private String displayName;
013: private ProjectTO project;
014: private Date performanceDate;
015: private Date actualDate;
016: private Boolean closedStatus = false;
017:
018: public MilestoneTO() {
019:
020: }
021:
022: /**
023: * Minimal constructor
024: *
025: * @param project
026: * @param name
027: * @param performanceDate
028: */
029: public MilestoneTO(ProjectTO project, String name,
030: Date performanceDate) {
031:
032: this (project, name, performanceDate, null, false);
033: }
034:
035: /**
036: * Full constructor
037: *
038: * @param project
039: * @param name
040: * @param description
041: * @param performanceDate
042: * @param actualDate
043: * @param closedStatus
044: */
045: public MilestoneTO(ProjectTO project, String name,
046: Date performanceDate, Date actualDate, Boolean closedStatus) {
047:
048: this .project = project;
049: this .performanceDate = performanceDate;
050: this .actualDate = actualDate;
051: this .closedStatus = closedStatus;
052: setName(name);
053: }
054:
055: public Long getId() {
056: return id;
057: }
058:
059: public void setId(Long id) {
060: this .id = id;
061: }
062:
063: public String getName() {
064: return name;
065: }
066:
067: public void setName(String name) {
068: this .name = name;
069: }
070:
071: public String getDisplayName() {
072: return displayName;
073: }
074:
075: public void setDisplayName(String displayName) {
076: this .displayName = displayName;
077: }
078:
079: public ProjectTO getProject() {
080: return project;
081: }
082:
083: public void setProject(ProjectTO project) {
084: this .project = project;
085: }
086:
087: public Date getPerformanceDate() {
088: return performanceDate;
089: }
090:
091: public void setPerformanceDate(Date performanceDate) {
092: this .performanceDate = performanceDate;
093: }
094:
095: public Date getActualDate() {
096: return actualDate;
097: }
098:
099: public void setActualDate(Date actualDate) {
100: this .actualDate = actualDate;
101: }
102:
103: public Boolean getClosedStatus() {
104: return closedStatus;
105: }
106:
107: public void setClosedStatus(Boolean closedStatus) {
108: this.closedStatus = closedStatus;
109: }
110: }
|