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

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


                AcademicAuthorizationGroup.get(AcademicOperationType.MANAGE_PHD_PROCESSES, this.getProcess().getPhdProgram());

        Set<Person> members = FluentIterable.from(group.getMembers()).transform(Person.userToPerson).toSet();
        new PhdAlertMessage(getProcess(), members, getFormattedSubject(), getFormattedBody());

        new Message(getSender(), new Recipient(group), buildMailSubject(), buildMailBody());

    }
View Full Code Here


        PhdParticipant participant = getPhdParticipant();
        if (participant.isInternal()) {
            InternalPhdParticipant internalParticipant = (InternalPhdParticipant) participant;
            new PhdAlertMessage(getProcess(), internalParticipant.getPerson(), getFormattedSubject(), buildBody(getProcess(),
                    participant));
            new Message(getSender(), new Recipient(Collections.singleton(internalParticipant.getPerson())), buildMailSubject(),
                    buildMailBody());
        } else {
            new Message(getSender(), Collections.<ReplyTo> emptyList(), Collections.<Recipient> emptyList(), buildMailSubject(),
                    buildMailBody(), Collections.singleton(participant.getEmail()));
        }

    }
View Full Code Here

        final String body =
                BundleUtil.getString(Bundle.APPLICATION, "email.request.room.body", test.getDescription(), coursesString, date,
                        time, degreesString, endTime);
        for (String email : getGOPEmail(degrees)) {
            new Message(getGOPSender(), email, subject, body);
        }
        test.setRequestRoomSentDate(new DateTime());
    }
View Full Code Here

        final String body =
                BundleUtil.getString(Bundle.APPLICATION, "email.request.room.body.edit", test.getDescription(), coursesString,
                        degreesString, test.getRequestRoomSentDateString(), oldDate, oldStartTime, oldEndTime, date, startTime,
                        endTime);
        for (String email : getGOPEmail(degrees)) {
            new Message(getGOPSender(), email, subject, body);
        }
        test.setRequestRoomSentDate(new DateTime());
    }
View Full Code Here

    @Override
    public boolean sendEmail(String emails, String subject, String body) {
        if (!Strings.isNullOrEmpty(emails)) {
            final Sender sender = getGOPSender();
            new Message(sender, sender.getConcreteReplyTos(), null, subject, body, emails);
            return true;
        }
        return false;
    }
View Full Code Here

    private void sendEmailToPersons(Set<Person> persons, String personsName, String subject, String body) {
        if (!persons.isEmpty()) {
            final Recipient recipient = new Recipient(getString("label.teachers"), UserGroup.of(Person.convertToUsers(persons)));
            SystemSender systemSender = Bennu.getInstance().getSystemSender();
            new Message(systemSender, systemSender.getConcreteReplyTos(), recipient.asCollection(), subject, body, "");
        }
    }
View Full Code Here

        final String message = messagePrefix + messagePosfix;

        Recipient recipient = new Recipient(groupName, UserGroup.of(Person.convertToUsers(recievers)));
        Sender sender = Bennu.getInstance().getSystemSender();
        String gopEmailAddress = Installation.getInstance().getInstituitionalEmailAddress("gop");
        new Message(sender, new ConcreteReplyTo(gopEmailAddress).asCollection(), recipient.asCollection(), subject, message, "");
    }
View Full Code Here

        final String groupName = messages.getMessage("message.group.name", studentGroup.getGroupNumber());
        final Collection<Recipient> recipients =
                Collections.singletonList(new Recipient(groupName, UserGroup.of(Person.convertToUsers(recievers))));

        SystemSender systemSender = Bennu.getInstance().getSystemSender();
        new Message(systemSender, systemSender.getConcreteReplyTos(), recipients,
                messages.getMessage("message.subject.grouping.change"), message, "");
    }
View Full Code Here

        final String message =
                messages.getMessage("message.body.grouping.change.unenrolment", registration.getNumber().toString(), studentGroup
                        .getGroupNumber().toString(), attend.getExecutionCourse().getNome());

        SystemSender systemSender = Bennu.getInstance().getSystemSender();
        new Message(systemSender, systemSender.getConcreteReplyTos(), recipients,
                messages.getMessage("message.subject.grouping.change"), message, "");

        return Boolean.TRUE;
    }
View Full Code Here

public class AlumniNotificationService {

    private static void sendEmail(final Collection<Recipient> recipients, final String subject, final String body,
            final String bccs) {
        SystemSender systemSender = Bennu.getInstance().getSystemSender();
        new Message(systemSender, systemSender.getConcreteReplyTos(), recipients, subject, body, bccs);
    }
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.