Package org.fenixedu.academic.dto.academicAdministration

Examples of org.fenixedu.academic.dto.academicAdministration.SearchStudentsByDegreeParametersBean


    }

    public ActionForward postBack(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final SearchStudentsByDegreeParametersBean searchParametersBean = getOrCreateSearchParametersBean();
        RenderUtils.invalidateViewState();
        request.setAttribute("searchParametersBean", searchParametersBean);

        return mapping.findForward("searchRegistrations");
    }
View Full Code Here


        return mapping.findForward("searchRegistrations");
    }

    private SearchStudentsByDegreeParametersBean getOrCreateSearchParametersBean() {
        SearchStudentsByDegreeParametersBean bean = getRenderedObject("searchParametersBean");
        if (bean == null) {
            Set<DegreeType> degreeTypesForOperation =
                    AcademicAccessRule.getDegreeTypesAccessibleToFunction(AcademicOperationType.STUDENT_LISTINGS,
                            Authenticate.getUser()).collect(Collectors.toSet());
            bean =
                    new SearchStudentsByDegreeParametersBean(degreeTypesForOperation, AcademicAccessRule
                            .getDegreesAccessibleToFunction(AcademicOperationType.STUDENT_LISTINGS, Authenticate.getUser())
                            .collect(Collectors.toSet()));
        }
        return bean;
    }
View Full Code Here

    }

    public ActionForward searchByDegree(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {

        final SearchStudentsByDegreeParametersBean searchBean = getOrCreateSearchParametersBean();

        final List<RegistrationWithStateForExecutionYearBean> registrations = search(searchBean);

        request.setAttribute("searchParametersBean", searchBean);
        request.setAttribute("studentCurricularPlanList", registrations);
View Full Code Here

    }

    public ActionForward exportInfoToExcel(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {

        final SearchStudentsByDegreeParametersBean searchBean = getOrCreateSearchParametersBean();
        if (searchBean == null) {
            return null;
        }
        final List<RegistrationWithStateForExecutionYearBean> registrations = search(searchBean);

        try {
            String filename = getResourceMessage("label.students");

            Degree degree = searchBean.getDegree();
            DegreeType degreeType = searchBean.getDegreeType();
            ExecutionYear executionYear = searchBean.getExecutionYear();
            if (degree != null) {
                filename += "_" + degree.getNameFor(executionYear).getContent().replace(' ', '_');
            } else if (degreeType != null) {
                filename += "_" + degreeType.getLocalizedName().replace(' ', '_');
            }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.academicAdministration.SearchStudentsByDegreeParametersBean

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.