Search in sources :

Example 1 with JiraCloudIssueCommenter

use of com.synopsys.integration.alert.channel.jira.cloud.distribution.delegate.JiraCloudIssueCommenter in project hub-alert by blackducksoftware.

the class JiraCloudMessageSenderFactory method createMessageSender.

public IssueTrackerMessageSender<String> createMessageSender(IssueService issueService, JiraCloudJobDetailsModel distributionDetails, ProjectService projectService, JiraIssueCreationRequestCreator issueCreationRequestCreator, JiraIssueAlertPropertiesManager issuePropertiesManager, JiraErrorMessageUtility jiraErrorMessageUtility) {
    // Jira Services
    IssueTrackerIssueResponseCreator issueResponseCreator = new IssueTrackerIssueResponseCreator(callbackInfoCreator);
    // Message Sender Requirements
    JiraCloudIssueCommenter issueCommenter = new JiraCloudIssueCommenter(issueResponseCreator, issueService, distributionDetails);
    JiraCloudIssueTransitioner issueTransitioner = new JiraCloudIssueTransitioner(issueCommenter, issueResponseCreator, distributionDetails, issueService);
    JiraCloudIssueCreator issueCreator = new JiraCloudIssueCreator(channelKey, issueCommenter, callbackInfoCreator, distributionDetails, issueService, projectService, issueCreationRequestCreator, issuePropertiesManager, jiraErrorMessageUtility, issueCategoryRetriever);
    return new IssueTrackerMessageSender<>(issueCreator, issueTransitioner, issueCommenter);
}
Also used : JiraCloudIssueTransitioner(com.synopsys.integration.alert.channel.jira.cloud.distribution.delegate.JiraCloudIssueTransitioner) JiraCloudIssueCreator(com.synopsys.integration.alert.channel.jira.cloud.distribution.delegate.JiraCloudIssueCreator) IssueTrackerIssueResponseCreator(com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerIssueResponseCreator) JiraCloudIssueCommenter(com.synopsys.integration.alert.channel.jira.cloud.distribution.delegate.JiraCloudIssueCommenter) IssueTrackerMessageSender(com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerMessageSender)

Aggregations

IssueTrackerIssueResponseCreator (com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerIssueResponseCreator)1 IssueTrackerMessageSender (com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerMessageSender)1 JiraCloudIssueCommenter (com.synopsys.integration.alert.channel.jira.cloud.distribution.delegate.JiraCloudIssueCommenter)1 JiraCloudIssueCreator (com.synopsys.integration.alert.channel.jira.cloud.distribution.delegate.JiraCloudIssueCreator)1 JiraCloudIssueTransitioner (com.synopsys.integration.alert.channel.jira.cloud.distribution.delegate.JiraCloudIssueTransitioner)1