Class AbstractPageAction
java.lang.Object
org.apache.struts2.ActionSupport
com.atlassian.confluence.core.AbstractI18nActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.pages.actions.AbstractPageAwareAction
com.atlassian.confluence.pages.actions.AbstractPageAction
- All Implemented Interfaces:
PageAware,TinyUrlAware,WebInterface,MessageHolderAware,Serializable,org.apache.struts2.action.Action,org.apache.struts2.interceptor.ValidationAware,org.apache.struts2.locale.LocaleProvider,org.apache.struts2.text.TextProvider,org.apache.struts2.Validateable
- Direct Known Subclasses:
AbstractPreviewPageAction,RevertPageBackToVersionAction,ViewPageAction
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Listprotected LinkManagerprotected PageManagerstatic final Stringstatic final Stringprotected Rendererprotected ConfluenceWysiwygConverterFields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
contentPermissionManager, spaceManagerFields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, confluenceAccessManager, contentUiSupport, eventPublisher, formatSettingsManager, globalSettingsManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, localeManager, loginManager, messageHolder, permissionManager, pluginAccessor, request, response, spacePermissionManager, strutsHelper, systemInformationService, userAccessor, webInterfaceManagerFields inherited from class org.apache.struts2.ActionSupport
containerFields inherited from interface org.apache.struts2.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Date paths for blogs are deprecated.Returns theConfluenceEntityObjectthat contains attachments relevant to the current action.protected Objectreturns list of "unique" incoming links to this page.getMode()protected Stringprotected StringDeprecated.Date paths for blogs are deprecated.getPreviousVersion(int version) Returns a context which can be passed to web items when rendering them.booleanbooleanprotected booleanbooleanDeprecated.since 3.5 this method is not called anywhere and should not be usedbooleanvoidsetConfluenceWysiwygConverter(ConfluenceWysiwygConverter wysiwygConverter) voidsetEditorManager(EditorManager editorManager) voidsetLinkManager(LinkManager linkManager) voidvoidsetPageManager(PageManager pageManager) voidsetPostingDate(String date) voidsetPostingTime(String time) voidsetViewRenderer(Renderer viewRenderer) voidvalidate()Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
getCustomPageUrl, getPage, getPageId, getPageUrl, getSpace, getSpaceKey, getTitle, isCollaborativeContent, isLatestVersionRequired, isPageRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManagerMethods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, getActionErrors, getActionMessages, getActionName, getActiveRequest, getActiveResponse, getAuthenticatedUser, getBootstrapStatusProvider, getCancelResult, getDateFormatter, getDefaultTimeZone, getFieldErrors, getGlobalSettings, getI18n, getLocale, getMessageHolder, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getTimeZone, getUserByName, getUserInterfaceState, isAnonymousUser, isEmailVisible, setAccessModeService, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventPublisher, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setStrutsHelper, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManagerMethods inherited from class com.atlassian.confluence.core.AbstractI18nActionSupport
getText, getText, getText, getText, getText, getText, getText, getText, getTextStrictMethods inherited from class org.apache.struts2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getContainer, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, toLocaleMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.pages.actions.PageAware
isEditPermissionRequired
-
Field Details
-
pageManager
-
linkManager
-
incomingLinks
-
wysiwygConverter
-
viewRenderer
-
RICHTEXT
- See Also:
-
PREVIEW
- See Also:
-
-
Constructor Details
-
AbstractPageAction
public AbstractPageAction()
-
-
Method Details
-
getPostingDay
Deprecated.Date paths for blogs are deprecated. The method exists for backward compatibility only and should not be used in the new code. -
displayDatePath
Deprecated.Date paths for blogs are deprecated. The method exists for backward compatibility only and should not be used in the new code. -
validate
public void validate()- Specified by:
validatein interfaceMessageHolderAware- Specified by:
validatein interfaceorg.apache.struts2.Validateable- Overrides:
validatein classorg.apache.struts2.ActionSupport
-
getBlogPost
-
setPageManager
-
setLinkManager
-
getIncomingLinks
returns list of "unique" incoming links to this page. TODO remove this from AbstractPageAction and only use on relevant actions -
getPermissionTypes
- Overrides:
getPermissionTypesin classConfluenceActionSupport- See Also:
-
getPostingDateAsDate
-
setPostingDate
-
getPostingTimeAsTime
-
setPostingTime
-
getNextPost
-
getPreviousPost
-
getTinyUrl
- Specified by:
getTinyUrlin interfaceTinyUrlAware
-
isSpaceAdmin
protected boolean isSpaceAdmin() -
isSuperUser
Deprecated.since 3.5 this method is not called anywhere and should not be used- See Also:
-
isUserWatchingOwnContent
public boolean isUserWatchingOwnContent() -
getAvailableSpaces
-
getPreviousVersion
-
getBeanKey
-
getHelper
- Overrides:
getHelperin classConfluenceActionSupport
-
getPermittedChildren
-
hasPermittedChildren
public boolean hasPermittedChildren() -
hasAttachFilePermissions
public boolean hasAttachFilePermissions() -
setConfluenceWysiwygConverter
-
getMode
-
getSuggestedLabels
-
setMode
-
getSpaceManager
-
getEditorVersion
-
setEditorManager
-
getWebInterfaceContext
Description copied from interface:WebInterfaceReturns a context which can be passed to web items when rendering them.Typically, Struts actions will implement this to provide extra details in the context such as content objects, and so on.
- Specified by:
getWebInterfaceContextin interfaceWebInterface- Overrides:
getWebInterfaceContextin classConfluenceActionSupport
-
getNumberOfAttachmentsAsString
-
getLabels
-
getNumberOfLabelsAsString
-
getAttachmentSourceContent
Returns theConfluenceEntityObjectthat contains attachments relevant to the current action. E.g.:- The
AbstractPagebeing viewed or edited. - The
Draftof theAbstractPagebeing created - The
AbstractPageto which theCommentbeing created/edited belongs
- The
-
setViewRenderer
-