Class BulkCommentServiceImpl

java.lang.Object
com.atlassian.greenhopper.service.issue.comment.BulkCommentServiceImpl
All Implemented Interfaces:
BulkCommentService

@Service public class BulkCommentServiceImpl extends Object implements BulkCommentService
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.atlassian.greenhopper.service.issue.comment.BulkCommentService

    BulkCommentService.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    BulkCommentServiceImpl(com.atlassian.jira.bc.issue.comment.CommentService commentService, com.atlassian.jira.issue.fields.FieldManager fieldManager, com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager fieldLayoutManager, com.atlassian.jira.issue.AttachmentManager attachmentManager, com.atlassian.jira.issue.AttachmentValidator attachmentValidator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addComment(com.atlassian.jira.user.ApplicationUser user, Collection<com.atlassian.jira.issue.Issue> issues, String commentBody, com.atlassian.jira.issue.fields.CommentVisibility commentVisibility)
    Add the specified comment to one or more issues with the specified visibility.
    addComment(com.atlassian.jira.user.ApplicationUser user, Collection<com.atlassian.jira.issue.Issue> issues, String commentBody, com.atlassian.jira.issue.fields.CommentVisibility commentVisibility, Collection<String> temporaryAttachments)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BulkCommentServiceImpl

      @Autowired public BulkCommentServiceImpl(com.atlassian.jira.bc.issue.comment.CommentService commentService, com.atlassian.jira.issue.fields.FieldManager fieldManager, com.atlassian.jira.issue.fields.layout.field.FieldLayoutManager fieldLayoutManager, com.atlassian.jira.issue.AttachmentManager attachmentManager, com.atlassian.jira.issue.AttachmentValidator attachmentValidator)
  • Method Details

    • addComment

      public ServiceOutcome<BulkCommentService.Result> addComment(com.atlassian.jira.user.ApplicationUser user, Collection<com.atlassian.jira.issue.Issue> issues, String commentBody, com.atlassian.jira.issue.fields.CommentVisibility commentVisibility)
      Description copied from interface: BulkCommentService
      Add the specified comment to one or more issues with the specified visibility.
      Specified by:
      addComment in interface BulkCommentService
      Parameters:
      user - Author of the comment
      issues - Issues to comment on
      commentBody - The actual body of the comment being added
      commentVisibility - Visibility of comment being added, e.g. public, restricted to certain roles, restricted to certain groups
      Returns:
      A result object that contains a list of actual issues that were commented on and any error encountered during the process (if any).
    • addComment

      public ServiceOutcome<BulkCommentService.Result> addComment(com.atlassian.jira.user.ApplicationUser user, Collection<com.atlassian.jira.issue.Issue> issues, String commentBody, com.atlassian.jira.issue.fields.CommentVisibility commentVisibility, Collection<String> temporaryAttachments)
      Specified by:
      addComment in interface BulkCommentService