Class 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.
    • Constructor Detail

      • ConfluenceMailQueueItem

        public ConfluenceMailQueueItem​(String toAddress,
                                       String subject,
                                       String body,
                                       String mimeType)
      • ConfluenceMailQueueItem

        public ConfluenceMailQueueItem​(String toAddress,
                                       String ccAddress,
                                       String subject,
                                       String body,
                                       String mimeType,
                                       Collection<javax.activation.DataSource> attachedImages)
    • Method Detail

      • setSendLogs

        public void setSendLogs​(boolean sendLogs)
      • setLogsLocation

        public void setLogsLocation​(String logsLocation)
      • compareTo

        public int compareTo​(com.atlassian.mail.queue.MailQueueItem o)
        Specified by:
        compareTo in interface Comparable<com.atlassian.mail.queue.MailQueueItem>
      • send

        public void send()
                  throws com.atlassian.mail.MailException
        Specified by:
        send in interface com.atlassian.mail.queue.MailQueueItem
      • getSubject

        public String getSubject()
        Specified by:
        getSubject in interface com.atlassian.mail.queue.MailQueueItem
      • getDateQueued

        public Date getDateQueued()
        Specified by:
        getDateQueued in interface com.atlassian.mail.queue.MailQueueItem
      • getSendCount

        public int getSendCount()
        Specified by:
        getSendCount in interface com.atlassian.mail.queue.MailQueueItem
      • hasError

        public boolean hasError()
        Specified by:
        hasError in interface com.atlassian.mail.queue.MailQueueItem
      • getLastError

        public String getLastError()
      • getBody

        public String getBody()
      • getFromAddress

        public String getFromAddress()
        the address this mail item should appear to be from.
      • setFromAddress

        public void setFromAddress​(String fromAddress)
        fromAddress - the address the resultant e-mail should appear to be from
      • getFromName

        public String getFromName()
        the name of the sender the mail item should be from.
      • setFromName

        public void setFromName​(String fromName)
        fromName - the name to use for the sender of the mail item.