/* * Created on 5/Ago/2003, 16:08:50 * *By Goncalo Luiz gedl [AT] rnl [DOT] ist [DOT] utl [DOT] pt */ package net.sourceforge.fenixedu.dataTransferObject.Seminaries; import java.util.List; import net.sourceforge.fenixedu.dataTransferObject.InfoCurricularCourse; import net.sourceforge.fenixedu.dataTransferObject.InfoObject; import net.sourceforge.fenixedu.dataTransferObject.InfoStudent; import net.sourceforge.fenixedu.domain.Seminaries.SeminaryCandidacy; /** * @author Goncalo Luiz gedl [AT] rnl [DOT] ist [DOT] utl [DOT] pt * * * Created at 5/Ago/2003, 16:08:50 * */ public class InfoCandidacy extends InfoObject { private List caseStudyChoices; private String motivation; private String seminaryName; private InfoTheme theme; private InfoModality infoModality; private InfoStudent infoStudent; private InfoCurricularCourse curricularCourse; private InfoSeminary infoSeminary; private Boolean approved; /** * @return */ public List getCaseStudyChoices() { return caseStudyChoices; } /** * @param list */ public void setCaseStudyChoices(List list) { caseStudyChoices = list; } /** * @return */ public String getMotivation() { return motivation; } /** * @param string */ public void setMotivation(String string) { motivation = string; } public String toString() { String result = "[InfoCandidacy:"; result += "Theme=" + this.theme.getIdInternal() + ";"; result += "IdInternal=" + super.getIdInternal() + ";"; result += "Motivation=" + this.motivation + ";"; result += "Registration=" + this.getInfoStudent().getIdInternal() + ";"; result += "CaseStudyChoices" + this.caseStudyChoices + ";"; result += "CurricularCourse=" + this.curricularCourse.getIdInternal() + ";"; result += "Seminary:=" + this.infoSeminary.getIdInternal() + ";"; result += "Modality=" + this.getInfoModality().getIdInternal() + "]"; return result; } /** * @return */ public String getSeminaryName() { return seminaryName; } /** * @param string */ public void setSeminaryName(String string) { seminaryName = string; } /** * @return */ public Boolean getApproved() { return approved; } /** * @param boolean1 */ public void setApproved(Boolean boolean1) { approved = boolean1; } public void copyFromDomain(SeminaryCandidacy candidacy) { super.copyFromDomain(candidacy); if (candidacy != null) { setApproved(candidacy.getApproved()); setCurricularCourse(InfoCurricularCourse.newInfoFromDomain(candidacy.getCurricularCourse())); setInfoModality(InfoModality.newInfoFromDomain(candidacy.getModality())); setMotivation(candidacy.getMotivation()); setInfoSeminary(InfoSeminaryWithEquivalencies.newInfoFromDomain(candidacy.getSeminary())); setInfoStudent(InfoStudent.newInfoFromDomain(candidacy.getStudent())); setTheme(InfoTheme.newInfoFromDomain(candidacy.getTheme())); } } public static InfoCandidacy newInfoFromDomain(SeminaryCandidacy candidacy) { InfoCandidacy infoCandidacy = null; if (candidacy != null) { infoCandidacy = new InfoCandidacy(); infoCandidacy.copyFromDomain(candidacy); } return infoCandidacy; } /** * @return Returns the infoSeminary. */ public InfoSeminary getInfoSeminary() { return infoSeminary; } /** * @param infoSeminary * The infoSeminary to set. */ public void setInfoSeminary(InfoSeminary infoSeminary) { this.infoSeminary = infoSeminary; } /** * @return Returns the infoStudent. */ public InfoStudent getInfoStudent() { return infoStudent; } /** * @param infoStudent * The infoStudent to set. */ public void setInfoStudent(InfoStudent infoStudent) { this.infoStudent = infoStudent; } /** * @return Returns the infoModality. */ public InfoModality getInfoModality() { return infoModality; } /** * @param infoModality * The infoModality to set. */ public void setInfoModality(InfoModality infoModality) { this.infoModality = infoModality; } /** * @return Returns the curricularCourse. */ public InfoCurricularCourse getCurricularCourse() { return curricularCourse; } /** * @param curricularCourse * The curricularCourse to set. */ public void setCurricularCourse(InfoCurricularCourse curricularCourse) { this.curricularCourse = curricularCourse; } /** * @return Returns the theme. */ public InfoTheme getTheme() { return theme; } /** * @param theme * The theme to set. */ public void setTheme(InfoTheme theme) { this.theme = theme; } }