Subversion Repositories bacoAlunos

Rev

Rev 1353 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package pt.estgp.estgweb.web.form.courses;

import org.apache.struts.upload.FormFile;
import pt.estgp.estgweb.Globals;
import pt.estgp.estgweb.domain.dao.DaoFactory;
import pt.estgp.estgweb.domain.views.CourseView;
import pt.estgp.estgweb.services.courseunits.DirectedCoordinatedCourses;
import pt.estgp.estgweb.services.courseunits.DirectedCoordinatedUnitsService;
import pt.estgp.estgweb.utils.DatesUtils;
import pt.estgp.estgweb.web.form.commons.TeachersForm;

import java.util.List;

/**
 * @author Jorge Machado
 * @date 25/Jun/2008
 * @see pt.estgp.estgweb.web.form.courses
 */

public class CourseForm extends TeachersForm
{
    private 1.5.0/docs/api/java/lang/String.html">String forUser;
    private CourseView courseView;
    private FormFile studiesPlan;

    private 1.5.0/docs/api/java/lang/String.html">String institutionCode;
    private DirectedCoordinatedCourses directedCoordinatedCourses = new DirectedCoordinatedCourses();

    private 1.5.0/docs/api/java/lang/String.html">String importYear = DaoFactory.getConfigurationDaoImpl().getInterfaceImportYearCreateTransaction();

    private 1.5.0/docs/api/java/lang/String.html">String area;


    private List<String> areas = Globals.DEPARTAMENTOS;




    public CourseForm()
    {
        courseView = new CourseView();
    }


    public 1.5.0/docs/api/java/lang/String.html">String getForUser() {
        return forUser;
    }

    public void setForUser(1.5.0/docs/api/java/lang/String.html">String forUser) {
        this.forUser = forUser;
    }

    public CourseView getCourseView()
    {
        return courseView;
    }

    public DirectedCoordinatedCourses getDirectedCoordinatedCourses()
    {
        return directedCoordinatedCourses;
    }

    public void setDirectedCoordinatedCourses(DirectedCoordinatedCourses directedCoordinatedCourses)
    {
        this.directedCoordinatedCourses = directedCoordinatedCourses;
    }

    public 1.5.0/docs/api/java/lang/String.html">String getImportYear()
    {
        return importYear;
    }

    public void setImportYear(1.5.0/docs/api/java/lang/String.html">String importYear)
    {
        this.importYear = importYear;
    }

    public void setCourseView(CourseView courseView)
    {
        this.courseView = courseView;
    }

    public List<String> getImportYears()
    {
        return DatesUtils.getImportYears(20);
    }


    public FormFile getStudiesPlan()
    {
        return studiesPlan;
    }

    public void setStudiesPlan(FormFile studiesPlan)
    {
        this.studiesPlan = studiesPlan;
    }


    public List<String> getAreas()
    {
        return areas;
    }


    public 1.5.0/docs/api/java/lang/String.html">String getArea()
    {
        return area;
    }

    public void setArea(1.5.0/docs/api/java/lang/String.html">String area)
    {
        this.area = area;
    }


    /************************************
     *
     * For Programas Selection
     *
     */

    private 1.5.0/docs/api/java/lang/String.html">String semestre;

    private long courseId = -1;

    /**
     * possibleValues withTeachers, withNoTeachers, all
     * @see pt.estgp.estgweb.services.courseunits.DirectedCoordinatedUnitsService.TeachersSituationEnum
     */

    private 1.5.0/docs/api/java/lang/String.html">String teachersSituation;

   
    public 1.5.0/docs/api/java/lang/String.html">String getSemestre()
    {
        return semestre;
    }

    public void setSemestre(1.5.0/docs/api/java/lang/String.html">String semestre)
    {
        this.semestre = semestre;
    }

    public long getCourseId()
    {
        return courseId;
    }

    public void setCourseId(long courseId)
    {
        this.courseId = courseId;
    }

    public 1.5.0/docs/api/java/lang/String.html">String getTeachersSituation()
    {
        return teachersSituation;
    }

    public DirectedCoordinatedUnitsService.TeachersSituationEnum getTeacherSituationEnum()
    {
        return DirectedCoordinatedUnitsService.TeachersSituationEnum.parse(teachersSituation);
    }

    public void setTeachersSituation(1.5.0/docs/api/java/lang/String.html">String teachersSituation)
    {
        this.teachersSituation = teachersSituation;
    }

    public 1.5.0/docs/api/java/lang/String.html">String getInstitutionCode() {
        return institutionCode;
    }

    public void setInstitutionCode(1.5.0/docs/api/java/lang/String.html">String institutionCode) {
        this.institutionCode = institutionCode;
    }
}