Package org.fenixedu.academic.domain.phd.alert.AlertService

Examples of org.fenixedu.academic.domain.phd.alert.AlertService.AlertMessage


        return each.getType() == PhdIndividualProgramDocumentType.FINAL_THESIS;
    }

    private void notifyAllElements(final PhdThesisProcess process, final PhdThesisProcessBean bean) {

        final AlertMessage subject = AlertMessage.create("message.phd.thesis.submit.subject");
        final AlertMessage body = AlertMessage.create("message.phd.thesis.submit.body");

        AlertService.alertResponsibleCoordinators(process.getIndividualProgramProcess(), subject, body);
        AlertService.alertGuiders(process.getIndividualProgramProcess(), subject, body);
        AlertService.alertStudent(process.getIndividualProgramProcess(), subject, body);
View Full Code Here


            sendReminderToReporter(process.getIndividualProgramProcess(), participant);
        }
    }

    private void sendReminderToReporter(PhdIndividualProgramProcess process, PhdParticipant participant) {
        final AlertMessage subject =
                AlertMessage
                        .create(AlertMessage.get("message.phd.remind.jury.reviews.subject", process.getPhdProgram().getName()))
                        .isKey(false).withPrefix(false);

        String partialBody = null;

        if (!hasExceededLimitForReview(process.getThesisProcess())) {
            partialBody =
                    AlertMessage.get("message.phd.remind.jury.reviews.body", process.getPerson().getName(),
                            process.getProcessNumber(), daysLeftUntilDeadline(process.getThesisProcess()));
        } else {
            partialBody =
                    AlertMessage.get("message.phd.remind.jury.reviews.body.late", process.getPerson().getName(),
                            process.getProcessNumber());
        }

        final AlertMessage body =
                AlertMessage
                        .create(partialBody
                                + "\n\n"
                                + getAccessInformation(process, participant,
                                        "message.phd.request.jury.reviews.coordinator.access",
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.phd.alert.AlertService.AlertMessage

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.