Package org.fenixedu.academic.domain.util.email

Examples of org.fenixedu.academic.domain.util.email.UnitBasedSender


            HttpServletRequest request, HttpServletResponse response) {
        MarkSheetSendMailBean bean = (MarkSheetSendMailBean) RenderUtils.getViewState("sendMailBean").getMetaObject().getObject();
        Group teachersGroup = TeachersWithMarkSheetsToConfirmGroup.get(bean.getExecutionPeriod(), bean.getDegreeCurricularPlan());
        String message = getResources(request, "ACADEMIC_OFFICE_RESOURCES").getMessage("label.markSheets.to.confirm.send.mail");
        Recipient recipient = Recipient.newInstance(message, teachersGroup);
        UnitBasedSender sender = bean.getDegree().getAdministrativeOffice().getUnit().getUnitBasedSenderSet().iterator().next();
        return EmailsDA.sendEmail(request, sender, recipient);
    }
View Full Code Here


            HttpServletResponse response) {
        MarkSheetSendMailBean bean = (MarkSheetSendMailBean) RenderUtils.getViewState("sendMailBean").getMetaObject().getObject();
        Group teachersGroup = TeachersWithGradesToSubmitGroup.get(bean.getExecutionPeriod(), bean.getDegreeCurricularPlan());
        String message = getResources(request, "ACADEMIC_OFFICE_RESOURCES").getMessage("label.grades.to.submit.send.mail");
        Recipient recipient = Recipient.newInstance(message, teachersGroup);
        UnitBasedSender sender =
                AdministrativeOffice.readDegreeAdministrativeOffice().getUnit().getUnitBasedSenderSet().iterator().next();
        return EmailsDA.sendEmail(request, sender, recipient);
    }
View Full Code Here

        for (final PhdParticipant participant : participants) {
            if (participant.isInternal()) {
                toNotify.add(((InternalPhdParticipant) participant).getPerson());
            } else {
                Unit unit = process.getAdministrativeOffice().getUnit();
                UnitBasedSender sender = unit.getUnitBasedSenderSet().iterator().next();
                new Message(sender, Collections.<ReplyTo> emptyList(), Collections.<Recipient> emptyList(), getSubjectPrefixed(
                        process, subject), getBodyText(process, body), Collections.singleton(participant.getEmail()));
            }
        }
View Full Code Here

    }

    public List<Message> getEmailsWithMatchWithThisMessage() {
        List<Message> result = new ArrayList<Message>();

        UnitBasedSender sender = getSender();

        Collection<Message> messages = sender.getMessagesSet();

        for (Message message : messages) {
            if (getSubject().getContent().contentEquals(message.getSubject())) {
                result.add(message);
            }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.util.email.UnitBasedSender

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.