Class AddCommentAction

    • Constructor Detail

      • AddCommentAction

        public AddCommentAction()
    • Method Detail

      • validate

        public void validate()
        Description copied from class: AbstractPreviewPageAction
        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.
        Specified by:
        validate in interface MessageHolderAware
        Specified by:
        validate in interface com.opensymphony.xwork2.Validateable
        validate in class AbstractPreviewPageAction
      • execute

        public String execute()
                       throws Exception
        Specified by:
        execute in interface com.opensymphony.xwork2.Action
        execute in class com.opensymphony.xwork2.ActionSupport
      • getWysiwygContent

        public String getWysiwygContent()
        Override since the base implementation will return the content of a page, instead of the comment.
        getWysiwygContent in class AbstractPreviewPageAction
        the editor formatted content for the CEO being edited.
      • getComment

        public Comment getComment()
      • setParentId

        public void setParentId​(long parentId)
      • getParentId

        public long getParentId()
      • getTextContent

        public String getTextContent()
      • setTextContent

        public void setTextContent​(String textContent)
      • setCommentService

        public void setCommentService​(CommentService commentService)
      • setNotificationManager

        public void setNotificationManager​(NotificationManager notificationManager)
      • setWatchPageAfterComment

        public void setWatchPageAfterComment​(boolean watchPageAfterComment)
      • setCaptchaManager

        public void setCaptchaManager​(CaptchaManager captchaManager)