Package org.fenixedu.academic.domain.candidacyProcess

Examples of org.fenixedu.academic.domain.candidacyProcess.CandidacyProcess


        ActionForward actionForwardError = verifySubmissionPreconditions(mapping);
        if (actionForwardError != null) {
            return actionForwardError;
        }

        CandidacyProcess candidacyProcess = getCurrentOpenParentProcess();

        String hash = request.getParameter("hash");
        DegreeOfficePublicCandidacyHashCode candidacyHashCode =
                (DegreeOfficePublicCandidacyHashCode) PublicCandidacyHashCode.getPublicCandidacyCodeByHash(hash);
View Full Code Here


        return forwardTo(mapping, request);
    }

    protected boolean redefineApplicationSubmissionPeriodValid(
            final SecondCycleIndividualCandidacyProcess individualCandidacyProcess) {
        CandidacyProcess process = getCurrentOpenParentProcess();

        if (process == null) {
            return false;
        }

        DateTime now = new DateTime();

        return now.isAfter(process.getCandidacyStart()) && now.isBefore(process.getCandidacyEnd());
    }
View Full Code Here

            String identification) {
        return getCurrentOpenParentProcess().getOpenChildProcessByDocumentId(documentType, identification) != null;
    }

    protected boolean isApplicationSubmissionPeriodValid() {
        CandidacyProcess process = getCurrentOpenParentProcess();

        if (process == null) {
            return false;
        }

        DateTime now = new DateTime(System.currentTimeMillis());
        return now.isAfter(process.getCandidacyStart()) && now.isBefore(process.getCandidacyEnd());
    }
View Full Code Here

        ActionForward actionForwardError = verifySubmissionPreconditions(mapping);
        if (actionForwardError != null) {
            return actionForwardError;
        }

        CandidacyProcess candidacyProcess = getCurrentOpenParentProcess();

        if (candidacyHashCode == null) {
            return mapping.findForward("open-candidacy-processes-not-found");
        }
View Full Code Here

        ActionForward actionForwardError = verifySubmissionPreconditions(mapping);
        if (actionForwardError != null) {
            return actionForwardError;
        }

        CandidacyProcess candidacyProcess = getCurrentOpenParentProcess();

        String hash = request.getParameter("hash");
        DegreeOfficePublicCandidacyHashCode candidacyHashCode =
                (DegreeOfficePublicCandidacyHashCode) PublicCandidacyHashCode.getPublicCandidacyCodeByHash(hash);
View Full Code Here

        ActionForward actionForwardError = verifySubmissionPreconditions(mapping);
        if (actionForwardError != null) {
            return actionForwardError;
        }

        CandidacyProcess candidacyProcess = getCurrentOpenParentProcess();

        String hash = request.getParameter("hash");
        DegreeOfficePublicCandidacyHashCode candidacyHashCode =
                (DegreeOfficePublicCandidacyHashCode) PublicCandidacyHashCode.getPublicCandidacyCodeByHash(hash);
View Full Code Here

        return mapping.findForward("prepare-create-new-process");
    }

    public ActionForward prepareExecuteEditCandidacyPeriod(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        final CandidacyProcess process = getProcess(request);
        request.setAttribute("candidacyProcessBean", new CandidacyProcessBean(process));
        return mapping.findForward("prepare-edit-candidacy-period");
    }
View Full Code Here

        }
    }

    public ActionForward prepareExecuteSelectAvailableDegrees(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        final CandidacyProcess process = getProcess(request);
        final CandidacyProcessSelectDegreesBean bean = new CandidacyProcessSelectDegreesBean();
        bean.getDegrees().addAll(process.getDegreeSet());
        request.setAttribute("candidacyProcessBean", bean);
        return mapping.findForward("prepare-select-available-degrees");
    }
View Full Code Here

    }

    @Override
    public ActionForward prepareExecuteEditCandidacyPeriod(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        final CandidacyProcess process = getProcess(request);
        final MobilityApplicationProcess map = (MobilityApplicationProcess) process;
        final MobilityApplicationProcessBean bean = new MobilityApplicationProcessBean(process);
        bean.setForSemester(((MobilityApplicationProcess) process).getForSemester());
        request.setAttribute("candidacyProcessBean", bean);
        if (!map.getChildProcessesSet().isEmpty()) {
View Full Code Here

            final SecondCycleIndividualCandidacyProcessBean bean = (SecondCycleIndividualCandidacyProcessBean) source;
            return bean.getAvailableDegrees();
        }
        if (source instanceof ChooseDegreeBean) {
            final ChooseDegreeBean bean = (ChooseDegreeBean) source;
            final CandidacyProcess candidacyProcess = bean.getCandidacyProcess();
            if (candidacyProcess instanceof SecondCycleCandidacyProcess) {
                final SecondCycleCandidacyProcess secondCycleCandidacyProcess = (SecondCycleCandidacyProcess) candidacyProcess;
                return secondCycleCandidacyProcess.getAvailableDegrees();
            }
        }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.candidacyProcess.CandidacyProcess

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.