Class DeleteComment

All Implemented Interfaces:
ErrorCollection, I18nHelper, IssueSummaryAware, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class DeleteComment extends AbstractIssueSelectAction
See Also:
  • Constructor Details

  • Method Details

    • doDefault

      public String doDefault()
      Handles the initial request to delete a comment coming from the user.

      It will return the view to render the confirm delete comment form, if the user is authorised to delete the comment.

      Overrides:
      doDefault in class webwork.action.ActionSupport
      Returns:
      The name of the view to render the confirm delete comment form (INPUT), if the user has authorisation to delete the comment.

      Otherwise, ERROR_NO_PERMISSION will be returned so that a screen with an error message can be rendered.

    • doExecute

      protected String doExecute() throws Exception
      Handles a request to delete a comment.

      It will delete the comment and redirect the user to the current issue if the user is authorised to the delete the comment and there are no input errors.

      Overrides:
      doExecute in class webwork.action.ActionSupport
      Returns:
      The user will be redirected to the current issue if he/she is authorised to the delete the comment and there are no input errors.

      ERROR_NO_PERMISSION will be returned if the user is not authorised to delete the comment, so that a screen with an error message can be rendered.

      Throws:
      Exception
    • setCommentId

      public void setCommentId(Long id)
      Sets the id of the comment to be deleted.
      Parameters:
      id - The id of the comment to be deleted.
    • getCommentId

      public Long getCommentId()
      Gets the id of the comment to be deleted.
      Returns:
      The id of the comment to be deleted.
    • getIssuePath

      public String getIssuePath()
      Description copied from class: AbstractIssueSelectAction
      Gets the relative path to the current issue. It does not include the context path.
      Overrides:
      getIssuePath in class AbstractIssueSelectAction
      Returns:
      The relative path to the current issue.
    • getRenderedContent

      public String getRenderedContent()
    • getFieldScreenRendererLayoutItemForField

      public FieldScreenRenderLayoutItem getFieldScreenRendererLayoutItemForField(OrderableField field)
    • getFieldScreenRendererWithAllFields

      protected FieldScreenRenderer getFieldScreenRendererWithAllFields()
    • getCommentObject

      public Comment getCommentObject()
    • getCommentAuthorKey

      public String getCommentAuthorKey()
    • getCommentUpdateAuthorKey

      public String getCommentUpdateAuthorKey()