public class

AddCommentAction

extends AbstractPreviewPageAction
implements CaptchaAware
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.AbstractPreviewPageAction
             ↳ com.atlassian.confluence.pages.actions.AddCommentAction

Summary

[Expand]
Inherited Constants
From class com.atlassian.confluence.pages.actions.AbstractPageAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From interface com.opensymphony.xwork.Action
[Expand]
Inherited Fields
From class com.atlassian.confluence.pages.actions.AbstractPreviewPageAction
From class com.atlassian.confluence.pages.actions.AbstractPageAction
From class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
Public Constructors
AddCommentAction()
Public Methods
static WebInterfaceContext createWebInterfaceContextWithComment(WebInterfaceContext context, Comment comment)
String execute()
String getCancelResult()
CaptchaManager getCaptchaManager()
Comment getComment()
long getParentId()
List getPermittedChildren()
String getTextContent()
WebInterfaceContext getWebInterfaceContext(Comment comment)
String getWysiwygContent()
Override since the base implementation will return the content of a page, instead of the comment.
boolean isPermitted()
void setCaptchaManager(CaptchaManager captchaManager)
void setCommentService(CommentService commentService)
void setNotificationManager(NotificationManager notificationManager)
void setParentId(long parentId)
void setTextContent(String textContent)
void setWatchPageAfterComment(boolean watchPageAfterComment)
void validate()
Convert the editor content to storageFormat, catching and reporting any problems in the process.
[Expand]
Inherited Methods
From class com.atlassian.confluence.pages.actions.AbstractPreviewPageAction
From class com.atlassian.confluence.pages.actions.AbstractPageAction
From class com.atlassian.confluence.pages.actions.AbstractPageAwareAction
From class com.atlassian.confluence.core.ConfluenceActionSupport
From class com.opensymphony.xwork.ActionSupport
From class java.lang.Object
From interface com.atlassian.confluence.pages.actions.PageAware
From interface com.atlassian.confluence.pages.actions.TinyUrlAware
From interface com.atlassian.confluence.plugin.descriptor.web.WebInterface
From interface com.opensymphony.xwork.Action
From interface com.opensymphony.xwork.LocaleProvider
From interface com.opensymphony.xwork.TextProvider
From interface com.opensymphony.xwork.Validateable
From interface com.opensymphony.xwork.ValidationAware

Public Constructors

public AddCommentAction ()

Public Methods

public static WebInterfaceContext createWebInterfaceContextWithComment (WebInterfaceContext context, Comment comment)

public String execute ()

Throws
Exception

public String getCancelResult ()

public CaptchaManager getCaptchaManager ()

public Comment getComment ()

public long getParentId ()

public List getPermittedChildren ()

public String getTextContent ()

public WebInterfaceContext getWebInterfaceContext (Comment comment)

public String getWysiwygContent ()

Override since the base implementation will return the content of a page, instead of the comment.

Returns
  • the editor formatted content for the CEO being edited.

public boolean isPermitted ()

public void setCaptchaManager (CaptchaManager captchaManager)

public void setCommentService (CommentService commentService)

public void setNotificationManager (NotificationManager notificationManager)

public void setParentId (long parentId)

public void setTextContent (String textContent)

public void setWatchPageAfterComment (boolean watchPageAfterComment)

public void validate ()

Convert the editor content to storageFormat, catching and reporting any problems in the process. On successful validation, the storageFormat field will be populated with a storage format representation of the editor content, ready for saving.