package net.sourceforge.fenixedu.dataTransferObject.administrativeOffice.studentEnrolment; import java.io.Serializable; import net.sourceforge.fenixedu.domain.Degree; import net.sourceforge.fenixedu.domain.DegreeCurricularPlan; import net.sourceforge.fenixedu.domain.DomainReference; import net.sourceforge.fenixedu.domain.ExecutionSemester; import net.sourceforge.fenixedu.domain.StudentCurricularPlan; import net.sourceforge.fenixedu.domain.degree.DegreeType; import net.sourceforge.fenixedu.domain.degreeStructure.Context; import net.sourceforge.fenixedu.domain.studentCurriculum.CurriculumGroup; public class StudentOptionalEnrolmentBean implements Serializable { private DomainReference studentCurricularPlan; private DomainReference executionSemester; private DomainReference curriculumGroup; private DomainReference context; private DegreeType degreeType; private DomainReference degree; private DomainReference degreeCurricularPlan; public StudentOptionalEnrolmentBean() { } public StudentOptionalEnrolmentBean(StudentCurricularPlan studentCurricularPlan, ExecutionSemester executionSemester, CurriculumGroup curriculumGroup, Context context) { setStudentCurricularPlan(studentCurricularPlan); setExecutionPeriod(executionSemester); setCurriculumGroup(curriculumGroup); setContext(context); } public StudentCurricularPlan getStudentCurricularPlan() { return (this.studentCurricularPlan == null) ? null : this.studentCurricularPlan.getObject(); } public void setStudentCurricularPlan(StudentCurricularPlan studentCurricularPlan) { this.studentCurricularPlan = (studentCurricularPlan != null) ? new DomainReference( studentCurricularPlan) : null; } public ExecutionSemester getExecutionPeriod() { return (this.executionSemester == null) ? null : this.executionSemester.getObject(); } public void setExecutionPeriod(ExecutionSemester executionSemester) { this.executionSemester = (executionSemester != null) ? new DomainReference(executionSemester) : null; } public CurriculumGroup getCurriculumGroup() { return (this.curriculumGroup == null) ? null : this.curriculumGroup.getObject(); } public void setCurriculumGroup(CurriculumGroup curriculumGroup) { this.curriculumGroup = (curriculumGroup != null) ? new DomainReference(curriculumGroup) : null; } public Context getContex() { return (this.context == null) ? null : this.context.getObject(); } public void setContext(Context context) { this.context = (context != null) ? new DomainReference(context) : null; } public DegreeType getDegreeType() { return degreeType; } public void setDegreeType(DegreeType degreeType) { this.degreeType = degreeType; } public Degree getDegree() { return (this.degree == null) ? null : this.degree.getObject(); } public void setDegree(Degree degree) { this.degree = (degree != null) ? new DomainReference(degree) : null; } public DegreeCurricularPlan getDegreeCurricularPlan() { return (this.degreeCurricularPlan == null) ? null : this.degreeCurricularPlan.getObject(); } public void setDegreeCurricularPlan(DegreeCurricularPlan degreeCurricularPlan) { this.degreeCurricularPlan = (degreeCurricularPlan != null) ? new DomainReference( degreeCurricularPlan) : null; } }