Examples of CandidacyProcessDocumentUploadBean


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

    public void removeHabilitationCertificateDocument(final int index) {
        this.habilitationCertificateList.remove(index);
    }

    public void addReportOrWorkDocument() {
        this.reportOrWorkDocumentList.add(new CandidacyProcessDocumentUploadBean(
                IndividualCandidacyDocumentFileType.REPORT_OR_WORK_DOCUMENT));
    }
View Full Code Here

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

        this.istStudentNumber = value;
    }

    @Override
    public void initializeDocumentUploadBeans() {
        setDocumentIdentificationDocument(new CandidacyProcessDocumentUploadBean(
                IndividualCandidacyDocumentFileType.DOCUMENT_IDENTIFICATION));
        setPaymentDocument(new CandidacyProcessDocumentUploadBean(IndividualCandidacyDocumentFileType.PAYMENT_DOCUMENT));
        setVatCatCopyDocument(new CandidacyProcessDocumentUploadBean(IndividualCandidacyDocumentFileType.VAT_CARD_DOCUMENT));

        this.habilitationCertificateList = new ArrayList<CandidacyProcessDocumentUploadBean>();
        addHabilitationCertificateDocument();

        this.reportOrWorkDocumentList = new ArrayList<CandidacyProcessDocumentUploadBean>();
        addReportOrWorkDocument();

        this.handicapProofDocument =
                new CandidacyProcessDocumentUploadBean(IndividualCandidacyDocumentFileType.HANDICAP_PROOF_DOCUMENT);
        this.curriculumVitaeDocument = new CandidacyProcessDocumentUploadBean(IndividualCandidacyDocumentFileType.CV_DOCUMENT);
        setPhotoDocument(new CandidacyProcessDocumentUploadBean(IndividualCandidacyDocumentFileType.PHOTO));
    }
View Full Code Here

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

        }

        @Override
        protected DegreeCandidacyForGraduatedPersonIndividualProcess executeActivity(
                DegreeCandidacyForGraduatedPersonIndividualProcess process, User userView, Object object) {
            CandidacyProcessDocumentUploadBean bean = (CandidacyProcessDocumentUploadBean) object;
            process.bindIndividualCandidacyDocumentFile(bean);
            return process;
        }
View Full Code Here

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

        }

        @Override
        protected DegreeCandidacyForGraduatedPersonIndividualProcess executeActivity(
                DegreeCandidacyForGraduatedPersonIndividualProcess process, User userView, Object object) {
            CandidacyProcessDocumentUploadBean bean = (CandidacyProcessDocumentUploadBean) object;
            process.bindIndividualCandidacyDocumentFile(bean);
            return process;
        }
View Full Code Here

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

        }

        @Override
        protected SecondCycleIndividualCandidacyProcess executeActivity(SecondCycleIndividualCandidacyProcess process,
                User userView, Object object) {
            CandidacyProcessDocumentUploadBean bean = (CandidacyProcessDocumentUploadBean) object;
            process.bindIndividualCandidacyDocumentFile(bean);
            return process;
        }
View Full Code Here

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

        }

        @Override
        protected SecondCycleIndividualCandidacyProcess executeActivity(SecondCycleIndividualCandidacyProcess process,
                User userView, Object object) {
            CandidacyProcessDocumentUploadBean bean = (CandidacyProcessDocumentUploadBean) object;
            process.bindIndividualCandidacyDocumentFile(bean);
            return process;
        }
View Full Code Here

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

    public ActionForward revokeApprovedLearningAgreement(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        ApprovedLearningAgreementDocumentFile file =
                FenixFramework.getDomainObject(request.getParameter("approvedLearningAgreementId"));
        CandidacyProcessDocumentUploadBean documentBean = new CandidacyProcessDocumentUploadBean();
        documentBean.setDocumentFile(file);

        executeActivity(getProcess(request), "RevokeDocumentFile", documentBean);

        return prepareExecuteViewApprovedLearningAgreements(mapping, form, request, response);
    }
View Full Code Here

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

    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);

        RenderUtils.invalidateViewState("individualCandidacyProcessBean.document");

        return mapping.findForward("prepare-edit-candidacy-documents");
View Full Code Here

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

        return mapping.findForward("prepare-edit-candidacy-documents");
    }

    public ActionForward uploadDocument(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException, IOException {
        CandidacyProcessDocumentUploadBean uploadBean =
                (CandidacyProcessDocumentUploadBean) getObjectFromViewState("individualCandidacyProcessBean.document");
        try {
            IndividualCandidacyDocumentFile documentFile =
                    createIndividualCandidacyDocumentFile(uploadBean, uploadBean.getIndividualCandidacyProcess()
                            .getPersonalDetails().getDocumentIdNumber());
            uploadBean.setDocumentFile(documentFile);

            executeActivity(getProcess(request), "EditDocuments", uploadBean);
        } catch (DomainException e) {
            addActionMessage(request, e.getMessage(), e.getArgs());
        }
View Full Code Here

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

        return null;
    }

    public ActionForward revokeDocumentFile(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        CandidacyProcessDocumentUploadBean uploadBean =
                (CandidacyProcessDocumentUploadBean) getObjectFromViewState("individualCandidacyProcessBean.document");
        String documentExternalId = request.getParameter("documentFileOid");
        IndividualCandidacyDocumentFile documentFile = FenixFramework.getDomainObject(documentExternalId);
        uploadBean.setDocumentFile(documentFile);

        executeActivity(getProcess(request), "RevokeDocumentFile", uploadBean);

        return prepareExecuteEditDocuments(mapping, form, request, response);
    }
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.