public class SimpleMailPublisher extends java.lang.Object implements ScheduledPublisher
Constructor and Description |
---|
SimpleMailPublisher(SimpleMailPublisher config) |
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
beginUser(java.lang.String user) |
void |
end() |
void |
endUser(java.lang.String user) |
protected ResultFeed |
getInterestingFeed(ScheduledAlertOccurrence ao) |
void |
publish(ScheduledAlertOccurrence occurrence) |
protected void |
sendMail(java.lang.String user,
java.util.List<ScheduledAlertOccurrence> occurrences) |
public SimpleMailPublisher(SimpleMailPublisher config) throws java.lang.Exception
java.lang.Exception
public void begin() throws AlertingException
begin
in interface ScheduledPublisher
AlertingException
public void beginUser(java.lang.String user) throws AlertingException
beginUser
in interface ScheduledPublisher
AlertingException
public void publish(ScheduledAlertOccurrence occurrence) throws AlertingException
publish
in interface ScheduledPublisher
AlertingException
public void endUser(java.lang.String user) throws AlertingException
endUser
in interface ScheduledPublisher
AlertingException
public void end() throws AlertingException
end
in interface ScheduledPublisher
AlertingException
protected ResultFeed getInterestingFeed(ScheduledAlertOccurrence ao)
protected void sendMail(java.lang.String user, java.util.List<ScheduledAlertOccurrence> occurrences) throws javax.mail.MessagingException, java.io.IOException, freemarker.template.TemplateException
javax.mail.MessagingException
java.io.IOException
freemarker.template.TemplateException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.