/** * */ package net.sourceforge.fenixedu.dataTransferObject.student; import java.io.Serializable; import net.sourceforge.fenixedu.domain.DomainReference; import net.sourceforge.fenixedu.domain.ExecutionSemester; import net.sourceforge.fenixedu.domain.student.Student; import net.sourceforge.fenixedu.domain.student.StudentStatuteType; /** * @author - Shezad Anavarali (shezad@ist.utl.pt) * */ @SuppressWarnings("serial") public class ManageStudentStatuteBean implements Serializable { private StudentStatuteType statuteType; private DomainReference beginExecutionPeriod; private DomainReference executionPeriod; private DomainReference endExecutionPeriod; private DomainReference student; public ManageStudentStatuteBean(Student student) { super(); this.student = new DomainReference(student); this.executionPeriod = new DomainReference(ExecutionSemester.readActualExecutionSemester()); } public ExecutionSemester getExecutionPeriod() { return (executionPeriod != null) ? executionPeriod.getObject() : null; } public void setExecutionPeriod(ExecutionSemester executionSemester) { executionPeriod = (executionSemester != null) ? new DomainReference(executionSemester) : null; } public ExecutionSemester getBeginExecutionPeriod() { return beginExecutionPeriod != null ? beginExecutionPeriod.getObject() : null; } public ExecutionSemester getEndExecutionPeriod() { return endExecutionPeriod != null ? endExecutionPeriod.getObject() : null; } public StudentStatuteType getStatuteType() { return statuteType; } public Student getStudent() { return student != null ? student.getObject() : null; } public void setBeginExecutionPeriod(ExecutionSemester beginExecutionPeriod) { this.beginExecutionPeriod = beginExecutionPeriod != null ? new DomainReference(beginExecutionPeriod) : null; } public void setEndExecutionPeriod(ExecutionSemester endExecutionPeriod) { this.endExecutionPeriod = endExecutionPeriod != null ? new DomainReference(endExecutionPeriod) : null; } public void setStatuteType(StudentStatuteType statuteType) { this.statuteType = statuteType; } public void setStudent(Student student) { this.student = student != null ? new DomainReference(student) : null; } }