com.atlassian.confluence.pages.actions
Class AbstractPageAction
java.lang.Object
com.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.pages.actions.AbstractPageAwareAction
com.atlassian.confluence.pages.actions.AbstractPageAction
- All Implemented Interfaces:
- PageAware, TinyUrlAware, WebInterface, com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, java.io.Serializable
- Direct Known Subclasses:
- AbstractPageChangeAction, AbstractPreviewPageAction, ExportWordPageAction, RevertPageBackToVersionAction, ViewPageAction
public abstract class AbstractPageAction
- extends AbstractPageAwareAction
- implements TinyUrlAware
- See Also:
- Serialized Form
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, log, permissionManager, permitted, pluginAccessor, 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 |
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction |
getPage, getPageId, getSpace, getSpaceKey, getTitle, hasViewPagePermission, isLatestVersionRequired, isPageRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManager |
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport |
addActionError, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getBootstrapManager, getCancelResult, getDateFormatter, getDefaultResourceBundle, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getNiceContentType, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRandom, getRemoteUser, getSession, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserFullName, getUserInterfaceState, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPermissionCheck, isPermittedAsString, isPrintableVersion, isSharedMode, isUserStatusPluginEnabled, isUsingHSQL, setBootstrapManager, setCancel, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setPermissionCheck, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setSettingsManager, setSpacePermissionManager, setUserAccessor, setWebInterfaceManager |
Methods inherited from class com.opensymphony.xwork.ActionSupport |
addActionError, addActionMessage, addFieldError, execute, 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 |
pageManager
protected PageManager pageManager
linkManager
protected LinkManager linkManager
incomingLinks
protected java.util.List incomingLinks
isXHtml
protected boolean isXHtml
wysiwygConverter
protected ConfluenceWysiwygConverter wysiwygConverter
RICHTEXT
public static final java.lang.String RICHTEXT
- See Also:
- Constant Field Values
MARKUP
public static final java.lang.String MARKUP
- See Also:
- Constant Field Values
PREVIEW
public static final java.lang.String PREVIEW
- See Also:
- Constant Field Values
AbstractPageAction
public AbstractPageAction()
getPostingDay
public java.lang.String getPostingDay()
displayDatePath
public boolean displayDatePath()
getPostingYear
public java.lang.String getPostingYear()
getPostingMonth
public java.lang.String getPostingMonth()
getPostingMonthNumeric
public java.lang.String getPostingMonthNumeric()
getPostingDayOfMonth
public java.lang.String getPostingDayOfMonth()
getBlogPost
public BlogPost getBlogPost()
setPageManager
public void setPageManager(PageManager pageManager)
setLinkManager
public void setLinkManager(LinkManager linkManager)
getIncomingLinks
public java.util.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 java.util.List<java.lang.String> getPermissionTypes()
- Overrides:
getPermissionTypes
in class ConfluenceActionSupport
getPostingDate
public java.util.Date getPostingDate()
setPostingDate
public void setPostingDate(java.util.Date date)
getNextPost
public BlogPost getNextPost()
getPreviousPost
public BlogPost getPreviousPost()
getTinyUrl
public java.lang.String getTinyUrl()
- Specified by:
getTinyUrl
in interface TinyUrlAware
isSpaceAdmin
protected boolean isSpaceAdmin()
getAvailableSpaces
public java.util.List getAvailableSpaces()
getPreviousVersion
public AbstractPage getPreviousVersion(int version)
getBeanKey
protected java.lang.Object getBeanKey()
getHelper
public ThemeHelper getHelper()
- Overrides:
getHelper
in class ConfluenceActionSupport
getPermittedChildren
public java.util.List getPermittedChildren()
hasPermittedChildren
public boolean hasPermittedChildren()
hasAttachFilePermissions
public boolean hasAttachFilePermissions()
setXhtml
public void setXhtml(boolean XHtml)
getXhtml
public boolean getXhtml()
setConfluenceWysiwygConverter
public void setConfluenceWysiwygConverter(ConfluenceWysiwygConverter wysiwygConverter)
getUseWysiwyg
public boolean getUseWysiwyg()
getSupportWysiwyg
public boolean getSupportWysiwyg()
getShowMarkup
public boolean getShowMarkup()
getMode
public java.lang.String getMode()
getSuggestedLabels
public java.util.List getSuggestedLabels()
setMode
public void setMode(java.lang.String mode)
getRICHTEXT
public static java.lang.String getRICHTEXT()
getMARKUP
public static java.lang.String getMARKUP()
getPREVIEW
public static java.lang.String getPREVIEW()
getSpaceManager
public SpaceManager getSpaceManager()
getEditor
public Editor getEditor()
getEditorVersion
public java.lang.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, WebWork actions will implement this to provide extra details in the context such as content objects, and so on.
- Specified by:
getWebInterfaceContext
in interface WebInterface
- Overrides:
getWebInterfaceContext
in class ConfluenceActionSupport
getAttachmentSourceContent
public ContentEntityObject getAttachmentSourceContent()
- Returns the
ConfluenceEntityObject
that contains attachments relevant to the current action. E.g.:
Copyright © 2003-2010 Atlassian. All Rights Reserved.