Class ViewMailQueueAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
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:
  • Constructor Details

    • ViewMailQueueAction

      public ViewMailQueueAction()
  • Method Details

    • isPermitted

      public boolean isPermitted()
      Description copied from class: ConfluenceActionSupport
      Overrides:
      isPermitted in class ConfluenceActionSupport
    • 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()
    • getMailQueueItemsFromTasks

      public Collection<com.atlassian.core.task.Task> getMailQueueItemsFromTasks()
    • getErrorMailQueueItemsFromTasks

      public Collection<com.atlassian.core.task.Task> getErrorMailQueueItemsFromTasks()
    • 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)