Class ViewMailQueueAction

  • All Implemented Interfaces:
    WebInterface, MessageHolderAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

    public class ViewMailQueueAction
    extends ConfluenceActionSupport
    getMailQueue() returns an ErrorQueuedTaskQueue. This queue object maintains 2 queues:
    • The first is a queue of Task objects that may be decorated by a TaskDecorator (which is just a wrapper that keeps count of number of times the task has executed)
    • The second is the error queue which is of type DefaultTaskQueue. Items in this queue are undecorated.
    See Also:
    Serialized Form
    • Constructor Detail

      • ViewMailQueueAction

        public ViewMailQueueAction()
    • Method Detail

      • execute

        public String execute()
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        Overrides:
        execute in class com.opensymphony.xwork2.ActionSupport
      • getMailQueue

        public com.atlassian.core.task.TaskQueueWithErrorQueue getMailQueue()
      • doFlush

        public String doFlush()
      • doResend

        public String doResend()
        transfer items on the error queue onto the normal queue and flush
      • doDeleteErrorQueue

        public String doDeleteErrorQueue()
        removes all items from the error queue
      • doDeleteQueue

        public String doDeleteQueue()
        used in functional tests to efficiently clear the list of notifications for teardown()
      • getPage

        public String getPage()
      • setPage

        public void setPage​(String page)
      • setMailTaskQueue

        public void setMailTaskQueue​(com.atlassian.core.task.TaskQueueWithErrorQueue queue)
      • setEventPublisher

        public void setEventPublisher​(com.atlassian.event.api.EventPublisher eventPublisher)