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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfluenceMailQueueItem(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<jakarta.activation.DataSource> attachedImages) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(com.atlassian.mail.queue.MailQueueItem o) getBody()intbooleanhasError()voidsend()Deprecated.voidsetFromAddress(String fromAddress) voidsetFromName(String fromName) voidsetLogsLocation(String logsLocation) voidsetSendLogs(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:
compareToin interfaceComparable<com.atlassian.mail.queue.MailQueueItem>
-
send
Deprecated.- Specified by:
sendin interfacecom.atlassian.mail.queue.MailQueueItem- Throws:
com.atlassian.mail.MailException
-
getSubject
- Specified by:
getSubjectin interfacecom.atlassian.mail.queue.MailQueueItem
-
getDateQueued
- Specified by:
getDateQueuedin interfacecom.atlassian.mail.queue.MailQueueItem
-
getSendCount
public int getSendCount()- Specified by:
getSendCountin interfacecom.atlassian.mail.queue.MailQueueItem
-
hasError
public boolean hasError()- Specified by:
hasErrorin 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.
-