use of com.synopsys.integration.alert.channel.azure.boards.distribution.delegate.AzureBoardsIssueTransitioner in project hub-alert by blackducksoftware.
the class AzureBoardsMessageSenderFactory method createMessageSender.
public IssueTrackerMessageSender<Integer> createMessageSender(AzureWorkItemService workItemService, AzureWorkItemTypeStateService workItemTypeStateService, AzureWorkItemCommentService workItemCommentService, String organizationName, AzureBoardsJobDetailsModel distributionDetails) {
IssueTrackerIssueResponseCreator issueResponseCreator = new IssueTrackerIssueResponseCreator(callbackInfoCreator);
AzureBoardsWorkItemTypeStateRetriever workItemTypeStateRetriever = new AzureBoardsWorkItemTypeStateRetriever(gson, workItemService, workItemTypeStateService);
AzureBoardsAlertIssuePropertiesManager issuePropertiesManager = new AzureBoardsAlertIssuePropertiesManager();
// Message Sender Requirements
AzureBoardsIssueCommenter commenter = new AzureBoardsIssueCommenter(issueResponseCreator, organizationName, distributionDetails, workItemCommentService);
AzureBoardsIssueTransitioner transitioner = new AzureBoardsIssueTransitioner(commenter, issueResponseCreator, gson, organizationName, distributionDetails, workItemService, workItemTypeStateRetriever, exceptionMessageImprover);
AzureBoardsIssueCreator creator = new AzureBoardsIssueCreator(channelKey, commenter, callbackInfoCreator, gson, organizationName, distributionDetails, workItemService, issuePropertiesManager, exceptionMessageImprover, issueCategoryRetriever);
return new IssueTrackerMessageSender<>(creator, transitioner, commenter);
}
Aggregations