Search in sources :

Example 1 with AzureBoardsIssueTransitioner

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);
}
Also used : AzureBoardsAlertIssuePropertiesManager(com.synopsys.integration.alert.channel.azure.boards.distribution.search.AzureBoardsAlertIssuePropertiesManager) AzureBoardsIssueCreator(com.synopsys.integration.alert.channel.azure.boards.distribution.delegate.AzureBoardsIssueCreator) IssueTrackerIssueResponseCreator(com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerIssueResponseCreator) IssueTrackerMessageSender(com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerMessageSender) AzureBoardsIssueTransitioner(com.synopsys.integration.alert.channel.azure.boards.distribution.delegate.AzureBoardsIssueTransitioner) AzureBoardsIssueCommenter(com.synopsys.integration.alert.channel.azure.boards.distribution.delegate.AzureBoardsIssueCommenter)

Aggregations

IssueTrackerIssueResponseCreator (com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerIssueResponseCreator)1 IssueTrackerMessageSender (com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerMessageSender)1 AzureBoardsIssueCommenter (com.synopsys.integration.alert.channel.azure.boards.distribution.delegate.AzureBoardsIssueCommenter)1 AzureBoardsIssueCreator (com.synopsys.integration.alert.channel.azure.boards.distribution.delegate.AzureBoardsIssueCreator)1 AzureBoardsIssueTransitioner (com.synopsys.integration.alert.channel.azure.boards.distribution.delegate.AzureBoardsIssueTransitioner)1 AzureBoardsAlertIssuePropertiesManager (com.synopsys.integration.alert.channel.azure.boards.distribution.search.AzureBoardsAlertIssuePropertiesManager)1