/** * */ package net.sourceforge.fenixedu.dataTransferObject.inquiries; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import net.sourceforge.fenixedu.domain.DomainReference; import net.sourceforge.fenixedu.domain.ExecutionDegree; import net.sourceforge.fenixedu.domain.inquiries.StudentInquiriesCourseResult; import net.sourceforge.fenixedu.domain.inquiries.StudentInquiriesTeachingResult; /** * @author - Shezad Anavarali (shezad@ist.utl.pt) * */ public class StudentInquiriesCourseResultBean implements Serializable { private DomainReference studentInquiriesCourseResult; private List> studentInquiriesTeachingResults = new ArrayList>(); public StudentInquiriesCourseResultBean(final StudentInquiriesCourseResult studentInquiriesCourseResult) { super(); this.studentInquiriesCourseResult = new DomainReference(studentInquiriesCourseResult); } public ExecutionDegree getExecutionDegree() { return getStudentInquiriesCourseResult().getExecutionDegree(); } public StudentInquiriesCourseResult getStudentInquiriesCourseResult() { return studentInquiriesCourseResult.getObject(); } public List getStudentInquiriesTeachingResults() { List result = new ArrayList(); for (DomainReference domainReference : studentInquiriesTeachingResults) { result.add(domainReference.getObject()); } return result; } public void setStudentInquiriesTeachingResults(List studentInquiriesTeachingResults) { for (StudentInquiriesTeachingResult studentInquiriesTeachingResult : studentInquiriesTeachingResults) { this.studentInquiriesTeachingResults.add(new DomainReference( studentInquiriesTeachingResult)); } } public void addStudentInquiriesTeachingResult(StudentInquiriesTeachingResult studentInquiriesTeachingResult) { this.studentInquiriesTeachingResults.add(new DomainReference( studentInquiriesTeachingResult)); } }