public class ListUndefinedPagesAction extends AbstractPaginatedListAction<ListUndefinedPagesAction.UndefinedPage> implements Evented<PageListViewEvent>
Modifier and Type | Class and Description |
---|---|
static class |
ListUndefinedPagesAction.CacheableUndefinedLinksResult |
static class |
ListUndefinedPagesAction.UndefinedPage |
Modifier and Type | Field and Description |
---|---|
protected int |
cachingEnablingItemNumber |
protected int |
cachingEnablingTimeout |
ITEMS_PER_PAGE, paginationSupport
key, notificationManager, space, spaceManager, themeManager, wikiStyleRenderer
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
ListUndefinedPagesAction() |
Modifier and Type | Method and Description |
---|---|
protected List<ListUndefinedPagesAction.UndefinedPage> |
cacheResult(long cachingEnablingTimeout,
int cachingEnablingItemNumber,
long currentTime,
Supplier<List<ListUndefinedPagesAction.UndefinedPage>> resultSupplier,
Map cacheStorage)
Return cached result if available or getting new data
|
String |
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 cacheStorage)
Clean previous cache, call supplier to get new data then put it into the cache if cache condition is match
|
void |
setCacheTimeout(int cacheTimeout) |
void |
setDisableCaching(boolean disableCaching) |
void |
setPageManager(PageManager pageManager) |
getPaginationSupport, isSpaceRequired, isViewPermissionRequired, setStartIndex
getKey, getPermissionTypes, getSpace, getSpaceKey, getSubscribableName, getThemeManager, hasSpaceIA, isPermitted, isPersonalSpace, isUserWatchingSpace, isValidSpaceKey, setKey, setNotificationManager, setSpace, setSpaceManager, setThemeManager, setWikiStyleRenderer
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, 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, 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, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setSpace
getItemsCount, getPageResponse, isSupportPaginationService
validate
protected int cachingEnablingItemNumber
protected int cachingEnablingTimeout
public String execute() throws Exception
execute
in interface com.opensymphony.xwork.Action
execute
in class AbstractPaginatedListAction<ListUndefinedPagesAction.UndefinedPage>
Exception
public void setDisableCaching(boolean disableCaching)
public void setCacheTimeout(int cacheTimeout)
public void setPageManager(PageManager pageManager)
public List getUndefinedPages()
public PageListViewEvent getEventToPublish(String result)
Evented
getEventToPublish
in interface Evented<PageListViewEvent>
result
- the result of the action executing.public List getItems()
getItems
in class AbstractPaginatedListAction<ListUndefinedPagesAction.UndefinedPage>
protected List<ListUndefinedPagesAction.UndefinedPage> cacheResult(long cachingEnablingTimeout, int cachingEnablingItemNumber, long currentTime, Supplier<List<ListUndefinedPagesAction.UndefinedPage>> resultSupplier, Map cacheStorage)
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 cacheprotected List<ListUndefinedPagesAction.UndefinedPage> prepareNewCache(int cachingEnablingItemNumber, long currentTime, Supplier<List<ListUndefinedPagesAction.UndefinedPage>> resultSupplier, Map cacheStorage)
cachingEnablingItemNumber
- currentTime
- resultSupplier
- cacheStorage
- public int getMaxReferencesPerUndefinedPage()
Copyright © 2003–2021 Atlassian. All rights reserved.