Class ListUndefinedPagesAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.spaces.actions.AbstractSpaceAction
-
- com.atlassian.confluence.pages.actions.AbstractPaginatedListAction<ListUndefinedPagesAction.UndefinedPage>
-
- com.atlassian.confluence.pages.actions.ListUndefinedPagesAction
-
- All Implemented Interfaces:
Evented<PageListViewEvent>,PaginationServiceSupportActionAware,WebInterface,SpaceAware,Spaced,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 ListUndefinedPagesAction extends AbstractPaginatedListAction<ListUndefinedPagesAction.UndefinedPage> implements Evented<PageListViewEvent>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classListUndefinedPagesAction.CacheableUndefinedLinksResultstatic classListUndefinedPagesAction.UndefinedPage
-
Field Summary
Fields Modifier and Type Field Description protected intcachingEnablingItemNumberprotected intcachingEnablingTimeout-
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPaginatedListAction
ITEMS_PER_PAGE, paginationSupport
-
Fields inherited from class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
eventPublisher, key, notificationManager, space, spaceManager, themeManager, wikiStyleRenderer
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description ListUndefinedPagesAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<ListUndefinedPagesAction.UndefinedPage>cacheResult(long cachingEnablingTimeout, int cachingEnablingItemNumber, long currentTime, Supplier<List<ListUndefinedPagesAction.UndefinedPage>> resultSupplier, Map<String,Object> cacheStorage)Return cached result if available or getting new dataStringexecute()PageListViewEventgetEventToPublish(String result)Gets the event to publish.ListgetItems()intgetMaxReferencesPerUndefinedPage()ListgetUndefinedPages()protected List<ListUndefinedPagesAction.UndefinedPage>prepareNewCache(int cachingEnablingItemNumber, long currentTime, Supplier<List<ListUndefinedPagesAction.UndefinedPage>> resultSupplier, Map<String,Object> cacheStorage)Clean previous cache, call supplier to get new data then put it into the cache if cache condition is matchvoidsetCacheTimeout(int cacheTimeout)voidsetDisableCaching(boolean disableCaching)voidsetPageManager(PageManager pageManager)-
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPaginatedListAction
getPaginationSupport, isSpaceRequired, isViewPermissionRequired, setStartIndex
-
Methods inherited from class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
getActionSpaceKey, getKey, getPermissionTypes, getSpace, getSpaceKey, getSpaceManager, getSubscribableName, getThemeManager, hasSpaceIA, isPermitted, isPersonalSpace, isUserWatchingSpace, isValidSpaceKey, setEventPublisher, setKey, setNotificationManager, setSpace, setSpaceManager, setThemeManager, setWikiStyleRenderer
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, 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
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
Methods inherited from interface com.atlassian.confluence.pages.actions.PaginationServiceSupportActionAware
getItemsCount, getPageResponse, isSupportPaginationService
-
Methods inherited from interface com.atlassian.confluence.spaces.actions.SpaceAware
setSpace
-
-
-
-
Method Detail
-
execute
public String execute() throws Exception
- Specified by:
executein interfacecom.opensymphony.xwork2.Action- Overrides:
executein classAbstractPaginatedListAction<ListUndefinedPagesAction.UndefinedPage>- Throws:
Exception
-
setDisableCaching
public void setDisableCaching(boolean disableCaching)
-
setCacheTimeout
public void setCacheTimeout(int cacheTimeout)
-
setPageManager
public void setPageManager(PageManager pageManager)
-
getUndefinedPages
public List getUndefinedPages()
-
getEventToPublish
public PageListViewEvent getEventToPublish(String result)
Description copied from interface:EventedGets the event to publish.- Specified by:
getEventToPublishin interfaceEvented<PageListViewEvent>- Parameters:
result- the result of the action executing.- Returns:
- the event. Can be null, in which case no event will be published.
-
getItems
public List getItems()
- Specified by:
getItemsin classAbstractPaginatedListAction<ListUndefinedPagesAction.UndefinedPage>
-
cacheResult
protected List<ListUndefinedPagesAction.UndefinedPage> cacheResult(long cachingEnablingTimeout, int cachingEnablingItemNumber, long currentTime, Supplier<List<ListUndefinedPagesAction.UndefinedPage>> resultSupplier, Map<String,Object> cacheStorage)
Return cached result if available or getting new data- Parameters:
cachingEnablingTimeout- living time of the cachecachingEnablingItemNumber- total number of item which will be put in cachecurrentTime- current time in millisecondsresultSupplier- result suppliercacheStorage- where we should store our cache- Returns:
-
prepareNewCache
protected List<ListUndefinedPagesAction.UndefinedPage> prepareNewCache(int cachingEnablingItemNumber, long currentTime, Supplier<List<ListUndefinedPagesAction.UndefinedPage>> resultSupplier, Map<String,Object> cacheStorage)
Clean previous cache, call supplier to get new data then put it into the cache if cache condition is match- Parameters:
cachingEnablingItemNumber-currentTime-resultSupplier-cacheStorage-- Returns:
-
getMaxReferencesPerUndefinedPage
public int getMaxReferencesPerUndefinedPage()
-
-