Examples of responsibleFors()


Examples of org.fenixedu.academic.domain.ExecutionCourse.responsibleFors()

public class ReadExecutionCourseResponsiblesIds {

    protected List<String> run(String executionCourseId) throws FenixServiceException {
        ExecutionCourse executionCourse = FenixFramework.getDomainObject(executionCourseId);

        List<Professorship> responsibles = executionCourse.responsibleFors();

        List<String> responsibleIDs = new ArrayList<String>();
        if (responsibles != null) {
            for (Professorship responsibleFor : responsibles) {
                responsibleIDs.add(responsibleFor.getTeacher().getExternalId());
View Full Code Here

Examples of org.fenixedu.academic.domain.Teacher.responsibleFors()

        } else {
            executionYear = FenixFramework.getDomainObject(executionYearID);
        }

        final List<Professorship> responsibleFors = new ArrayList();
        for (final Professorship professorship : teacher.responsibleFors()) {
            if (professorship.getExecutionCourse().getExecutionPeriod().getExecutionYear() == executionYear) {
                responsibleFors.add(professorship);
            }
        }
        return getDetailedProfessorships(teacher.getProfessorships(executionYear), responsibleFors);
View Full Code Here

Examples of org.fenixedu.academic.domain.Teacher.responsibleFors()

            List teacherResponsibleFors;
            List<Professorship> teacherResponsibleForsAux = null;

            if (executionYear == null) {
                teacherResponsibleFors = teacher.responsibleFors();
            } else {
                teacherResponsibleForsAux = teacher.responsibleFors();
                teacherResponsibleFors = new ArrayList<Professorship>();
                for (Professorship professorship : teacherResponsibleForsAux) {
                    if (professorship.getExecutionCourse().getExecutionPeriod().getExecutionYear().equals(executionYear)) {
View Full Code Here

Examples of org.fenixedu.academic.domain.Teacher.responsibleFors()

            List<Professorship> teacherResponsibleForsAux = null;

            if (executionYear == null) {
                teacherResponsibleFors = teacher.responsibleFors();
            } else {
                teacherResponsibleForsAux = teacher.responsibleFors();
                teacherResponsibleFors = new ArrayList<Professorship>();
                for (Professorship professorship : teacherResponsibleForsAux) {
                    if (professorship.getExecutionCourse().getExecutionPeriod().getExecutionYear().equals(executionYear)) {
                        teacherResponsibleFors.add(professorship);
                    }
View Full Code Here

Examples of org.fenixedu.academic.domain.Teacher.responsibleFors()

        final List<InfoExecutionCourse> infoExecutionCourses = new ArrayList<InfoExecutionCourse>();
        Person person = Person.readPersonByUsername(id);
        if (person.getTeacher() != null) {
            Teacher teacher = person.getTeacher();

            final List<Professorship> responsibilities = teacher.responsibleFors();

            if (responsibilities != null) {
                for (final Professorship professorship : responsibilities) {
                    infoExecutionCourses.add(InfoExecutionCourse.newInfoFromDomain(professorship.getExecutionCourse()));
                }
View Full Code Here
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.