/* * Created on 7/Nov/2003 * */ package net.sourceforge.fenixedu.dataTransferObject.gesdis; import java.util.Date; import net.sourceforge.fenixedu.dataTransferObject.InfoExecutionCourse; import net.sourceforge.fenixedu.dataTransferObject.InfoObject; import net.sourceforge.fenixedu.domain.gesdis.CourseReport; /** * @author Leonor Almeida * @author Sergio Montelobo * */ public class InfoCourseReport extends InfoObject { private String report; private Date lastModificationDate; private InfoExecutionCourse infoExecutionCourse; public InfoCourseReport() { } public String getReport() { return report; } public InfoExecutionCourse getInfoExecutionCourse() { return infoExecutionCourse; } public void setReport(String report) { this.report = report; } public void setInfoExecutionCourse(InfoExecutionCourse infoExecutionCourse) { this.infoExecutionCourse = infoExecutionCourse; } /** * @return Returns the lastModificationDate. */ public Date getLastModificationDate() { return lastModificationDate; } /** * @param lastModificationDate * The lastModificationDate to set. */ public void setLastModificationDate(Date lastModificationDate) { this.lastModificationDate = lastModificationDate; } public void copyFromDomain(CourseReport courseReport) { super.copyFromDomain(courseReport); if (courseReport != null) { setLastModificationDate(courseReport.getLastModificationDate()); setReport(courseReport.getReport()); setInfoExecutionCourse(InfoExecutionCourse.newInfoFromDomain(courseReport.getExecutionCourse())); } } public static InfoCourseReport newInfoFromDomain(CourseReport courseReport) { InfoCourseReport infoCourseReport = null; if (courseReport != null) { infoCourseReport = new InfoCourseReport(); infoCourseReport.copyFromDomain(courseReport); } return infoCourseReport; } }