Package org.fenixedu.academic.domain.candidacyProcess

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


        return now.isAfter(process.getCandidacyStart()) && now.isBefore(process.getCandidacyEnd());
    }

    public ActionForward backToViewCandidacyInternal(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        IndividualCandidacyProcess individualCandidacyProcess =
                (IndividualCandidacyProcess) request.getAttribute("individualCandidacyProcess");
        return forward(request, mapping.getPath() + ".do?method=prepareCandidacyCreation&hash="
                + individualCandidacyProcess.getCandidacyHashCode().getValue());
    }
View Full Code Here


        }
    }

    public ActionForward backToViewCandidacy(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        IndividualCandidacyProcess individualCandidacyProcess = getDomainObject(request, "individualCandidacyProcess");
        return forward(
                request,
                getLinkFromPublicCandidacyHashCodeForInternalUse(mapping, request,
                        individualCandidacyProcess.getCandidacyHashCode()));
    }
View Full Code Here

        CollectionUtils.select(processes, new Predicate() {

            @Override
            public boolean evaluate(Object arg0) {
                IndividualCandidacyProcess child = (IndividualCandidacyProcess) arg0;

                return ((MobilityApplicationProcess) process).getDegreesAssociatedToTeacherAsCoordinator(getTeacher()).contains(
                        ((MobilityIndividualApplicationProcess) child).getCandidacy().getSelectedDegree());
            }
View Full Code Here

            if (!isValid) {
                request.setAttribute(getIndividualCandidacyProcessBeanName(), getIndividualCandidacyProcessBean());
                return mapping.findForward("edit-candidacy-habilitations");
            }

            IndividualCandidacyProcess individualCandidacyProcess = bean.getIndividualCandidacyProcess();

            if (individualCandidacyProcess.getPersonalDetails().getPerson().getStudent() != null) {
                bean.setPersonNumber(individualCandidacyProcess.getPersonalDetails().getPerson().getStudent().getNumber()
                        .toString());
            }

            if (isOrWasEnrolledInInstitution(bean)) {
                addActionMessage("error", request, "error.degreeTransfer.is.or.was.enrolled.in.institution", Unit
View Full Code Here

    }

    private <T extends CandidacyProcess> boolean hasValidIndividualCandidacy(final Class<T> clazz,
            final ExecutionInterval executionInterval, final IndividualCandidacyProcessBean bean) {
        T candidacyProcess = CandidacyProcess.getCandidacyProcessByExecutionInterval(clazz, executionInterval);
        IndividualCandidacyProcess individualCandidacyProcess =
                candidacyProcess.getChildProcessByDocumentId(bean.getPersonBean().getIdDocumentType(), bean.getPersonBean()
                        .getDocumentIdNumber());
        return individualCandidacyProcess != null && !individualCandidacyProcess.isCandidacyCancelled();
    }
View Full Code Here

        return listProcessAllowedActivities(mapping, actionForm, request, response);
    }

    public ActionForward prepareExecuteEditDocuments(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        final IndividualCandidacyProcess process = getProcess(request);
        request.setAttribute(getIndividualCandidacyProcessBeanName(), process);
        CandidacyProcessDocumentUploadBean uploadBean = new CandidacyProcessDocumentUploadBean();
        uploadBean.setIndividualCandidacyProcess(process);
        request.setAttribute("candidacyDocumentUploadBean", uploadBean);
View Full Code Here

    }

    @Override
    public ActionForward listProcessAllowedActivities(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final IndividualCandidacyProcess process = getProcess(request);
        request.setAttribute("activities", getAllowedActivities(process));
        return mapping.findForward("list-allowed-activities");
    }
View Full Code Here

    protected abstract void prepareInformationForBindPersonToCandidacyOperation(HttpServletRequest request,
            IndividualCandidacyProcess process);

    public ActionForward prepareExecuteBindPersonToCandidacy(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        IndividualCandidacyProcess individualCandidacyProcess = getProcess(request);
        prepareInformationForBindPersonToCandidacyOperation(request, individualCandidacyProcess);
        setProcess(request);

        return mapping.findForward("select-person-for-bind-with-candidacy");
    }
View Full Code Here

        return mapping.findForward("edit-degree-courses-information");
    }

    public ActionForward prepareExecuteUploadApprovedLearningAgreement(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) {
        final IndividualCandidacyProcess process = getProcess(request);

        ApprovedLearningAgreementDocumentUploadBean bean = new ApprovedLearningAgreementDocumentUploadBean();

        bean.setType(IndividualCandidacyDocumentFileType.LEARNING_AGREEMENT);
        bean.setIndividualCandidacyProcess(process);
View Full Code Here

        @Override
        public Object provide(Object source, Object current) {
            List<IndividualCandidacyDocumentFileType> fileTypesList = new ArrayList<IndividualCandidacyDocumentFileType>();

            CandidacyProcessDocumentUploadBean uploadBean = (CandidacyProcessDocumentUploadBean) source;
            IndividualCandidacyProcess individualCandidacyProcess = uploadBean.getIndividualCandidacyProcess();

            if (individualCandidacyProcess.getAllFilesForType(IndividualCandidacyDocumentFileType.CV_DOCUMENT).size() <= 10) {
                fileTypesList.add(IndividualCandidacyDocumentFileType.CV_DOCUMENT);
            }

            if (individualCandidacyProcess.getAllFilesForType(
                    IndividualCandidacyDocumentFileType.HABILITATION_CERTIFICATE_DOCUMENT).size() <= 10) {
                fileTypesList.add(IndividualCandidacyDocumentFileType.HABILITATION_CERTIFICATE_DOCUMENT);
            }

            if (individualCandidacyProcess.getAllFilesForType(IndividualCandidacyDocumentFileType.DOCUMENT_IDENTIFICATION).size() <= 10) {
                fileTypesList.add(IndividualCandidacyDocumentFileType.DOCUMENT_IDENTIFICATION);
            }

            if (individualCandidacyProcess.getAllFilesForType(IndividualCandidacyDocumentFileType.PAYMENT_DOCUMENT).size() <= 10) {
                fileTypesList.add(IndividualCandidacyDocumentFileType.PAYMENT_DOCUMENT);
            }

            if (individualCandidacyProcess.getAllFilesForType(IndividualCandidacyDocumentFileType.REGISTRATION_CERTIFICATE)
                    .size() <= 10) {
                fileTypesList.add(IndividualCandidacyDocumentFileType.REGISTRATION_CERTIFICATE);
            }

            if (individualCandidacyProcess.getAllFilesForType(IndividualCandidacyDocumentFileType.NO_PRESCRIPTION_CERTIFICATE)
                    .size() <= 10) {
                fileTypesList.add(IndividualCandidacyDocumentFileType.NO_PRESCRIPTION_CERTIFICATE);
            }

            if (individualCandidacyProcess.getAllFilesForType(IndividualCandidacyDocumentFileType.VAT_CARD_DOCUMENT).size() <= 10) {
                fileTypesList.add(IndividualCandidacyDocumentFileType.VAT_CARD_DOCUMENT);
            }

            if (individualCandidacyProcess.getAllFilesForType(
                    IndividualCandidacyDocumentFileType.FIRST_CYCLE_ACCESS_HABILITATION_CERTIFICATE).size() <= 10) {
                fileTypesList.add(IndividualCandidacyDocumentFileType.FIRST_CYCLE_ACCESS_HABILITATION_CERTIFICATE);
            }

            if (individualCandidacyProcess.getAllFilesForType(
                    IndividualCandidacyDocumentFileType.FOREIGN_INSTITUTION_SCALE_CERTIFICATE).size() <= 10) {
                fileTypesList.add(IndividualCandidacyDocumentFileType.FOREIGN_INSTITUTION_SCALE_CERTIFICATE);
            }

            if (individualCandidacyProcess.getAllFilesForType(IndividualCandidacyDocumentFileType.GRADES_DOCUMENT).size() <= 10) {
                fileTypesList.add(IndividualCandidacyDocumentFileType.GRADES_DOCUMENT);
            }

            return fileTypesList;
        }
View Full Code Here

TOP

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

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.