19 package org.turro.dossier.entity;
21 import java.util.Date;
22 import java.util.List;
23 import javax.persistence.Column;
24 import javax.persistence.Embedded;
25 import javax.persistence.Entity;
26 import javax.persistence.GeneratedValue;
27 import javax.persistence.GenerationType;
28 import javax.persistence.Id;
29 import javax.persistence.OneToOne;
30 import javax.persistence.Temporal;
31 import org.turro.string.Strings;
32 import org.turro.dossier.project.ProjectPhaseWrapper;
33 import org.turro.entities.IElephantEntity;
34 import org.turro.phase.PhaseDefinition;
35 import org.turro.phase.PhaseDefinitions;
42 public class Project implements java.io.Serializable {
45 @GeneratedValue(strategy=GenerationType.IDENTITY)
46 @Column(name=
"IDENTIFIER")
49 private String projectCode, projectTitle, goal;
53 private double estimatedBudget, assignedBudget;
55 @Temporal(value = javax.persistence.TemporalType.TIMESTAMP)
56 private java.util.Date startDate, approvedDate, oppositingEndDate, endDate, changePhase;
77 this.projectCode = projectCode;
85 this.projectTitle = projectTitle;
105 return estimatedBudget;
109 this.estimatedBudget = estimatedBudget;
113 return assignedBudget;
117 this.assignedBudget = assignedBudget;
125 this.startDate = startDate;
133 this.approvedDate = approvedDate;
137 return oppositingEndDate;
141 this.oppositingEndDate = oppositingEndDate;
149 this.endDate = endDate;
157 this.changePhase = changePhase;
161 return matchCriteria;
165 this.matchCriteria = matchCriteria;
173 this.dossier = dossier;
179 return Strings.isBlank(projectTitle);
195 return matchCriteria !=
null ? matchCriteria.getMatchingsForDossier(dossier.getId()) :
null;
GrantMatchCriteria getMatchCriteria()
void setOppositingEndDate(Date oppositingEndDate)
List< IElephantEntity > getGrantMatches()
void setProjectTitle(String projectTitle)
void setMatchCriteria(GrantMatchCriteria matchCriteria)
void setEstimatedBudget(double estimatedBudget)
void setGoal(String goal)
void setProjectCode(String projectCode)
double getEstimatedBudget()
void setDossier(Dossier dossier)
PhaseDefinition getPhaseDefinition()
void setEndDate(Date endDate)
void setAssignedBudget(double assignedBudget)
void setPhaseDefinition(PhaseDefinition phase)
void setStartDate(Date startDate)
void setApprovedDate(Date approvedDate)
ProjectPhaseWrapper getPhaseWrapper()
double getAssignedBudget()
void setChangePhase(Date changePhase)
Date getOppositingEndDate()
static PhaseDefinitions instance()
PhaseDefinition get(int index)