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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionConfluenceMailQueueItem(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 SummaryModifier 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- 
setSendLogspublic void setSendLogs(boolean sendLogs) 
- 
setLogsLocation
- 
compareTopublic int compareTo(com.atlassian.mail.queue.MailQueueItem o) - Specified by:
- compareToin interface- Comparable<com.atlassian.mail.queue.MailQueueItem>
 
- 
sendDeprecated.- Specified by:
- sendin interface- com.atlassian.mail.queue.MailQueueItem
- Throws:
- com.atlassian.mail.MailException
 
- 
getSubject- Specified by:
- getSubjectin interface- com.atlassian.mail.queue.MailQueueItem
 
- 
getDateQueued- Specified by:
- getDateQueuedin interface- com.atlassian.mail.queue.MailQueueItem
 
- 
getSendCountpublic int getSendCount()- Specified by:
- getSendCountin interface- com.atlassian.mail.queue.MailQueueItem
 
- 
hasErrorpublic boolean hasError()- Specified by:
- hasErrorin interface- com.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.
 
 
-