com.atlassian.confluence.mail.template
Class ConfluenceMailQueueItem
java.lang.Object
com.atlassian.confluence.mail.template.ConfluenceMailQueueItem
- All Implemented Interfaces:
- com.atlassian.core.task.Task, MailQueueItem, Serializable
public class ConfluenceMailQueueItem
- extends Object
- implements MailQueueItem
Simplified class to replace the somewhat confusing MailNotificationQueueItem hierarchy.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIME_TYPE_HTML
public static final String MIME_TYPE_HTML
- See Also:
- Constant Field Values
MIME_TYPE_TEXT
public static final String MIME_TYPE_TEXT
- See Also:
- Constant Field Values
ConfluenceMailQueueItem
public ConfluenceMailQueueItem(String toAddress,
String subject,
String body,
String mimeType)
ConfluenceMailQueueItem
public ConfluenceMailQueueItem(String toAddress,
String ccAddress,
String subject,
String body,
String mimeType)
setSendLogs
public void setSendLogs(boolean sendLogs)
setLogsLocation
public void setLogsLocation(String logsLocation)
send
public void send()
throws MailException
- Specified by:
send
in interface MailQueueItem
- Throws:
MailException
getSubject
public String getSubject()
- Specified by:
getSubject
in interface MailQueueItem
getDateQueued
public Date getDateQueued()
- Specified by:
getDateQueued
in interface MailQueueItem
getSendCount
public int getSendCount()
- Specified by:
getSendCount
in interface MailQueueItem
hasError
public boolean hasError()
- Specified by:
hasError
in interface MailQueueItem
execute
public void execute()
throws Exception
- Specified by:
execute
in interface com.atlassian.core.task.Task
- Throws:
Exception
getLastError
public String getLastError()
getBody
public String getBody()
getFromAddress
public String getFromAddress()
- Returns:
- the address this mail item should appear to be from.
setFromAddress
public void setFromAddress(String fromAddress)
- Parameters:
fromAddress
- the address the resultant e-mail should appear to be from
getFromName
public String getFromName()
- Returns:
- the name of the sender the mail item should be from.
setFromName
public void setFromName(String fromName)
- Parameters:
fromName
- the name to use for the sender of the mail item.