Search in sources :

Example 1 with JiraServerIssueCreator

use of com.synopsys.integration.alert.channel.jira.server.distribution.delegate.JiraServerIssueCreator 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);
}
Also used : JiraServerIssueCommenter(com.synopsys.integration.alert.channel.jira.server.distribution.delegate.JiraServerIssueCommenter) JiraServerIssueTransitioner(com.synopsys.integration.alert.channel.jira.server.distribution.delegate.JiraServerIssueTransitioner) IssueTrackerIssueResponseCreator(com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerIssueResponseCreator) JiraServerIssueCreator(com.synopsys.integration.alert.channel.jira.server.distribution.delegate.JiraServerIssueCreator) 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 JiraServerIssueCommenter (com.synopsys.integration.alert.channel.jira.server.distribution.delegate.JiraServerIssueCommenter)1 JiraServerIssueCreator (com.synopsys.integration.alert.channel.jira.server.distribution.delegate.JiraServerIssueCreator)1 JiraServerIssueTransitioner (com.synopsys.integration.alert.channel.jira.server.distribution.delegate.JiraServerIssueTransitioner)1