public class

ViewMailQueueAction

extends ConfluenceActionSupport
java.lang.Object
   ↳ com.opensymphony.xwork.ActionSupport
     ↳ com.atlassian.confluence.core.ConfluenceActionSupport
       ↳ com.atlassian.confluence.admin.actions.mail.ViewMailQueueAction

Class Overview

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.

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
ViewMailQueueAction()
Public Methods
String doDeleteErrorQueue()
removes all items from the error queue
String doDeleteQueue()
used in functional tests to efficiently clear the list of notifications for teardown()
String doFlush()
String doResend()
transfer items on the error queue onto the normal queue and flush
TaskQueueWithErrorQueue getMailQueue()
String getPage()
boolean isPermitted()
void setMailTaskQueue(TaskQueueWithErrorQueue queue)
void setPage(String page)
[Expand]
Inherited Methods
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.plugin.descriptor.web.WebInterface
From interface com.opensymphony.xwork.Action
From interface com.opensymphony.xwork.LocaleProvider
From interface com.opensymphony.xwork.TextProvider
From interface com.opensymphony.xwork.Validateable
From interface com.opensymphony.xwork.ValidationAware

Public Constructors

public ViewMailQueueAction ()

Public Methods

public String doDeleteErrorQueue ()

removes all items from the error queue

public String doDeleteQueue ()

used in functional tests to efficiently clear the list of notifications for teardown()

public String doFlush ()

public String doResend ()

transfer items on the error queue onto the normal queue and flush

public TaskQueueWithErrorQueue getMailQueue ()

public String getPage ()

public boolean isPermitted ()

public void setMailTaskQueue (TaskQueueWithErrorQueue queue)

public void setPage (String page)