|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork.ActionSupport
com.atlassian.confluence.core.ConfluenceActionSupport
com.atlassian.confluence.pages.actions.AbstractPageAwareAction
com.atlassian.confluence.pages.actions.AbstractPageAction
com.atlassian.confluence.pages.actions.ViewPageAction
public class ViewPageAction
| Field Summary | |
|---|---|
protected CommentManager |
commentManager
|
protected Renderer |
editRenderer
|
static int |
HOT_REFERRERS_COUNT
|
protected NotificationManager |
notificationManager
|
protected ReferralManager |
referralManager
|
| 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 |
|---|
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, 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 |
| Constructor Summary | |
|---|---|
ViewPageAction()
|
|
| Method Summary | |
|---|---|
String |
execute()
|
String |
getAttachmentsWebDavUrl()
|
String |
getAttachmentsWebDavUrlForPage()
|
BlogPostsCalendar |
getCalendarForThisMonth()
|
CaptchaManager |
getCaptchaManager()
|
Boolean |
getChildrenShowing()
|
Comment |
getComment()
Gets the currently focused comment. |
String |
getCommentAsXHtmlForWysiwyg()
|
Boolean |
getCommentsShowing()
|
String |
getDateString(Date date)
|
ConfluenceEvent |
getEventToPublish(String result)
Gets the event to publish. |
List |
getExternalReferences()
|
BlogPost |
getFirstPostInNextMonth(Calendar postingDate)
Returns the first post in the month after the current postingDay This method is a duplication of the method in AbstractBlogPostsAction - they really shouldn't be here. |
long |
getFocusedCommentId()
Deprecated. since 2.8 use 'commentId' parameter from the web or getComment() from the application. |
List<ReferralLink> |
getHotReferrers()
Return a list of ReferralLinks that point to this page. |
List<ContentPermission> |
getInheritedContentPermissions()
|
BlogPost |
getLastPostInPreviousMonth(Calendar postingDate)
Returns the last post in the month before the current postingDay This method is a duplication of the method in AbstractBlogPostsAction - they really shouldn't be here. |
NotificationManager |
getNotificationManager()
|
String |
getPageContent()
Deprecated. since 4.0. This is not used anywhere. |
long |
getPageIdOfVersionAfter(AbstractPage page)
|
long |
getPageIdOfVersionBefore(AbstractPage page)
|
String |
getPageXHtmlContent()
|
Page |
getParentPage()
Returns the parent Page of the current Page or null if the current
AbstractPage is a root page or a blogpost. |
List |
getPossibleAlternativesElsewhere()
Deprecated. since 3.1 This action no longer uses possible alternatives so this method can be deleted. See PageNotFoundAction |
List |
getPossibleAlternativesInSpace()
Deprecated. since 3.1 This action no longer uses possible alternatives so this method can be deleted. See PageNotFoundAction |
long |
getReplyToComment()
|
Comment |
getRootComment()
Deprecated. since 2.8 the default theme no longer uses a "root comment". This method will remain until the other themes do the same. |
List<ContentPermission> |
getThisPagePermissions()
|
ConfluenceTrackbackUtils |
getTrackbackUtils()
|
List |
getViewInheritedContentPermissionSets()
|
WebInterfaceContext |
getWebInterfaceContext()
Returns a context which can be passed to web items when rendering them. |
WebInterfaceContext |
getWebInterfaceContext(Comment comment)
|
Map<Comment,String> |
getXHtmlComments()
|
boolean |
hasAnyPermissions()
checks if the page has any direct contentpermissions or inherited ones |
boolean |
hasNextVersion(AbstractPage page)
|
boolean |
hasPreviousVersion(AbstractPage page)
|
boolean |
isAttachmentsInWebDavFolder()
|
boolean |
isEditComment()
|
boolean |
isFavouritePage()
Deprecated. since 2.8 use AbstractLabelableEntityObject.isFavourite(User). |
boolean |
isLatestVersionRequired()
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. |
boolean |
isNavigatingVersions()
|
boolean |
isPageRequired()
If the action requires that the page be set before being run, then it should return true to this method. |
boolean |
isPermitted()
|
boolean |
isShowCommentArea()
|
boolean |
isThreadComments()
|
boolean |
isUserWatchingPage()
Returns true if the user is watching the current page. |
boolean |
isUserWatchingSpace()
Returns true if the user is watching the page/blog's space for the respective ContentType. |
boolean |
isViewPermissionRequired()
|
String |
renderExternalLink(com.atlassian.renderer.links.Link link)
|
String |
renderLink(String link)
Deprecated. Since 4.0. See PageInfoAction.renderWikiLink(String) instead. |
void |
setCaptchaManager(CaptchaManager captchaManager)
|
void |
setComment(Comment comment)
Sets the currently focused comment. |
void |
setCommentManager(CommentManager commentManager)
|
void |
setEditComment(boolean editComment)
|
void |
setEditRenderer(Renderer editRenderer)
|
void |
setFocusedCommentId(long focusedCommentId)
Deprecated. since 2.8 use 'commentId' parameter from the web or setComment(Comment) from the application. |
void |
setNavigatingVersions(boolean navigatingVersions)
|
void |
setNotificationManager(NotificationManager notificationManager)
|
void |
setPageContent(String pageContent)
Deprecated. since 4.0. This is not used anywhere. |
void |
setReferralManager(ReferralManager referralManager)
|
void |
setReplyToComment(long replyToComment)
|
void |
setRootCommentId(long rootCommentId)
Deprecated. since 2.8 the default theme no longer uses a "root comment". This method will remain until the other themes do the same. |
void |
setShowChildren(Boolean showChildren)
|
void |
setShowCommentArea(boolean showCommentArea)
|
void |
setShowComments(Boolean showComments)
|
void |
setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
Deprecated. Since 4.0. See PageInfoAction.renderWikiLink(String) instead. |
void |
setXhtmlContent(XhtmlContent xhtmlContent)
|
| Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction |
|---|
displayDatePath, getAttachmentSourceContent, getAvailableSpaces, getBeanKey, getBlogPost, getEditorVersion, getHelper, getIncomingLinks, getLabels, getMode, getNextPost, getNumberOfLabelsAsString, getPermissionTypes, getPermittedChildren, getPostingDate, getPostingDay, getPreviousPost, getPreviousVersion, getSpaceManager, getSuggestedLabels, getTinyUrl, hasAttachFilePermissions, hasPermittedChildren, isSpaceAdmin, isSuperUser, isUserWatchingOwnContent, setConfluenceWysiwygConverter, setEditorManager, setLinkManager, setMode, setPageManager, setPostingDate, setViewRenderer |
| Methods inherited from class com.atlassian.confluence.pages.actions.AbstractPageAwareAction |
|---|
getPage, getPageId, getSpace, getSpaceKey, getTitle, hasViewPagePermission, setContentPermissionManager, setPage, setSpaceManager |
| Methods inherited from class com.opensymphony.xwork.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, 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 |
| Field Detail |
|---|
public static final int HOT_REFERRERS_COUNT
protected ReferralManager referralManager
protected NotificationManager notificationManager
protected CommentManager commentManager
protected Renderer editRenderer
| Constructor Detail |
|---|
public ViewPageAction()
| Method Detail |
|---|
public Comment getComment()
getComment in interface CommentAwarepublic void setComment(Comment comment)
CommentAwareInterceptor.
setComment in interface CommentAwarecomment - the comment which is to be focused@Deprecated public void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
PageInfoAction.renderWikiLink(String) instead.
public void setReferralManager(ReferralManager referralManager)
@Deprecated public void setPageContent(String pageContent)
@Deprecated public String getPageContent()
public Page getParentPage()
Page of the current Page or null if the current
AbstractPage is a root page or a blogpost.
public List<ReferralLink> getHotReferrers()
public List getExternalReferences()
public boolean isPageRequired()
PageAware
isPageRequired in interface PageAwareisPageRequired in class AbstractPageAwareActionpublic boolean isLatestVersionRequired()
PageAware
isLatestVersionRequired in interface PageAwareisLatestVersionRequired in class AbstractPageAwareActionpublic boolean isViewPermissionRequired()
isViewPermissionRequired in interface PageAwareisViewPermissionRequired in class AbstractPageAwareAction
public String execute()
throws Exception
execute in interface com.opensymphony.xwork.Actionexecute in class com.opensymphony.xwork.ActionSupportExceptionpublic ConfluenceEvent getEventToPublish(String result)
Evented
getEventToPublish in interface Evented<ConfluenceEvent>result - the result of the action executing.
public String getPageXHtmlContent()
public Map<Comment,String> getXHtmlComments()
public Boolean getCommentsShowing()
public void setShowComments(Boolean showComments)
public Boolean getChildrenShowing()
public void setShowChildren(Boolean showChildren)
public NotificationManager getNotificationManager()
public void setNotificationManager(NotificationManager notificationManager)
public boolean isThreadComments()
@Deprecated public List getPossibleAlternativesInSpace()
PageNotFoundAction
@Deprecated public List getPossibleAlternativesElsewhere()
PageNotFoundAction
public boolean isUserWatchingPage()
NotificationManager.getNotificationByUserAndPage(User, AbstractPage)public boolean isUserWatchingSpace()
public ConfluenceTrackbackUtils getTrackbackUtils()
public String getDateString(Date date)
public boolean isAttachmentsInWebDavFolder()
public String getAttachmentsWebDavUrl()
public String getAttachmentsWebDavUrlForPage()
@Deprecated public String renderLink(String link)
PageInfoAction.renderWikiLink(String) instead.
link -
public String renderExternalLink(com.atlassian.renderer.links.Link link)
public long getReplyToComment()
public void setReplyToComment(long replyToComment)
@Deprecated public Comment getRootComment()
@Deprecated public void setRootCommentId(long rootCommentId)
@Deprecated public void setFocusedCommentId(long focusedCommentId)
setComment(Comment) from the application.
@Deprecated public long getFocusedCommentId()
getComment() from the application.
public BlogPostsCalendar getCalendarForThisMonth()
public BlogPost getFirstPostInNextMonth(Calendar postingDate)
AbstractBlogPostsActionpublic BlogPost getLastPostInPreviousMonth(Calendar postingDate)
AbstractBlogPostsActionpublic List<ContentPermission> getInheritedContentPermissions()
public List<ContentPermission> getThisPagePermissions()
public long getPageIdOfVersionBefore(AbstractPage page)
public long getPageIdOfVersionAfter(AbstractPage page)
public boolean hasPreviousVersion(AbstractPage page)
public boolean hasNextVersion(AbstractPage page)
public boolean isShowCommentArea()
public void setShowCommentArea(boolean showCommentArea)
public boolean isEditComment()
public void setEditComment(boolean editComment)
@Deprecated public boolean isFavouritePage()
AbstractLabelableEntityObject.isFavourite(User).
public boolean isNavigatingVersions()
public void setNavigatingVersions(boolean navigatingVersions)
public void setCommentManager(CommentManager commentManager)
public String getCommentAsXHtmlForWysiwyg()
public WebInterfaceContext getWebInterfaceContext()
WebInterface
getWebInterfaceContext in interface WebInterfacegetWebInterfaceContext in class AbstractPageActionpublic WebInterfaceContext getWebInterfaceContext(Comment comment)
public CaptchaManager getCaptchaManager()
public void setCaptchaManager(CaptchaManager captchaManager)
public boolean isPermitted()
isPermitted in class AbstractPageAwareActionpublic List getViewInheritedContentPermissionSets()
public boolean hasAnyPermissions()
public void setEditRenderer(Renderer editRenderer)
public void setXhtmlContent(XhtmlContent xhtmlContent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||