Class ViewMailQueueAction
java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.admin.actions.mail.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
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:
-
Field Summary
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, PREVIEW, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
Fields inherited from class com.opensymphony.xwork2.ActionSupport
container
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionremoves all items from the error queueused in functional tests to efficiently clear the list of notifications for teardown()doFlush()
doResend()
transfer items on the error queue onto the normal queue and flushexecute()
Collection<com.atlassian.core.task.Task>
com.atlassian.core.task.TaskQueueWithErrorQueue
Collection<com.atlassian.core.task.Task>
getPage()
boolean
Consulted byPermissionCheckInterceptor
.void
setMailTaskQueue
(com.atlassian.core.task.TaskQueueWithErrorQueue queue) void
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getCurrentRequest, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getHelper, getI18n, getLocale, getMessageHolder, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, getWebInterfaceContext, isAnonymousUser, isEmailVisible, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSkipIsPermitted, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, shouldSkipIsPermitted
Methods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrict
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocale, validate
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString, toLocale
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
Constructor Details
-
ViewMailQueueAction
public ViewMailQueueAction()
-
-
Method Details
-
isPermitted
public boolean isPermitted()Description copied from class:ConfluenceActionSupport
Consulted byPermissionCheckInterceptor
.- Overrides:
isPermitted
in classConfluenceActionSupport
-
execute
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
-
getMailQueue
public com.atlassian.core.task.TaskQueueWithErrorQueue getMailQueue() -
getMailQueueItemsFromTasks
-
getErrorMailQueueItemsFromTasks
-
doFlush
-
doResend
transfer items on the error queue onto the normal queue and flush -
doDeleteErrorQueue
removes all items from the error queue -
doDeleteQueue
used in functional tests to efficiently clear the list of notifications for teardown() -
getPage
-
setPage
-
setMailTaskQueue
public void setMailTaskQueue(com.atlassian.core.task.TaskQueueWithErrorQueue queue)
-