Class PageInfoAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- 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
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
public class PageInfoAction extends ViewPageAction implements Evented<ConfluenceEvent>, ContentDetailAction
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.pages.actions.ViewPageAction
commentManager, editRenderer, notificationManager, REQUEST_KEY_HELPER
-
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction
incomingLinks, linkManager, pageManager, PREVIEW, RICHTEXT, viewRenderer, 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 PageInfoAction()
-
Method Summary
-
Methods inherited from class com.atlassian.confluence.pages.actions.ViewPageAction
getCalendarForThisMonth, getCaptchaManager, getChildrenShowing, getCollaborativeEditingHelper, getComment, getCommentAsXHtmlForWysiwyg, getCommentId, getDateString, getEditingUser, getExternalReferences, getFirstPostInNextMonth, getInheritedContentPermissions, getLastPostInPreviousMonth, getNotificationManager, getPageIdOfVersionAfter, getPageIdOfVersionBefore, getPageXHtmlContent, getParentPage, getReplyToComment, getThisPagePermissions, getViewInheritedContentPermissionSets, getWebInterfaceContext, getWebInterfaceContext, getXHtmlComments, hasAnyPermissions, hasNextVersion, hasPreviousVersion, isChildrenNotShown, isEditComment, isNavigatingVersions, isPageRequired, isPermitted, isShowCommentArea, isThreadComments, isUserWatchingPage, isUserWatchingSpace, pageIsLatestVersionAndDoesNotHaveSpace, renderExternalLink, setCaptchaManager, setCollaborativeEditingHelper, setComment, setCommentManager, setEditComment, setEditRenderer, setNavigatingVersions, setNotificationManager, setReplyToComment, setShowChildren, setShowCommentArea, setThemeManager, setXhtmlContent
-
Methods 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
-
Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
getCustomPageUrl, getFriendlyDateFormatterHelper, getPage, getPageId, getPageUrl, getSpace, getSpaceKey, getTitle, isCollaborativeContent, 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, 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
-
-
-
-
Method Detail
-
execute
public String execute() throws Exception
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classViewPageAction
- Throws:
Exception
-
getEventToPublish
public ConfluenceEvent getEventToPublish(String result)
Description copied from interface:Evented
Gets the event to publish.- Specified by:
getEventToPublish
in interfaceEvented<ConfluenceEvent>
- Overrides:
getEventToPublish
in 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
public Map<Space,Collection<SpaceContentEntityObject>> getIncomingLinksBySpace()
- Since:
- 7.0.1
-
getOutgoingLinks
@Deprecated public com.google.common.collect.Multimap<Space,SpaceContentEntityObject> getOutgoingLinks()
Deprecated.since 7.0.1. UsegetOutgoingLinksBySpace()
-
getOutgoingLinksBySpace
public Map<Space,Collection<SpaceContentEntityObject>> getOutgoingLinksBySpace()
- Since:
- 7.0.1
-
getExternalLinks
public Collection<OutgoingLink> getExternalLinks()
-
renderUrlLink
public String renderUrlLink(OutgoingLink link)
-
getDestinationContentEntity
public ContentEntityObject getDestinationContentEntity(OutgoingLink link)
-
isLatestVersionRequired
public boolean isLatestVersionRequired()
Description copied from interface:PageAware
If 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:
isLatestVersionRequired
in interfacePageAware
- Overrides:
isLatestVersionRequired
in classViewPageAction
- Returns:
- true if the action requires the most recent version of a page
-
isViewPermissionRequired
public boolean isViewPermissionRequired()
- Specified by:
isViewPermissionRequired
in interfacePageAware
- Overrides:
isViewPermissionRequired
in classViewPageAction
- Returns:
- true if the action requires a check on the view page level permissions on this page
-
getChangesSinceLastEdit
public PageChangesBean getChangesSinceLastEdit()
-
getChangesSinceLastLogin
public PageChangesBean getChangesSinceLastLogin()
-
getLatestChanges
public List<VersionHistorySummary> getLatestChanges()
returns the last five versions/revisions of this current page (if they exist)
-
getInitialVisibleChildCount
public int getInitialVisibleChildCount()
-
-