Package com.atlassian.jira.issue.index
Class DefaultWorklogRetriever
java.lang.Object
com.atlassian.jira.issue.index.DefaultWorklogRetriever
- All Implemented Interfaces:
DefaultIssueIndexer.EntityRetriever<Worklog>,DefaultIssueIndexer.WorklogRetriever,WorklogRetriever
public class DefaultWorklogRetriever
extends Object
implements DefaultIssueIndexer.WorklogRetriever, WorklogRetriever
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWorklogRetriever(JiraProperties jiraProperties, EntityVersioningManager entityVersioningManager, IndexingLimitsStats indexingLimitsStats) -
Method Summary
Modifier and TypeMethodDescriptionretrieve(EntityWithVersion<Issue> issueWithVersion) Retrieves worklogs for the given issue.retrieveById(Long worklogId) Retrieves the worklog for the given worklog ID.
-
Constructor Details
-
DefaultWorklogRetriever
public DefaultWorklogRetriever(JiraProperties jiraProperties, EntityVersioningManager entityVersioningManager, IndexingLimitsStats indexingLimitsStats)
-
-
Method Details
-
retrieve
- Specified by:
retrievein interfaceDefaultIssueIndexer.EntityRetriever<Worklog>
-
retrieve
Description copied from interface:WorklogRetrieverRetrieves worklogs for the given issue.- Specified by:
retrievein interfaceWorklogRetriever- Parameters:
issue- the issue for which worklogs are to be retrieved- Returns:
- a list of worklogs associated with the issue
-
retrieveById
Description copied from interface:WorklogRetrieverRetrieves the worklog for the given worklog ID.- Specified by:
retrieveByIdin interfaceDefaultIssueIndexer.WorklogRetriever- Specified by:
retrieveByIdin interfaceWorklogRetriever- Parameters:
worklogId- the ID of the worklog to retrieve- Returns:
- an Optional containing the worklog if found, or empty if not found
-