Class ConfluenceMailQueueItem
java.lang.Object
com.atlassian.confluence.mail.template.ConfluenceMailQueueItem
- All Implemented Interfaces:
com.atlassian.mail.queue.MailQueueItem
,Comparable<com.atlassian.mail.queue.MailQueueItem>
public class ConfluenceMailQueueItem
extends Object
implements com.atlassian.mail.queue.MailQueueItem
Simplified class to replace the somewhat confusing MailNotificationQueueItem hierarchy.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConfluenceMailQueueItem
(String toAddress, String subject, String body, String mimeType) ConfluenceMailQueueItem
(String toAddress, String ccAddress, String subject, String body, String mimeType) ConfluenceMailQueueItem
(String toAddress, String ccAddress, String subject, String body, String mimeType, Collection<javax.activation.DataSource> attachedImages) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(com.atlassian.mail.queue.MailQueueItem o) getBody()
int
boolean
hasError()
void
send()
Deprecated.void
setFromAddress
(String fromAddress) void
setFromName
(String fromName) void
setLogsLocation
(String logsLocation) void
setSendLogs
(boolean sendLogs)
-
Field Details
-
MIME_TYPE_HTML
- See Also:
-
MIME_TYPE_TEXT
- See Also:
-
-
Constructor Details
-
ConfluenceMailQueueItem
-
ConfluenceMailQueueItem
-
ConfluenceMailQueueItem
-
-
Method Details
-
setSendLogs
public void setSendLogs(boolean sendLogs) -
setLogsLocation
-
compareTo
public int compareTo(com.atlassian.mail.queue.MailQueueItem o) - Specified by:
compareTo
in interfaceComparable<com.atlassian.mail.queue.MailQueueItem>
-
send
Deprecated.- Specified by:
send
in interfacecom.atlassian.mail.queue.MailQueueItem
- Throws:
com.atlassian.mail.MailException
-
getSubject
- Specified by:
getSubject
in interfacecom.atlassian.mail.queue.MailQueueItem
-
getDateQueued
- Specified by:
getDateQueued
in interfacecom.atlassian.mail.queue.MailQueueItem
-
getSendCount
public int getSendCount()- Specified by:
getSendCount
in interfacecom.atlassian.mail.queue.MailQueueItem
-
hasError
public boolean hasError()- Specified by:
hasError
in interfacecom.atlassian.mail.queue.MailQueueItem
-
getLastError
-
getBody
-
getFromAddress
- Returns:
- the address this mail item should appear to be from.
-
setFromAddress
- Parameters:
fromAddress
- the address the resultant e-mail should appear to be from
-
getFromName
- Returns:
- the name of the sender the mail item should be from.
-
setFromName
- Parameters:
fromName
- the name to use for the sender of the mail item.
-