/* * Created on Mar 18, 2005 * */ package net.sourceforge.fenixedu.domain.inquiries; import net.sourceforge.fenixedu.dataTransferObject.inquiries.InfoInquiriesTeacher3; import net.sourceforge.fenixedu.domain.NonAffiliatedTeacher; import net.sourceforge.fenixedu.domain.RootDomainObject; import net.sourceforge.fenixedu.domain.ShiftType; import net.sourceforge.fenixedu.domain.Teacher; import net.sourceforge.fenixedu.domain.exceptions.DomainException; /** * @author Joćo Fialho & Rita Ferreira * */ public class InquiriesTeacher3 extends InquiriesTeacher3_Base { public InquiriesTeacher3() { super(); setRootDomainObject(RootDomainObject.getInstance()); this.setAnswered(false); } protected InquiriesTeacher3(InquiriesCourse3 inquiriesCourse3, Teacher teacher, ShiftType shiftType, InfoInquiriesTeacher3 infoInquiriesTeacher3) { this(); if ((inquiriesCourse3 == null) || (teacher == null) || (shiftType == null)) throw new DomainException("The inquiriesCourse3, teacher and shiftType should not be null!"); this.setInquiriesCourse3(inquiriesCourse3); this.setTeacher(teacher); this.setBasicProperties(shiftType, infoInquiriesTeacher3); } protected InquiriesTeacher3(InquiriesCourse3 inquiriesCourse3, NonAffiliatedTeacher nonAffiliatedTeacher, ShiftType shiftType, InfoInquiriesTeacher3 infoInquiriesTeacher3) { this(); if ((inquiriesCourse3 == null) || (nonAffiliatedTeacher == null) || (shiftType == null)) throw new DomainException( "The inquiriesCourse3, nonAffiliatedTeacher and shiftType should not be null!"); this.setInquiriesCourse3(inquiriesCourse3); this.setNonAffiliatedTeacher(nonAffiliatedTeacher); this.setBasicProperties(shiftType, infoInquiriesTeacher3); } private void setBasicProperties(ShiftType shiftType, InfoInquiriesTeacher3 infoInquiriesTeacher3) { this.setShiftType(shiftType); this.setStudentAssiduity(infoInquiriesTeacher3.getStudentAssiduity()); this.setTeacherAssiduity(infoInquiriesTeacher3.getTeacherAssiduity()); // this.setTeacherPunctuality(infoInquiriesTeacher3.getTeacherPunctuality()); this.setTeacherClarity(infoInquiriesTeacher3.getTeacherClarity()); // this.setTeacherAssurance(infoInquiriesTeacher3.getTeacherAssurance()); this.setTeacherInterestStimulation(infoInquiriesTeacher3.getTeacherInterestStimulation()); // this.setTeacherAvailability(infoInquiriesTeacher3.getTeacherAvailability()); // this.setTeacherReasoningStimulation(infoInquiriesTeacher3.getTeacherReasoningStimulation()); this.setGlobalAppreciation(infoInquiriesTeacher3.getGlobalAppreciation()); this.setTeacherDoubtEnlightnmentClarity(infoInquiriesTeacher3 .getTeacherDoubtEnlightnmentClarity()); this.setTeacherStudentInterventionStimulation(infoInquiriesTeacher3 .getTeacherStudentInterventionStimulation()); this.setTeacherClassObjectivesIndication(infoInquiriesTeacher3 .getTeacherClassObjectivesIndication()); this.setTeachingRythm(infoInquiriesTeacher3.getTeachingRythm()); this.setTeacherBibliographySpecification(infoInquiriesTeacher3 .getTeacherBibliographySpecification()); this.setTeacherStudentEvaluationExpectedClarification(infoInquiriesTeacher3 .getTeacherStudentEvaluationExpectedClarification()); this.setImprovmentPoint1(infoInquiriesTeacher3.getImprovementSuggestion()); this.setAnswered(infoInquiriesTeacher3.isAnswered()); } public void copyFromInfo(InfoInquiriesTeacher3 infoInquiryTeacher) { this.setBasicProperties(null, infoInquiryTeacher); } public void delete() { removeInquiriesCourse3(); removeNonAffiliatedTeacher(); removeTeacher(); removeRootDomainObject(); super.deleteDomainObject(); } }