Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.Department


public class DepartmentProjectSubmissionDA extends ProjectSubmissionsManagementDispatchAction {

    @EntryPoint
    public ActionForward showProjects(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        final Department department = AccessControl.getPerson().getTeacher().getDepartment();
        Map<ExecutionCourse, Set<Project>> coursesProjects = new HashMap<ExecutionCourse, Set<Project>>();
        for (Project project : department.getProjectsSet()) {
            for (ExecutionCourse course : project.getAssociatedExecutionCoursesSet()) {
                Set<Project> projects = coursesProjects.get(course);
                if (projects == null) {
                    projects = new HashSet<Project>();
                    coursesProjects.put(course, projects);
View Full Code Here


            }
        });
        Person person = (Person) FenixFramework.getDomainObject(infoPerson.getExternalId());
        InfoDepartment teacherDepartment = null;
        if (person.getTeacher() != null) {
            Department department = person.getTeacher().getDepartment();
            teacherDepartment = InfoDepartment.newInfoFromDomain(department);
            final Collection<Department> departmentList = userView.getPerson().getManageableDepartmentCreditsSet();
            request.setAttribute("isDepartmentManager", (departmentList.contains(department) || department == null));
        } else {
            request.setAttribute("isDepartmentManager", Boolean.TRUE);
View Full Code Here

        final ExecutionSemester executionSemester = executionYear.getExecutionSemesterFor(semester);
        if (semester.intValue() != 0 && executionSemester == null) {
            throw new FenixServiceException("error.noExecutionPeriod");
        }

        final Department department = FenixFramework.getDomainObject(departmentId);
        if (department == null) {
            throw new FenixServiceException("error.noDepartment");
        }

        final List<Teacher> teachers = department.getAllCurrentTeachers();

        Iterator iter = teachers.iterator();

        List professorships = new ArrayList();
        List responsibleFors = new ArrayList();
View Full Code Here

public class DegreeSelectManySearchStudentsWithEnrolmentsByDepartment implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        final SearchStudentsWithEnrolmentsByDepartment bean = (SearchStudentsWithEnrolmentsByDepartment) source;
        final Department department = bean.getDepartment();
        final SortedSet<Degree> degrees = new TreeSet<Degree>(Degree.COMPARATOR_BY_DEGREE_TYPE_AND_NAME_AND_ID);
        degrees.addAll(department.getDegreesSet());
        return degrees;
    }
View Full Code Here

    @Override
    public List<Group> getDefaultGroups() {
        List<Group> groups = super.getDefaultGroups();

        ExecutionYear currentYear = ExecutionYear.readCurrentExecutionYear();
        Department department = this.getDepartment();
        if (department != null) {

            groups.add(TeacherGroup.get(department, currentYear));
            groups.add(UnitGroup.recursiveWorkers(department.getDepartmentUnit()));

            SortedSet<Degree> degrees = new TreeSet<Degree>(Degree.COMPARATOR_BY_DEGREE_TYPE_AND_NAME_AND_ID);
            degrees.addAll(department.getDegreesSet());

            for (Degree degree : degrees) {
                groups.add(StudentGroup.get(degree, null));
            }
        }
View Full Code Here

        } else {
            InternalPhdParticipant internalPhdParticipant = (InternalPhdParticipant) phdParticipant;
            Teacher teacher = internalPhdParticipant.getTeacher();

            addCellValue(row, onNullEmptyString(teacher.getTeacherId()), 6);
            Department department = internalPhdParticipant.getDepartment();

            addCellValue(row, onNullEmptyString(department != null ? department.getCode() : ""), 7);
            addCellValue(row, onNullEmptyString(department != null ? department.getName() : ""), 8);
        }
    }
View Full Code Here

        return null;
    }

    public Group getDepartmentForumGroup() {
        Set<Group> groups = new HashSet<Group>();
        Department department = getDepartment();
        groups.add(UnitGroup.recursiveWorkers(department.getDepartmentUnit()));
        groups.add(UserGroup.of(Person.convertToUsers(getPersonsFromTeachers(department))));
        return UnionGroup.of(groups);
    }
View Full Code Here

                    final Person person = peopleIterator.next();
                    if (!person.hasRole(roleBd)) {
                        peopleIterator.remove();
                    }
                }
                final Department department = searchParameters.getDepartment();
                if (department != null) {
                    for (final Iterator<Person> peopleIterator = persons.iterator(); peopleIterator.hasNext();) {
                        final Person person = peopleIterator.next();
                        final Teacher teacher = person.getTeacher();
                        if (teacher == null || teacher.getDepartment() != department) {
View Full Code Here

                        final Person person = peopleIterator.next();
                        if (!person.hasRole(roleBd)) {
                            peopleIterator.remove();
                        }
                    }
                    final Department department = searchParameters.getDepartment();
                    if (department != null) {
                        for (final Iterator<Person> peopleIterator = persons.iterator(); peopleIterator.hasNext();) {
                            final Person person = peopleIterator.next();
                            final Teacher teacher = person.getTeacher();
                            if (teacher == null || teacher.getDepartment() != department) {
View Full Code Here

        if (type != null) {

            switch (type) {

            case DEPARTMENT:
                Department department = FenixFramework.getDomainObject(departmentID);
                return DepartmentUnit.createNewInternalDepartmentUnit(unitName, unitNameCard, costCenterCode, acronym, begin,
                        end, parentUnit, accountabilityType, webAddress, department, classification, canBeResponsibleOfSpaces,
                        campus);

            case DEGREE_UNIT:
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.Department

Copyright © 2018 www.massapicom. 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.