Search in sources :

Example 1 with IssueTrackerIssueResponseCreator

use of com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerIssueResponseCreator 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)

Example 2 with IssueTrackerIssueResponseCreator

use of com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerIssueResponseCreator 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)

Example 3 with IssueTrackerIssueResponseCreator

use of com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerIssueResponseCreator 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)3 IssueTrackerMessageSender (com.synopsys.integration.alert.api.channel.issue.send.IssueTrackerMessageSender)3 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 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 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