|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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, log, permissionManager, permitted, pluginAccessor, 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<AbstractPage> |
getPossibleAlternativesElsewhere()
|
List<AbstractPage> |
getPossibleAlternativesInSpace()
|
List<AbstractPage> |
getPossibleAlternativesInSpaceSearch()
|
List<AbstractPage> |
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()
getSpace
in interface Spaced
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |