Package org.fenixedu.academic.domain.phd

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


        AlertService.alertStudent(process.getIndividualProgramProcess(), subject, body);
    }

    private void notifyJuryElements(final PhdThesisProcess process, final PhdThesisProcessBean bean) {
        for (final ThesisJuryElement juryElement : process.getThesisJuryElementsSet()) {
            final PhdParticipant participant = juryElement.getParticipant();
            sendAlertToJuryElement(process.getIndividualProgramProcess(), participant, bean);
        }
    }
View Full Code Here


            if (!juryElement.isInternal()) {
                createExternalAccess(juryElement.getParticipant());
            }

            final PhdParticipant participant = juryElement.getParticipant();
            sendAlertToJuryElement(process.getIndividualProgramProcess(), participant, bean);
        }

        if (process.getPresidentJuryElement() == null) {
            return;
        }

        PhdParticipant presidentParticipant = process.getPresidentJuryElement().getParticipant();
        if (!presidentParticipant.isInternal()) {
            createExternalAccess(presidentParticipant);
        }

        sendAlertToJuryElement(process.getIndividualProgramProcess(), presidentParticipant, bean);
    }
View Full Code Here

                        "message.phd.request.jury.reviews.external.access.jury.body");
            }
        }

        for (final ThesisJuryElement juryElement : process.getThesisJuryElementsSet()) {
            final PhdParticipant participant = juryElement.getParticipant();
            if (!juryElement.getReporter().booleanValue()) {
                continue;
            }

            new PhdReporterReviewAlert(process.getIndividualProgramProcess(), participant);
View Full Code Here

            new PhdReporterReviewAlert(process.getIndividualProgramProcess(), participant);
        }
    }

    private void sendInitialAlertToReporter(PhdIndividualProgramProcess process, ThesisJuryElement thesisJuryElement) {
        PhdParticipant participant = thesisJuryElement.getParticipant();

        if (!participant.isInternal()) {
            participant.ensureExternalAccess();
        }

        final AlertMessage subject =
                AlertMessage
                        .create(AlertMessage.get("message.phd.request.jury.reviews.external.access.subject", process
View Full Code Here

        AlertService.alertParticipants(process, subject, body, participant);
    }

    private void sendAlertToJuryElement(PhdIndividualProgramProcess process, ThesisJuryElement thesisJuryElement,
            String bodyMessage) {
        PhdParticipant participant = thesisJuryElement.getParticipant();

        if (!participant.isInternal()) {
            createExternalAccess(thesisJuryElement);
            participant.ensureExternalAccess();
        }
        final AlertMessage subject =
                AlertMessage
                        .create(AlertMessage.get("message.phd.request.jury.reviews.external.access.subject", process
                                .getPhdProgram().getName())).isKey(false).withPrefix(false);
View Full Code Here

        AlertService.alertParticipants(process, subject, body, participant);
    }

    private void createExternalAccess(final ThesisJuryElement juryElement) {

        final PhdParticipant participant = juryElement.getParticipant();
        participant.addAccessType(PhdProcessAccessType.JURY_DOCUMENTS_DOWNLOAD);

        if (juryElement.getReporter().booleanValue()) {
            participant.addAccessType(PhdProcessAccessType.JURY_REPORTER_FEEDBACK_UPLOAD);
        }
    }
View Full Code Here

        if (process.getPresidentJuryElement() != null) {
            throw new DomainException("error.ThesisJuryElement.president.already.exists");
        }

        final PhdParticipant participant = PhdParticipant.getUpdatedOrCreate(process.getIndividualProgramProcess(), bean);
        final ThesisJuryElement element = new ThesisJuryElement();

        element.checkParticipant(process, participant, true);
        element.setElementOrder(0);
        element.setProcessForPresidentJuryElement(process);
View Full Code Here

        }
    }

    protected void disconnect() {

        final PhdParticipant participant = getParticipant();
        setParticipant(null);
        participant.tryDelete();

        setProcess(null);
        setProcessForPresidentJuryElement(null);
        setRootDomainObject(null);
    }
View Full Code Here

            if (!juryElement.isInternal()) {
                createExternalAccess(juryElement.getParticipant());
            }

            final PhdParticipant participant = juryElement.getParticipant();
            sendAlertToJuryElement(process.getIndividualProgramProcess(), participant, bean);
        }

        PhdParticipant presidentParticipant = process.getPresidentJuryElement().getParticipant();
        if (!presidentParticipant.isInternal()) {
            createExternalAccess(presidentParticipant);
        }

        sendAlertToJuryElement(process.getIndividualProgramProcess(), presidentParticipant, bean);
    }
View Full Code Here

            if (juryElement.isDocumentValidated()) {
                continue;
            }

            final PhdParticipant participant = juryElement.getParticipant();

            sendReminderToReporter(process.getIndividualProgramProcess(), participant);
        }
    }
View Full Code Here

TOP

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

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.