Package com.atlassian.jira.issue.index
Class DefaultWorklogDocumentFactory
java.lang.Object
com.atlassian.jira.issue.index.DefaultWorklogDocumentFactory
- All Implemented Interfaces:
EntityDocumentFactory<Worklog>,RelatedEntityDocumentFactory<Worklog>,WorklogDocumentFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.index.EntityDocumentFactory
EntityDocumentFactory.EntityDocumentBuilder<T extends WithId,C extends EntityDocumentFactory.EntityDocumentBuilder<T, C>> -
Field Summary
Fields inherited from interface com.atlassian.jira.index.EntityDocumentFactory
ENTITY_VERSION_ZERO, LOG -
Constructor Summary
ConstructorsConstructorDescriptionDefaultWorklogDocumentFactory(EntityFieldValuesFactory fieldValuesFactory, DocumentMapper documentMapper) -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.apache.lucene.document.Document> createDocument(EntityWithVersion<Worklog> worklogWithVersion) org.apache.lucene.index.TermgetIdentifyingTerm(Worklog worklog) Returns the field that is used to identify the entity in the index.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.index.EntityDocumentFactory
createDocuments
-
Constructor Details
-
DefaultWorklogDocumentFactory
public DefaultWorklogDocumentFactory(EntityFieldValuesFactory fieldValuesFactory, DocumentMapper documentMapper)
-
-
Method Details
-
createDocument
public Optional<org.apache.lucene.document.Document> createDocument(EntityWithVersion<Worklog> worklogWithVersion) - Specified by:
createDocumentin interfaceEntityDocumentFactory<Worklog>
-
getIdentifyingTerm
Description copied from interface:RelatedEntityDocumentFactoryReturns the field that is used to identify the entity in the index.- Specified by:
getIdentifyingTermin interfaceRelatedEntityDocumentFactory<Worklog>- Returns:
- the field that is used to identify the entity in the index.
-