Class PageInfoAction
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
com.atlassian.confluence.pages.actions.ViewPageAction
com.atlassian.confluence.pages.actions.PageInfoAction
- All Implemented Interfaces:
Evented<ConfluenceEvent>,CommentAware,PageAware,TinyUrlAware,WebInterface,ContentDetailAction,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
public class PageInfoAction
extends ViewPageAction
implements Evented<ConfluenceEvent>, ContentDetailAction
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.confluence.pages.actions.ViewPageAction
commentManager, DARK_FEATURE_CONFLUENCE_READABLE_URL, DARKFEATUE_CONFLUENCE_PAGE_READTIME, editRenderer, notificationManager, REQUEST_KEY_HELPERFields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction
incomingLinks, linkManager, pageManager, PREVIEW, RICHTEXT, viewRenderer, wysiwygConverterFields 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 TypeMethodDescriptionexecute()getEventToPublish(String result) Gets the event to publish.com.google.common.collect.Multimap<Space, SpaceContentEntityObject> Deprecated.since 7.0.1.intreturns the last five versions/revisions of this current page (if they exist)com.google.common.collect.Multimap<Space, SpaceContentEntityObject> Deprecated.since 7.0.1.booleanIf the action can only work on the most recent version of a page, this will cause the interceptor to silently replace the version that it looks up with the most recent version, if necessary.booleanrenderUrlLink(OutgoingLink link) voidsetLinkResolver(com.atlassian.renderer.links.LinkResolver linkResolver) Methods inherited from class com.atlassian.confluence.pages.actions.ViewPageAction
getChildrenShowing, getCollaborativeEditingHelper, getComment, getCommentAsXHtmlForWysiwyg, getCommentId, getDateString, getEditingUser, getExternalReferences, getForwardLocation, getInheritedContentPermissions, getNotificationManager, getPageIdOfVersionAfter, getPageIdOfVersionBefore, getPageXHtmlContent, getParentPage, getReadTime, getRedirectLocation, getReplyToComment, getThisPagePermissions, getViewInheritedContentPermissionSets, getWebInterfaceContext, getWebInterfaceContext, getXHtmlComments, hasAnyPermissions, hasNextVersion, hasPreviousVersion, isChildrenNotShown, isEditComment, isNavigatingVersions, isPageRequired, isPermitted, isShowCommentArea, isThreadComments, isUserWatchingPage, isUserWatchingSpace, pageIsLatestVersionAndDoesNotHaveSpace, renderExternalLink, setCollaborativeEditingHelper, setComment, setCommentManager, setDarkFeaturesManager, setEditComment, setEditRenderer, setEstimatedReadTimeService, setNavigatingVersions, setNotificationManager, setReplyToComment, setShowChildren, setShowCommentArea, setThemeManager, setViewPageActionPathConverter, setXhtmlContentMethods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction
displayDatePath, getAttachmentSourceContent, getAvailableSpaces, getBeanKey, getBlogPost, getEditorVersion, getHelper, getIncomingLinks, getLabels, getMode, getNextPost, getNumberOfAttachmentsAsString, getNumberOfLabelsAsString, getPermissionTypes, getPermittedChildren, getPostingDateAsDate, getPostingDay, getPostingTimeAsTime, getPreviousPost, getPreviousVersion, getSpaceManager, getSuggestedLabels, getTinyUrl, hasAttachFilePermissions, hasPermittedChildren, isSpaceAdmin, isSuperUser, isUserWatchingOwnContent, setConfluenceWysiwygConverter, setEditorManager, setLinkManager, setMode, setPageManager, setPostingDate, setPostingTime, setViewRenderer, validateMethods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
getCustomPageUrl, getPage, getPageId, getPageUrl, getSpace, getSpaceKey, getTitle, isCollaborativeContent, 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, 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
-
Constructor Details
-
PageInfoAction
public PageInfoAction()
-
-
Method Details
-
execute
- Specified by:
executein interfaceorg.apache.struts2.action.Action- Overrides:
executein classViewPageAction- Throws:
Exception
-
getEventToPublish
Description copied from interface:EventedGets the event to publish.- Specified by:
getEventToPublishin interfaceEvented<ConfluenceEvent>- Overrides:
getEventToPublishin classViewPageAction- Parameters:
result- the result of the action executing.- Returns:
- the event. Can be null, in which case no event will be published.
-
setLinkResolver
public void setLinkResolver(com.atlassian.renderer.links.LinkResolver linkResolver) -
getIncomingLinksMap
@Deprecated public com.google.common.collect.Multimap<Space,SpaceContentEntityObject> getIncomingLinksMap()Deprecated.since 7.0.1. UsegetIncomingLinksBySpace() -
getIncomingLinksBySpace
- Since:
- 7.0.1
-
getOutgoingLinks
@Deprecated public com.google.common.collect.Multimap<Space,SpaceContentEntityObject> getOutgoingLinks()Deprecated.since 7.0.1. UsegetOutgoingLinksBySpace() -
getOutgoingLinksBySpace
- Since:
- 7.0.1
-
getExternalLinks
-
renderUrlLink
-
getDestinationContentEntity
-
isLatestVersionRequired
public boolean isLatestVersionRequired()Description copied from interface:PageAwareIf the action can only work on the most recent version of a page, this will cause the interceptor to silently replace the version that it looks up with the most recent version, if necessary.- Specified by:
isLatestVersionRequiredin interfacePageAware- Overrides:
isLatestVersionRequiredin classViewPageAction- Returns:
- true if the action requires the most recent version of a page
-
isViewPermissionRequired
public boolean isViewPermissionRequired()- Specified by:
isViewPermissionRequiredin interfacePageAware- Overrides:
isViewPermissionRequiredin classViewPageAction- Returns:
- true if the action requires a check on the view page level permissions on this page
-
getChangesSinceLastEdit
-
getChangesSinceLastLogin
-
getLatestChanges
returns the last five versions/revisions of this current page (if they exist) -
getInitialVisibleChildCount
public int getInitialVisibleChildCount()
-