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

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


        GroupsAndShiftsManagementLog.createLog(getExecutionCourse(), Bundle.MESSAGING,
                "log.executionCourse.groupAndShifts.shifts.attends.removed", registration.getNumber().toString(), getNome(),
                getExecutionCourse().getNome(), getExecutionCourse().getDegreePresentationString());
        registration.removeShifts(this);

        ExecutionCourseSender sender = ExecutionCourseSender.newInstance(executionCourse);
        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

TOP

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

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.