public abstract class AbstractPageAction extends AbstractPageAwareAction implements TinyUrlAware
Modifier and Type | Field and Description |
---|---|
protected List |
incomingLinks |
protected LinkManager |
linkManager |
protected PageManager |
pageManager |
static String |
PREVIEW |
static String |
RICHTEXT |
protected Renderer |
viewRenderer |
protected ConfluenceWysiwygConverter |
wysiwygConverter |
contentPermissionManager, spaceManager
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
AbstractPageAction() |
getFriendlyDateFormatterHelper, getPage, getPageId, getSpace, getSpaceKey, getTitle, isCollaborativeContent, isLatestVersionRequired, isPageRequired, isPermitted, isViewPermissionRequired, setContentPermissionManager, setPage, setSpaceManager
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapManager, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocale, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, 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, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEditPermissionRequired
validate
protected PageManager pageManager
protected LinkManager linkManager
protected List incomingLinks
protected ConfluenceWysiwygConverter wysiwygConverter
protected Renderer viewRenderer
public static final String RICHTEXT
public static final String PREVIEW
public String getPostingDay()
public boolean displayDatePath()
public BlogPost getBlogPost()
public void setPageManager(PageManager pageManager)
public void setLinkManager(LinkManager linkManager)
public List<OutgoingLink> getIncomingLinks()
protected List<String> getPermissionTypes()
getPermissionTypes
in class ConfluenceActionSupport
public Date getPostingDate()
public void setPostingDate(String date)
public BlogPost getNextPost()
public BlogPost getPreviousPost()
public String getTinyUrl()
getTinyUrl
in interface TinyUrlAware
protected boolean isSpaceAdmin()
@Deprecated public boolean isSuperUser()
public boolean isUserWatchingOwnContent()
public List getAvailableSpaces()
public AbstractPage getPreviousVersion(int version)
protected Object getBeanKey()
public ThemeHelper getHelper()
getHelper
in class ConfluenceActionSupport
public boolean hasPermittedChildren()
public boolean hasAttachFilePermissions()
public void setConfluenceWysiwygConverter(ConfluenceWysiwygConverter wysiwygConverter)
public String getMode()
public List getSuggestedLabels()
public void setMode(String mode)
public SpaceManager getSpaceManager()
public String getEditorVersion()
public void setEditorManager(EditorManager editorManager)
public WebInterfaceContext getWebInterfaceContext()
WebInterface
Typically, WebWork actions will implement this to provide extra details in the context such as content objects, and so on.
getWebInterfaceContext
in interface WebInterface
getWebInterfaceContext
in class ConfluenceActionSupport
protected String getNumberOfAttachmentsAsString()
protected String getNumberOfLabelsAsString()
public ContentEntityObject getAttachmentSourceContent()
ConfluenceEntityObject
that contains attachments relevant to the current action. E.g.:
AbstractPage
being viewed or edited.Draft
of the AbstractPage
being createdAbstractPage
to which the Comment
being created/edited
belongspublic void setViewRenderer(Renderer viewRenderer)
Copyright © 2003–2021 Atlassian. All rights reserved.