Class AbstractPageAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.pages.actions.AbstractPageAwareAction
-
- com.atlassian.confluence.pages.actions.AbstractPageAction
-
- All Implemented Interfaces:
PageAware
,TinyUrlAware
,WebInterface
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- Direct Known Subclasses:
AbstractPreviewPageAction
,RevertPageBackToVersionAction
,ViewPageAction
public abstract class AbstractPageAction extends AbstractPageAwareAction implements TinyUrlAware
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected List
incomingLinks
protected LinkManager
linkManager
protected PageManager
pageManager
static String
PREVIEW
static String
RICHTEXT
protected Renderer
viewRenderer
protected ConfluenceWysiwygConverter
wysiwygConverter
-
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
contentPermissionManager, spaceManager
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description AbstractPageAction()
-
Method Summary
-
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
getCustomPageUrl, getFriendlyDateFormatterHelper, getPage, getPageId, getPageUrl, getSpace, getSpaceKey, getTitle, isCollaborativeContent, isLatestVersionRequired, isPageRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManager
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, execute, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
Methods inherited from interface com.atlassian.confluence.pages.actions.PageAware
isEditPermissionRequired
-
-
-
-
Field Detail
-
pageManager
protected PageManager pageManager
-
linkManager
protected LinkManager linkManager
-
incomingLinks
protected List incomingLinks
-
wysiwygConverter
protected ConfluenceWysiwygConverter wysiwygConverter
-
viewRenderer
protected Renderer viewRenderer
-
RICHTEXT
public static final String RICHTEXT
- See Also:
- Constant Field Values
-
PREVIEW
public static final String PREVIEW
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPostingDay
@Deprecated public String 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 public boolean displayDatePath()
Deprecated.Date paths for blogs are deprecated. The method exists for backward compatibility only and should not be used in the new code.
-
getBlogPost
public BlogPost getBlogPost()
-
setPageManager
public void setPageManager(PageManager pageManager)
-
setLinkManager
public void setLinkManager(LinkManager linkManager)
-
getIncomingLinks
public List<OutgoingLink> getIncomingLinks()
returns list of "unique" incoming links to this page. TODO remove this from AbstractPageAction and only use on relevant actions
-
getPermissionTypes
protected List<String> getPermissionTypes()
- Overrides:
getPermissionTypes
in classConfluenceActionSupport
-
getPostingDateAsDate
public Date getPostingDateAsDate()
-
setPostingDate
public void setPostingDate(String date)
-
getPostingTimeAsTime
public LocalTime getPostingTimeAsTime()
-
setPostingTime
public void setPostingTime(String time)
-
getNextPost
public BlogPost getNextPost()
-
getPreviousPost
public BlogPost getPreviousPost()
-
getTinyUrl
public String getTinyUrl()
- Specified by:
getTinyUrl
in interfaceTinyUrlAware
-
isSpaceAdmin
protected boolean isSpaceAdmin()
-
isSuperUser
@Deprecated public boolean isSuperUser()
Deprecated.since 3.5 this method is not called anywhere and should not be used
-
isUserWatchingOwnContent
public boolean isUserWatchingOwnContent()
-
getAvailableSpaces
public List getAvailableSpaces()
-
getPreviousVersion
public AbstractPage getPreviousVersion(int version)
-
getBeanKey
protected Object getBeanKey()
-
getHelper
public ThemeHelper getHelper()
- Overrides:
getHelper
in classConfluenceActionSupport
-
hasPermittedChildren
public boolean hasPermittedChildren()
-
hasAttachFilePermissions
public boolean hasAttachFilePermissions()
-
setConfluenceWysiwygConverter
public void setConfluenceWysiwygConverter(ConfluenceWysiwygConverter wysiwygConverter)
-
getMode
public String getMode()
-
getSuggestedLabels
public List getSuggestedLabels()
-
setMode
public void setMode(String mode)
-
getSpaceManager
public SpaceManager getSpaceManager()
-
getEditorVersion
public String getEditorVersion()
-
setEditorManager
public void setEditorManager(EditorManager editorManager)
-
getWebInterfaceContext
public WebInterfaceContext getWebInterfaceContext()
Description copied from interface:WebInterface
Returns 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:
getWebInterfaceContext
in interfaceWebInterface
- Overrides:
getWebInterfaceContext
in classConfluenceActionSupport
-
getNumberOfAttachmentsAsString
protected String getNumberOfAttachmentsAsString()
-
getNumberOfLabelsAsString
protected String getNumberOfLabelsAsString()
-
getAttachmentSourceContent
public ContentEntityObject getAttachmentSourceContent()
Returns theConfluenceEntityObject
that contains attachments relevant to the current action. E.g.:- The
AbstractPage
being viewed or edited. - The
Draft
of theAbstractPage
being created - The
AbstractPage
to which theComment
being created/edited belongs
- The
-
setViewRenderer
public void setViewRenderer(Renderer viewRenderer)
-
-