log.debug("getProjectEvent projectEvent=" + projectEvent);
return projectEvent;
}
public void setProjectEvent(ProjectEvent projectEvent ) {
LifeCycleManager lifeCycleManager = LifeCycleManager.createInstanceFor(this);
log.debug("setProjectEvent projectEvent=" + projectEvent);
if (projectEvent.getStartDate() != null) {
lifeCycleManager.markTimestampFor(projectEvent.getStartDate(), projectEvent.getEventType().toString(), EVENT_START);
} else {
lifeCycleManager.deleteTimestampFor(projectEvent.getEventType().toString(), EVENT_START);
log.debug("delete timestamp for " + projectEvent.getEventType().toString(), EVENT_START);
}
if (projectEvent.getEndDate() != null) {
lifeCycleManager.markTimestampFor(projectEvent.getEndDate(), projectEvent.getEventType().toString(), EVENT_END);
} else {
lifeCycleManager.deleteTimestampFor(projectEvent.getEventType().toString(), EVENT_END);
log.debug("delete timestamp for " + projectEvent.getEventType().toString(), EVENT_END);
}
}