Examples of StudentReportPredicate


Examples of org.fenixedu.academic.service.services.student.reports.GenerateStudentReport.StudentReportPredicate

    }

    @EntryPoint
    public ActionForward search(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
            throws Exception {
        StudentReportPredicate studentReportPredicate = getRenderedObject();
        if (studentReportPredicate == null) {
            if (request.getParameter("executionYearID") != null) {
                studentReportPredicate = setBean(request);
                request.setAttribute("showLink", true);
            } else {
                studentReportPredicate = new StudentReportPredicate();
            }
        } else {
            if (studentReportPredicate.getExecutionYear() != null
                    & (studentReportPredicate.getConcluded() == true || studentReportPredicate.getActive() == true)) {
                request.setAttribute("showLink", true);
            }
        }

        request.setAttribute("queueJobList", getLatestJobs());
View Full Code Here

Examples of org.fenixedu.academic.service.services.student.reports.GenerateStudentReport.StudentReportPredicate

        final boolean concluded = Boolean.parseBoolean(concludedString);

        final String activeString = request.getParameter("active");
        final boolean active = Boolean.parseBoolean(activeString);

        StudentReportPredicate studentReportPredicate = new StudentReportPredicate();
        studentReportPredicate.setExecutionYear(executionYear);
        studentReportPredicate.setDegreeType(degreeType);
        studentReportPredicate.setConcluded(concluded);
        studentReportPredicate.setActive(active);

        return studentReportPredicate;

    }
View Full Code Here

Examples of org.fenixedu.academic.service.services.student.reports.GenerateStudentReport.StudentReportPredicate

        }
    }

    public ActionForward viewJobs(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
            throws Exception {
        StudentReportPredicate studentReportPredicate = setBean(request);
        Predicate predicate =
                new FindSelectedPublicRelationsStudentList(studentReportPredicate.getExecutionYear(),
                        studentReportPredicate.getDegreeType(), studentReportPredicate.getActive(),
                        studentReportPredicate.getConcluded());
        List<FindSelectedPublicRelationsStudentList> selectedJobs =
                (List<FindSelectedPublicRelationsStudentList>) org.apache.commons.collections.CollectionUtils.select(
                        rootDomainObject.getQueueJobSet(), predicate);

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

Examples of org.fenixedu.academic.service.services.student.reports.GenerateStudentReport.StudentReportPredicate

        return mapping.findForward("viewPublicRelationsReports");
    }

    public ActionForward requestJob(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        StudentReportPredicate studentReportPredicate = setBean(request);

        PublicRelationsStudentListQueueJob job =
                new PublicRelationsStudentListQueueJob(studentReportPredicate.getExecutionYear(),
                        studentReportPredicate.getDegreeType(), studentReportPredicate.getConcluded(),
                        studentReportPredicate.getActive());

        List<QueueJob> queueJobList = getLatestJobs();

        request.setAttribute("queueJobList", queueJobList);
        request.setAttribute("job", job);
View Full Code Here

Examples of org.fenixedu.academic.service.services.student.reports.GenerateStudentReport.StudentReportPredicate

        final ExecutionYear executionYear = getExecutionYear();
        final DegreeType degreeType = getDegreeType();
        final boolean concluded = getConcluded();
        final boolean active = getActive();

        final StudentReportPredicate studentReportPredicate = new StudentReportPredicate();
        studentReportPredicate.setExecutionYear(executionYear);
        studentReportPredicate.setDegreeType(degreeType);
        studentReportPredicate.setConcluded(concluded);
        studentReportPredicate.setActive(active);

        final Spreadsheet spreadsheet = GenerateStudentReport.generateReport(studentReportPredicate);

        final QueueJobResult queueJobResult = new QueueJobResult();
        queueJobResult.setContentType("application/vnd.ms-excel");
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.