use of com.synopsys.integration.alert.channel.jira.server.distribution.delegate.JiraServerIssueCommenter in project hub-alert by blackducksoftware.
the class JiraServerMessageSenderFactory method createMessageSender.
public IssueTrackerMessageSender<String> createMessageSender(IssueService issueService, JiraServerJobDetailsModel distributionDetails, ProjectService projectService, JiraIssueCreationRequestCreator issueCreationRequestCreator, JiraIssueAlertPropertiesManager issuePropertiesManager, JiraErrorMessageUtility jiraErrorMessageUtility) {
IssueTrackerIssueResponseCreator issueResponseCreator = new IssueTrackerIssueResponseCreator(callbackInfoCreator);
// Message Sender Requirements
JiraServerIssueCommenter commenter = new JiraServerIssueCommenter(issueResponseCreator, issueService, distributionDetails);
JiraServerIssueTransitioner transitioner = new JiraServerIssueTransitioner(commenter, issueResponseCreator, distributionDetails, issueService);
JiraServerIssueCreator creator = new JiraServerIssueCreator(channelKey, commenter, callbackInfoCreator, distributionDetails, issueService, projectService, issueCreationRequestCreator, issuePropertiesManager, jiraErrorMessageUtility, issueCategoryRetriever);
return new IssueTrackerMessageSender<>(creator, transitioner, commenter);
}
Aggregations