|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.pages.actions.PageNotFoundAction
public class PageNotFoundAction
Redirect to this action if you ever find yourself in a "page not found" situation, it deals with possible alternative pages, and so on.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
|---|
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, log, permissionManager, permitted, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager |
| Fields inherited from class com.opensymphony.xwork.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
PageNotFoundAction()
|
|
| Method Summary | |
|---|---|
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 |
getPossibleAlternativesElsewhere()
|
List |
getPossibleAlternativesInSpace()
If the page doesn't exist, we look for pages that it may have been renamed to. |
List |
getPossibleAlternativesInSpaceSearch()
|
List |
getPossibleAlternativesInTrash()
|
Space |
getSpace()
|
String |
getSpaceKey()
|
String |
getTitle()
|
void |
setPageManager(PageManager pageManager)
|
void |
setSpaceKey(String spaceKey)
|
void |
setSpaceManager(SpaceManager spaceManager)
|
void |
setTitle(String title)
|
| Methods inherited from class com.opensymphony.xwork.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PageNotFoundAction()
| Method Detail |
|---|
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 Space getSpace()
public String execute()
throws IOException
execute in interface com.opensymphony.xwork.Actionexecute in class com.opensymphony.xwork.ActionSupportIOExceptionpublic List getPossibleAlternativesElsewhere()
public List getPossibleAlternativesInSpace()
public List getPossibleAlternativesInTrash()
public List getPossibleAlternativesInSpaceSearch()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||