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

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


    public void deleteWithNotification() {
        final SystemSender sender = getRootDomainObject().getSystemSender();
        if (sender != null) {
            final Registration registration = getOutboundMobilityCandidacySubmission().getRegistration();
            final Recipient recipient = new Recipient(UserGroup.of(registration.getPerson().getUser()));
            new Message(sender, recipient, BundleUtil.getString(Bundle.STUDENT, "label.email.deleted.contest.subject"),
                    BundleUtil.getString(Bundle.STUDENT, "label.email.deleted.contest.body",
                            getOutboundMobilityCandidacyContest().getMobilityAgreement().getUniversityUnit()
                                    .getPresentationName()));
        }
        delete();
View Full Code Here


    abstract void process(Thesis thesis);

    private void sendEmail(Thesis thesis) {
        Sender sender = PersonSender.newInstance(AccessControl.getPerson());
        new Message(sender, null, getRecipients(thesis), getSubject(thesis), getMessage(thesis), "");
    }
View Full Code Here

        Collection<Recipient> recipients =
                Collections.singletonList(new Recipient(UserGroup.of(registration.getPerson().getUser())));
        final String subject = BundleUtil.getString(Bundle.APPLICATION, "label.shift.remove.subject");
        final String body = BundleUtil.getString(Bundle.APPLICATION, "label.shift.remove.body", getNome());

        new Message(sender, sender.getConcreteReplyTos(), recipients, subject, body, "");
    }
View Full Code Here

        }

        final Sender sender = getAdministrativeOffice().getUnit().getUnitBasedSenderSet().iterator().next();
        final Recipient recipient = new Recipient(UserGroup.of(getPerson().getUser()));
        new Message(sender, sender.getReplyTos(), recipient.asCollection(), getDescription(), body, "");
    }
View Full Code Here

TOP

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

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.