public class

EditCommentAction

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.EditCommentAction

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
EditCommentAction()
Public Methods
String doDefault()
Default webwork action execution method.
String doEdit()
CaptchaManager getCaptchaManager()
Comment getComment()
long getCommentId()
List getPermittedChildren()
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 setCommentId(long commentId)
void setCommentService(CommentService commentService)
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 EditCommentAction ()

Public Methods

public String doDefault ()

Default webwork action execution method.

Returns
  • the action result
Throws
Exception

public String doEdit ()

Throws
Exception

public CaptchaManager getCaptchaManager ()

public Comment getComment ()

public long getCommentId ()

public List getPermittedChildren ()

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 setCommentId (long commentId)

public void setCommentService (CommentService commentService)

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.