Package org.fenixedu.academic.dto.teacher.professorship

Source Code of org.fenixedu.academic.dto.teacher.professorship.DetailedProfessorship

/**
* Copyright © 2002 Instituto Superior Técnico
*
* This file is part of FenixEdu Academic.
*
* FenixEdu Academic is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* FenixEdu Academic is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with FenixEdu Academic.  If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Created on Dec 12, 2003 by jpvl
*/
package org.fenixedu.academic.dto.teacher.professorship;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.fenixedu.academic.dto.DataTranferObject;
import org.fenixedu.academic.dto.InfoCurricularCourse;
import org.fenixedu.academic.dto.InfoDegree;
import org.fenixedu.academic.dto.InfoProfessorship;

/**
* @author jpvl
*/
public class DetailedProfessorship extends DataTranferObject {
    private InfoProfessorship infoProfessorship;

    private Boolean responsibleFor;

    private List executionCourseCurricularCoursesList;

    private Boolean masterDegreeOnly = Boolean.TRUE;

    /**
     * @return Returns the executionCourseCurricularCoursesList.
     */
    public List getExecutionCourseCurricularCoursesList() {
        return this.executionCourseCurricularCoursesList;
    }

    /**
     * @param executionCourseCurricularCoursesList
     *            The executionCourseCurricularCoursesList to set.
     */
    public void setExecutionCourseCurricularCoursesList(List executionCourseCurricularCoursesList) {
        this.executionCourseCurricularCoursesList = executionCourseCurricularCoursesList;
    }

    /**
     * @return Returns the infoProfessorship.
     */
    public InfoProfessorship getInfoProfessorship() {
        return this.infoProfessorship;
    }

    /**
     * @param infoProfessorship
     *            The infoProfessorship to set.
     */
    public void setInfoProfessorship(InfoProfessorship infoProfessorship) {
        this.infoProfessorship = infoProfessorship;
    }

    public List getInfoDegreeList() {

        List infoDegreeList = new ArrayList();
        Iterator iter = executionCourseCurricularCoursesList.iterator();
        while (iter.hasNext()) {
            InfoCurricularCourse infoCurricularCourse = (InfoCurricularCourse) iter.next();
            InfoDegree infoDegree = infoCurricularCourse.getInfoDegreeCurricularPlan().getInfoDegree();
            if (!infoDegreeList.contains(infoDegree)) {
                infoDegreeList.add(infoDegree);
            }
        }
        return infoDegreeList;
    }

    /**
     * @return Returns the responsibleFor.
     */
    public Boolean getResponsibleFor() {
        return this.responsibleFor;
    }

    /**
     * @param responsibleFor
     *            The responsibleFor to set.
     */
    public void setResponsibleFor(Boolean responsibleFor) {
        this.responsibleFor = responsibleFor;
    }

    /**
     * @return Returns the masterDegreeOnly.
     */
    public Boolean getMasterDegreeOnly() {
        return masterDegreeOnly;
    }

    /**
     * @param masterDegreeOnly
     *            The masterDegreeOnly to set.
     */
    public void setMasterDegreeOnly(Boolean masterDegreeOnly) {
        this.masterDegreeOnly = masterDegreeOnly;
    }
}
TOP

Related Classes of org.fenixedu.academic.dto.teacher.professorship.DetailedProfessorship

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.