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 class
ListUndefinedPagesAction.CacheableUndefinedLinksResult
static class
ListUndefinedPagesAction.UndefinedPage
-
Field Summary
Fields Modifier and Type Field Description protected int
cachingEnablingItemNumber
protected int
cachingEnablingTimeout
-
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPaginatedListAction
ITEMS_PER_PAGE, paginationSupport
-
Fields inherited from class com.atlassian.confluence.spaces.actions.AbstractSpaceAction
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, 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 dataString
execute()
PageListViewEvent
getEventToPublish(String result)
Gets the event to publish.List
getItems()
int
getMaxReferencesPerUndefinedPage()
List
getUndefinedPages()
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 matchvoid
setCacheTimeout(int cacheTimeout)
void
setDisableCaching(boolean disableCaching)
void
setPageManager(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
getKey, getPermissionTypes, getSpace, getSpaceKey, getSubscribableName, getThemeManager, hasSpaceIA, isPermitted, isPersonalSpace, isUserWatchingSpace, isValidSpaceKey, 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, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, 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, setApiContentUiSupport, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, 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:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in 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:Evented
Gets the event to publish.- Specified by:
getEventToPublish
in 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:
getItems
in 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()
-
-