Interface IssuesIndexRequestFactory

All Known Implementing Classes:
DefaultIssuesIndexRequestFactory

public interface IssuesIndexRequestFactory
Factory for creating index requests for issue-related entities.
  • Method Details

    • bulkIndexRequest

      UpdateBulkRequest bulkIndexRequest(List<Issue> issues, IssueIndexingParams indexingParams, boolean incrementVersion)
      Creates a bulk index request for the given list of issues.
      Parameters:
      issues - the list of issues to index
      indexingParams - the indexing parameters that control how the issues are indexed
      incrementVersion - whether to increment the entity version of the entities being indexed
      Returns:
      the bulk index request for the issues to send to the indexing platform.
    • bulkIndexRequestById

      UpdateBulkRequest bulkIndexRequestById(List<Long> issueIds, IssueIndexingParams indexingParams, boolean incrementVersion)
      Creates a bulk index request for the given list of issue IDs.
      Parameters:
      issueIds - the list of issue IDs to index
      indexingParams - the indexing parameters that control how the issues are indexed
      incrementVersion - whether to increment the entity version of the entities being indexed
      Returns:
      the bulk index request for the issues to send to the indexing platform.
    • issueIndexRequest

      Optional<IndexRequest> issueIndexRequest(Issue issue)
      Creates an index request for the given issue. When indexing multiple issues, it is recommended to use bulkIndexRequest(java.util.List<com.atlassian.jira.issue.Issue>, com.atlassian.jira.issue.index.IssueIndexingParams, boolean) instead to reduce the number of index requests.
      Parameters:
      issue - the issue to index
      Returns:
      the index request for the issue
    • issueIndexRequest

      Optional<IndexRequest> issueIndexRequest(Issue issue, boolean incrementVersion)
      Creates an index request for the given issue, with an option to increment the entity version. When indexing multiple issues, it is recommended to use bulkIndexRequest(java.util.List<com.atlassian.jira.issue.Issue>, com.atlassian.jira.issue.index.IssueIndexingParams, boolean) instead to reduce the number of index requests.
      Parameters:
      issue - the issue to index.
      incrementVersion - whether to increment the entity version of the issue being indexed.
      Returns:
      the index request for the issue.
    • changeHistoryIndexRequest

      IndexRequest changeHistoryIndexRequest(ChangeHistoryGroup ch)
      Creates an index request for the given change history group.
      Parameters:
      ch - the change history group to index
      Returns:
      the index request for the change history group
    • worklogIndexRequest

      Optional<IndexRequest> worklogIndexRequest(Worklog worklog)
      Creates an index request for the given worklog.
      Parameters:
      worklog - the worklog to index
      Returns:
      the index request for the worklog
    • worklogIndexRequest

      Optional<IndexRequest> worklogIndexRequest(Worklog worklog, boolean incrementVersion)
      Creates an index request for the given worklog, with an option to increment the entity version.
      Parameters:
      worklog - the worklog to index.
      incrementVersion - whether to increment the entity version of the worklog being indexed.
      Returns:
      the index request for the worklog.
    • worklogIndexRequest

      Optional<IndexRequest> worklogIndexRequest(long worklogId, boolean incrementVersion)
      Creates an index request for the given worklog ID, with an option to increment the entity version.
      Parameters:
      worklogId - the ID of the worklog to index.
      incrementVersion - whether to increment the entity version of the worklog being indexed.
      Returns:
      the index request for the worklog.
    • commentIndexRequest

      Optional<IndexRequest> commentIndexRequest(Comment comment)
      Creates an index request for the given comment.
      Parameters:
      comment - the comment to index
      Returns:
      the index request for the comment
    • commentIndexRequest

      Optional<IndexRequest> commentIndexRequest(Comment comment, boolean incrementVersion)
      Creates an index request for the given comment, with an option to increment the entity version.
      Parameters:
      comment - the comment to index.
      incrementVersion - whether to increment the entity version of the comment being indexed.
      Returns:
      the index request for the comment.
    • commentIndexRequest

      Optional<IndexRequest> commentIndexRequest(long commentId, boolean incrementVersion)
      Creates an index request for the given comment ID, with an option to increment the entity version.
      Parameters:
      commentId - the ID of the comment to index.
      incrementVersion - whether to increment the entity version of the comment being indexed.
      Returns:
      the index request for the comment.