Package org.fenixedu.academic.domain.phd.candidacy.feedbackRequest

Examples of org.fenixedu.academic.domain.phd.candidacy.feedbackRequest.PhdCandidacyFeedbackRequestProcess$ExternalUploadCandidacyFeedback


    public ActionForward candidacyFeedbackDocumentsDownload(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) throws IOException {

        try {

            final PhdCandidacyFeedbackRequestProcess process = getFeedBackRequest(request);
            ExecuteProcessActivity.run(process, DownloadCandidacyFeedbackDocuments.class, getOperationBean());

            final Set<PhdProgramProcessDocument> documents = process.getSharedDocumentsContent();

            if (!documents.isEmpty()) {
                writeFile(response, getZipDocumentsFilename(process.getCandidacyProcess().getIndividualProgramProcess()),
                        PhdDocumentsZip.ZIP_MIME_TYPE, createZip(documents));

                return null;

            } else {
View Full Code Here


     */
    public ActionForward prepareUploadCandidacyFeedback(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final Person person = getLoggedPerson(request);
        final PhdCandidacyFeedbackRequestProcess feedbackRequest = getProcess(request).getFeedbackRequest();

        final PhdProgramDocumentUploadBean bean = new PhdProgramDocumentUploadBean();
        bean.setType(PhdIndividualProgramDocumentType.CANDIDACY_FEEDBACK_DOCUMENT);

        request.setAttribute("documentBean", bean);
        request.setAttribute("canUploadDocuments", feedbackRequest.canUploadDocuments());
        request.setAttribute("sharedDocuments", feedbackRequest.getSharedDocumentsContent());
        request.setAttribute("lastFeedbackDocument", feedbackRequest.getElement(person).getLastFeedbackDocument());

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

    public ActionForward prepareUploadCandidacyFeedbackInvalid(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {

        final Person person = getLoggedPerson(request);
        final PhdCandidacyFeedbackRequestProcess feedbackRequest = getProcess(request).getFeedbackRequest();

        request.setAttribute("documentBean", getRenderedObject("documentBean"));
        request.setAttribute("canUploadDocuments", feedbackRequest.canUploadDocuments());
        request.setAttribute("sharedDocuments", feedbackRequest.getSharedDocumentsContent());
        request.setAttribute("lastFeedbackDocument", feedbackRequest.getElement(person).getLastFeedbackDocument());

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

TOP

Related Classes of org.fenixedu.academic.domain.phd.candidacy.feedbackRequest.PhdCandidacyFeedbackRequestProcess$ExternalUploadCandidacyFeedback

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.