Package org.fenixedu.academic.domain.phd

Examples of org.fenixedu.academic.domain.phd.SearchPhdIndividualProgramProcessBean


            throw new JspException("Specified bean does not correspond to a "
                    + SearchPhdIndividualProgramProcessBean.class.getSimpleName());
        }
        PredicateContainer<PhdIndividualProgramProcess> predicateContainer =
                (PredicateContainer<PhdIndividualProgramProcess>) predicateContainerObject;
        SearchPhdIndividualProgramProcessBean bean = (SearchPhdIndividualProgramProcessBean) beanObject;
        AndPredicate<PhdIndividualProgramProcess> searchPredicate = new AndPredicate<PhdIndividualProgramProcess>();
        searchPredicate.add(bean.getAndPredicate());
        searchPredicate.add(predicateContainer.getPredicate());

        List<PhdIndividualProgramProcess> processList = PhdIndividualProgramProcess.search(searchPredicate);

        int scope = (getScope() == null) ? PageContext.REQUEST_SCOPE : ScopeIntsMap.get(getScope());
View Full Code Here


    }

    public ActionForward manageProcesses(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        SearchPhdIndividualProgramProcessBean searchBean = getOrCreateSearchBean(request);
        RenderUtils.invalidateViewState();

        return forwardToManageProcesses(mapping, request, searchBean);
    }
View Full Code Here

        return forwardToManageProcesses(mapping, request, searchBean);
    }

    private SearchPhdIndividualProgramProcessBean getOrCreateSearchBean(HttpServletRequest request) {
        SearchPhdIndividualProgramProcessBean searchBean =
                (SearchPhdIndividualProgramProcessBean) getObjectFromViewState("searchProcessBean");

        if (searchBean == null) {
            searchBean = initializeSearchBean(request);
        }
View Full Code Here

    abstract protected SearchPhdIndividualProgramProcessBean initializeSearchBean(HttpServletRequest request);

    public ActionForward viewInactiveProcesses(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        SearchPhdIndividualProgramProcessBean searchBean = getOrCreateSearchBean(request);
        RenderUtils.invalidateViewState();

        request.setAttribute("searchProcessBean", searchBean);
        request.setAttribute("suspendedContainer", PhdInactivePredicateContainer.SUSPENDED);
        request.setAttribute("concludedContainer", PhdInactivePredicateContainer.CONCLUDED);
View Full Code Here

    }

    public ActionForward searchAllProcesses(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        SearchPhdIndividualProgramProcessBean searchBean = getOrCreateSearchBean(request);
        RenderUtils.invalidateViewState();

        List<PhdIndividualProgramProcess> processes;
        try {
            processes = PhdIndividualProgramProcess.search(searchBean.getPredicates());
        } catch (NumberFormatException ex) {
            addActionMessage("searchError", request, "error.invalidFormat");
            return forwardToManageProcesses(mapping, request, searchBean);
        }
        if (processes.isEmpty()) {
View Full Code Here

            PhdThesisPredicateContainer.DISCUSSION_SCHEDULED };

    @Override
    protected SearchPhdIndividualProgramProcessBean initializeSearchBean(HttpServletRequest request) {

        final SearchPhdIndividualProgramProcessBean searchBean = new SearchPhdIndividualProgramProcessBean();
        searchBean.setFilterPhdPrograms(false);

        final List<PhdIndividualProgramProcess> processes = new ArrayList<PhdIndividualProgramProcess>();
        for (final InternalPhdParticipant participant : getLoggedPerson(request).getInternalParticipantsSet()) {
            processes.add(participant.getIndividualProcess());
        }

        searchBean.setProcesses(processes);

        return searchBean;

    }
View Full Code Here

        return super.manageProcesses(mapping, form, request, response);
    }

    @Override
    protected SearchPhdIndividualProgramProcessBean initializeSearchBean(HttpServletRequest request) {
        SearchPhdIndividualProgramProcessBean searchBean = new SearchPhdIndividualProgramProcessBean();
        searchBean.setPhdPrograms(getManagedPhdPrograms(request));
        searchBean.setFilterPhdProcesses(false);
        return searchBean;
    }
View Full Code Here

        return null;
    }

    @Override
    protected SearchPhdIndividualProgramProcessBean initializeSearchBean(HttpServletRequest request) {
        final SearchPhdIndividualProgramProcessBean searchBean = new SearchPhdIndividualProgramProcessBean();
        searchBean.setExecutionYear(ExecutionYear.readCurrentExecutionYear());
        searchBean.setFilterPhdPrograms(false);
        searchBean.setFilterPhdProcesses(false);

        return searchBean;
    }
View Full Code Here

    @Override
    @EntryPoint
    public ActionForward manageProcesses(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        SearchPhdIndividualProgramProcessBean searchBean =
                (SearchPhdIndividualProgramProcessBean) getObjectFromViewState("searchProcessBean");

        if (searchBean == null) {
            searchBean = initializeSearchBean(request);
        }

        AndPredicate<PhdIndividualProgramProcess> predicate = searchBean.getPredicates();

        predicate.add(new Predicate<PhdIndividualProgramProcess>() {
            @Override
            public boolean eval(PhdIndividualProgramProcess process) {
                return process.isAllowedToManageProcess(Authenticate.getUser());
            }
        });

        request.setAttribute("searchProcessBean", searchBean);
        request.setAttribute("processes", PhdIndividualProgramProcess.search(searchBean.getExecutionYear(), predicate));

        RenderUtils.invalidateViewState();

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

        return viewProcess(mapping, form, request, response);
    }

    public ActionForward generateReport(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws IOException {
        SearchPhdIndividualProgramProcessBean searchBean =
                (SearchPhdIndividualProgramProcessBean) getObjectFromViewState("searchProcessBean");

        HSSFWorkbook workbook = new HSSFWorkbook();
        PhdIndividualProgramProcessesReport report = new PhdIndividualProgramProcessesReport(workbook);
        report.build(searchBean);
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.SearchPhdIndividualProgramProcessBean

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.