Examples of DegreeByExecutionYearBean


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

    }

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

        final DegreeByExecutionYearBean degreeSearchBean = getOrCreateDegreeSearchBean();
        final DocumentRequestSearchBean requestSearchBean = getOrCreateRequestSearchBean();
        RenderUtils.invalidateViewState();
        request.setAttribute("degreeByExecutionYearBean", degreeSearchBean);
        request.setAttribute("documentRequestSearchBean", requestSearchBean);
View Full Code Here

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

        return mapping.findForward("searchRequests");
    }

    private DegreeByExecutionYearBean getOrCreateDegreeSearchBean() {
        DegreeByExecutionYearBean bean = getRenderedObject("degreeByExecutionYearBean");
        return (bean != null) ? bean : new DegreeByExecutionYearBean(AcademicAccessRule.getDegreeTypesAccessibleToFunction(
                AcademicOperationType.SERVICE_REQUESTS, Authenticate.getUser()).collect(Collectors.toSet()), AcademicAccessRule
                .getDegreesAccessibleToFunction(AcademicOperationType.SERVICE_REQUESTS, Authenticate.getUser()).collect(
                        Collectors.toSet()));
    }
View Full Code Here

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

    }

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

        final DegreeByExecutionYearBean degreeSearchBean = getOrCreateDegreeSearchBean();
        final DocumentRequestSearchBean requestSearchBean = getOrCreateRequestSearchBean();

        final Set<RegistrationAcademicServiceRequest> requestList = search(degreeSearchBean, requestSearchBean);

        request.setAttribute("degreeByExecutionYearBean", degreeSearchBean);
View Full Code Here

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

    }

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

        final DegreeByExecutionYearBean degreeSearchBean = getOrCreateDegreeSearchBean();
        final DocumentRequestSearchBean requestSearchBean = getOrCreateRequestSearchBean();
        if ((degreeSearchBean == null) || (requestSearchBean == null)) {
            return null;
        }
        final Set<RegistrationAcademicServiceRequest> requestList = search(degreeSearchBean, requestSearchBean);

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

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

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

    @Override
    public Object provide(Object source, Object currentValue) {

        final SortedSet<Degree> result = new TreeSet<Degree>(Degree.COMPARATOR_BY_DEGREE_TYPE_AND_NAME_AND_ID);
        final DegreeByExecutionYearBean chooseDegreeBean = (DegreeByExecutionYearBean) source;

        for (final Degree degree : chooseDegreeBean.getAdministratedDegrees()) {
            if (matchesExecutionYear(degree, chooseDegreeBean.getExecutionYear())
                    && matchesDegreeType(degree, chooseDegreeBean.getDegreeType())) {
                result.add(degree);
            }
        }

        return result;
View Full Code Here

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

            final SearchCurricularCourseByDegree bean = (SearchCurricularCourseByDegree) source;
            final List<DegreeByExecutionYearBean> result = new ArrayList<DegreeByExecutionYearBean>();

            for (final Degree degree : Degree.readBolonhaDegrees()) {
                if (programs.contains(degree)) {
                    result.add(new DegreeByExecutionYearBean(degree, bean.getExecutionSemester().getExecutionYear()));
                }
            }

            Collections.sort(result);
            return result;
View Full Code Here

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

                        return null;
                    }
                    final String[] values = key.split(":");
                    final Degree degree = FenixFramework.getDomainObject(values[0]);
                    final ExecutionYear year = FenixFramework.getDomainObject(values[1]);
                    return new DegreeByExecutionYearBean(degree, year);
                }

                @Override
                public String deserialize(Object object) {
                    return (object == null) ? "" : ((DegreeByExecutionYearBean) object).getKey();
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.