public class PageNotFoundAction extends ConfluenceActionSupport implements Spaced
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
PageNotFoundAction() |
Modifier and Type | Method and Description |
---|---|
String |
execute()
Tries to find a potential match for the missing page, and if found sets status to 404
and return SUCCESS to show the possible pages.
|
List<AbstractPage> |
getPossibleAlternativesElsewhere() |
List<AbstractPage> |
getPossibleAlternativesInSpace() |
List<AbstractPage> |
getPossibleAlternativesInSpaceSearch() |
List<AbstractPage> |
getPossibleAlternativesInTrash() |
Space |
getSpace() |
String |
getSpaceKey() |
ThemeManager |
getThemeManager() |
String |
getTitle() |
boolean |
isSpaceAdminUser() |
void |
setPageManager(PageManager pageManager) |
void |
setSpaceKey(String spaceKey) |
void |
setSpaceManager(SpaceManager spaceManager) |
void |
setThemeManager(ThemeManager themeManager) |
void |
setTitle(String title) |
void |
setXhtmlSummariser(Summariser xhtmlSummariser) |
String |
stripToPlainText(String html)
Strip a supplied String of HTML, removing tags and making it suitable for display as a summary.
|
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermitted, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
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
validate
public String getSpaceKey()
public void setSpaceKey(String spaceKey)
public String getTitle()
public void setTitle(String title)
public void setSpaceManager(SpaceManager spaceManager)
public void setPageManager(PageManager pageManager)
public void setThemeManager(ThemeManager themeManager)
public ThemeManager getThemeManager()
public String execute() throws IOException
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
IOException
public List<AbstractPage> getPossibleAlternativesElsewhere()
public List<AbstractPage> getPossibleAlternativesInSpace()
public List<AbstractPage> getPossibleAlternativesInTrash()
public List<AbstractPage> getPossibleAlternativesInSpaceSearch()
public boolean isSpaceAdminUser()
public String stripToPlainText(String html)
html
- public void setXhtmlSummariser(Summariser xhtmlSummariser)
Copyright © 2003–2017 Atlassian. All rights reserved.