Interface IssuesIndexRequestFactory
- All Known Implementing Classes:
DefaultIssuesIndexRequestFactory
public interface IssuesIndexRequestFactory
Factory for creating index requests for issue-related entities.
-
Method Summary
Modifier and TypeMethodDescriptionbulkIndexRequest(List<Issue> issues, IssueIndexingParams indexingParams, boolean incrementVersion) Creates a bulk index request for the given list of issues.bulkIndexRequestById(List<Long> issueIds, IssueIndexingParams indexingParams, boolean incrementVersion) Creates a bulk index request for the given list of issue IDs.Creates an index request for the given change history group.commentIndexRequest(long commentId, boolean incrementVersion) Creates an index request for the given comment ID, with an option to increment the entity version.commentIndexRequest(Comment comment) Creates an index request for the given comment.commentIndexRequest(Comment comment, boolean incrementVersion) Creates an index request for the given comment, with an option to increment the entity version.issueIndexRequest(Issue issue) Creates an index request for the given issue.issueIndexRequest(Issue issue, boolean incrementVersion) Creates an index request for the given issue, with an option to increment the entity version.worklogIndexRequest(long worklogId, boolean incrementVersion) Creates an index request for the given worklog ID, with an option to increment the entity version.worklogIndexRequest(Worklog worklog) Creates an index request for the given worklog.worklogIndexRequest(Worklog worklog, boolean incrementVersion) Creates an index request for the given worklog, with an option to increment the entity version.
-
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 indexindexingParams- the indexing parameters that control how the issues are indexedincrementVersion- 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 indexindexingParams- the indexing parameters that control how the issues are indexedincrementVersion- 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
Creates an index request for the given issue. When indexing multiple issues, it is recommended to usebulkIndexRequest(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
Creates an index request for the given issue, with an option to increment the entity version. When indexing multiple issues, it is recommended to usebulkIndexRequest(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
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
Creates an index request for the given worklog.- Parameters:
worklog- the worklog to index- Returns:
- the index request for the worklog
-
worklogIndexRequest
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
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
Creates an index request for the given comment.- Parameters:
comment- the comment to index- Returns:
- the index request for the comment
-
commentIndexRequest
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
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.
-