Class ViewMailQueueAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.admin.actions.mail.ViewMailQueueAction
- All Implemented Interfaces:
- WebInterface,- MessageHolderAware,- Serializable,- org.apache.struts2.action.Action,- org.apache.struts2.interceptor.ValidationAware,- org.apache.struts2.locale.LocaleProvider,- org.apache.struts2.text.TextProvider,- org.apache.struts2.Validateable
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 SummaryFields inherited from class com.atlassian.confluence.core.ConfluenceActionSupportaccessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, PREVIEW, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupportcontainerFields inherited from interface org.apache.struts2.action.ActionERROR, INPUT, LOGIN, NONE, SUCCESS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.TaskQueueWithErrorQueueCollection<com.atlassian.core.task.Task> getPage()booleanConsulted byPermissionCheckInterceptor.voidsetMailTaskQueue(com.atlassian.core.task.TaskQueueWithErrorQueue queue) voidMethods inherited from class com.atlassian.confluence.core.ConfluenceActionSupportaddActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getActiveRequest, getActiveResponse, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, 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, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManagerMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupportgetText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class org.apache.struts2.ActionSupportaddActionError, 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, validateMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.validation.MessageHolderAwarevalidate
- 
Constructor Details- 
ViewMailQueueActionpublic ViewMailQueueAction()
 
- 
- 
Method Details- 
isPermittedpublic boolean isPermitted()Description copied from class:ConfluenceActionSupportConsulted byPermissionCheckInterceptor.- Overrides:
- isPermittedin class- ConfluenceActionSupport
 
- 
execute- Specified by:
- executein interface- org.apache.struts2.action.Action
- Overrides:
- executein class- org.apache.struts2.ActionSupport
 
- 
getMailQueuepublic com.atlassian.core.task.TaskQueueWithErrorQueue getMailQueue()
- 
getMailQueueItemsFromTasks
- 
getErrorMailQueueItemsFromTasks
- 
doFlush
- 
doResendtransfer items on the error queue onto the normal queue and flush
- 
doDeleteErrorQueueremoves all items from the error queue
- 
doDeleteQueueused in functional tests to efficiently clear the list of notifications for teardown()
- 
getPage
- 
setPage
- 
setMailTaskQueuepublic void setMailTaskQueue(com.atlassian.core.task.TaskQueueWithErrorQueue queue) 
 
-