|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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
|
static int |
HOT_REFERRERS_COUNT
|
protected NotificationManager |
notificationManager
|
protected ReferralManager |
referralManager
|
protected com.atlassian.renderer.WikiStyleRenderer |
wikiStyleRenderer
|
Fields inherited from class com.atlassian.confluence.pages.actions.AbstractPageAction |
---|
incomingLinks, isXHtml, linkManager, MARKUP, pageManager, PREVIEW, RICHTEXT, 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 | |
---|---|
java.lang.String |
execute()
|
java.lang.String |
getAttachmentsWebDavUrl()
|
java.lang.String |
getAttachmentsWebDavUrlForPage()
|
BlogPostsCalendar |
getCalendarForThisMonth()
|
CaptchaManager |
getCaptchaManager()
|
java.lang.Boolean |
getChildrenShowing()
|
Comment |
getComment()
Gets the currently focused comment. |
java.lang.String |
getCommentAsXHtmlForWysiwyg()
|
java.lang.Boolean |
getCommentsShowing()
|
java.lang.String |
getDateString(java.util.Date date)
|
java.util.List |
getExternalReferences()
|
BlogPost |
getFirstPostInNextMonth(java.util.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. |
java.util.List<ReferralLink> |
getHotReferrers()
Return a list of ReferralLinks that point to this page. |
java.util.List |
getInheritedContentPermissions()
|
BlogPost |
getLastPostInPreviousMonth(java.util.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()
|
java.lang.String |
getPageContent()
|
long |
getPageIdOfVersionAfter(AbstractPage page)
|
long |
getPageIdOfVersionBefore(AbstractPage page)
|
java.lang.String |
getPageXHtmlContent()
|
java.util.List |
getPossibleAlternativesElsewhere()
|
java.util.List |
getPossibleAlternativesInSpace()
If the page doesn't exist, we look for pages that it may have been renamed to. |
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. |
ConfluenceTrackbackUtils |
getTrackbackUtils()
|
java.util.List |
getViewInheritedContentPermissionSets()
|
WebInterfaceContext |
getWebInterfaceContext()
Returns a context which can be passed to web items when rendering them. |
WebInterfaceContext |
getWebInterfaceContext(Comment comment)
|
java.util.Map |
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 ContentEntityObject.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()
|
boolean |
isViewPermissionRequired()
|
java.lang.String |
renderExternalLink(com.atlassian.renderer.links.Link link)
|
java.lang.String |
renderLink(java.lang.String link)
|
void |
setCaptchaManager(CaptchaManager captchaManager)
|
void |
setComment(Comment comment)
Sets the currently focused comment. |
void |
setCommentManager(CommentManager commentManager)
|
void |
setEditComment(boolean editComment)
|
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(java.lang.String pageContent)
|
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(java.lang.Boolean showChildren)
|
void |
setShowCommentArea(boolean showCommentArea)
|
void |
setShowComments(java.lang.Boolean showComments)
|
void |
setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
|
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 com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer
Constructor Detail |
---|
public ViewPageAction()
Method Detail |
---|
public Comment getComment()
getComment
in interface CommentAware
public void setComment(Comment comment)
CommentAwareInterceptor
.
setComment
in interface CommentAware
comment
- the comment which is to be focusedpublic void setWikiStyleRenderer(com.atlassian.renderer.WikiStyleRenderer wikiStyleRenderer)
public void setReferralManager(ReferralManager referralManager)
public void setPageContent(java.lang.String pageContent)
public java.lang.String getPageContent()
public java.util.List<ReferralLink> getHotReferrers()
public java.util.List getExternalReferences()
public boolean isPageRequired()
PageAware
isPageRequired
in interface PageAware
isPageRequired
in class AbstractPageAwareAction
public boolean isLatestVersionRequired()
PageAware
isLatestVersionRequired
in interface PageAware
isLatestVersionRequired
in class AbstractPageAwareAction
public boolean isViewPermissionRequired()
isViewPermissionRequired
in interface PageAware
isViewPermissionRequired
in class AbstractPageAwareAction
public java.lang.String execute() throws java.lang.Exception
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
java.lang.Exception
public java.lang.String getPageXHtmlContent()
public java.util.Map getXHtmlComments()
public java.lang.Boolean getCommentsShowing()
public void setShowComments(java.lang.Boolean showComments)
public java.lang.Boolean getChildrenShowing()
public void setShowChildren(java.lang.Boolean showChildren)
public NotificationManager getNotificationManager()
public void setNotificationManager(NotificationManager notificationManager)
public boolean isThreadComments()
public java.util.List getPossibleAlternativesInSpace()
public java.util.List getPossibleAlternativesElsewhere()
public boolean isUserWatchingPage()
NotificationManager.getNotificationByUserAndPage(User, AbstractPage)
public boolean isUserWatchingSpace()
public ConfluenceTrackbackUtils getTrackbackUtils()
public java.lang.String getDateString(java.util.Date date)
public boolean isAttachmentsInWebDavFolder()
public java.lang.String getAttachmentsWebDavUrl()
public java.lang.String getAttachmentsWebDavUrlForPage()
public java.lang.String renderLink(java.lang.String link)
public java.lang.String renderExternalLink(com.atlassian.renderer.links.Link link)
public long getReplyToComment()
public void setReplyToComment(long replyToComment)
public Comment getRootComment()
public void setRootCommentId(long rootCommentId)
public void setFocusedCommentId(long focusedCommentId)
setComment(Comment)
from the application.
public long getFocusedCommentId()
getComment()
from the application.
public BlogPostsCalendar getCalendarForThisMonth()
public BlogPost getFirstPostInNextMonth(java.util.Calendar postingDate)
AbstractBlogPostsAction
public BlogPost getLastPostInPreviousMonth(java.util.Calendar postingDate)
AbstractBlogPostsAction
public java.util.List getInheritedContentPermissions()
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)
public boolean isFavouritePage()
ContentEntityObject.isFavourite(User)
.
public boolean isNavigatingVersions()
public void setNavigatingVersions(boolean navigatingVersions)
public void setCommentManager(CommentManager commentManager)
public java.lang.String getCommentAsXHtmlForWysiwyg()
public WebInterfaceContext getWebInterfaceContext()
WebInterface
getWebInterfaceContext
in interface WebInterface
getWebInterfaceContext
in class AbstractPageAction
public WebInterfaceContext getWebInterfaceContext(Comment comment)
public CaptchaManager getCaptchaManager()
public void setCaptchaManager(CaptchaManager captchaManager)
public boolean isPermitted()
isPermitted
in class AbstractPageAwareAction
public java.util.List getViewInheritedContentPermissionSets()
public boolean hasAnyPermissions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |