Class TrackableDocumentBuilderContributor<T>
- java.lang.Object
-
- com.broadleafcommerce.search.index.common.document.TrackableDocumentBuilderContributor<T>
-
- Type Parameters:
T
- The type of the document being modified
- All Implemented Interfaces:
com.broadleafcommerce.search.index.core.document.DocumentBuilderContributor<T>
public abstract class TrackableDocumentBuilderContributor<T> extends Object implements com.broadleafcommerce.search.index.core.document.DocumentBuilderContributor<T>
Supports contributing trackable information fields to the document.
-
-
Constructor Summary
Constructors Constructor Description TrackableDocumentBuilderContributor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(com.broadleafcommerce.search.api.domain.Indexable<?> indexable)
void
contributeInternal(com.broadleafcommerce.search.api.domain.Indexable<?> indexable, T document, com.jayway.jsonpath.DocumentContext context, List<com.broadleafcommerce.search.api.domain.FieldDefinition> searchFields)
protected abstract void
contributeTrackable(com.broadleafcommerce.search.api.domain.Indexable<?> indexable, T document)
protected abstract com.broadleafcommerce.data.tracking.core.TrackableBehavior
getTrackableBehavior()
TheTrackableBehavior
for which the contributor should populate fields.
-
-
-
Method Detail
-
contributeInternal
public void contributeInternal(com.broadleafcommerce.search.api.domain.Indexable<?> indexable, T document, com.jayway.jsonpath.DocumentContext context, List<com.broadleafcommerce.search.api.domain.FieldDefinition> searchFields) throws com.broadleafcommerce.search.api.SearchIndexException
- Specified by:
contributeInternal
in interfacecom.broadleafcommerce.search.index.core.document.DocumentBuilderContributor<T>
- Throws:
com.broadleafcommerce.search.api.SearchIndexException
-
contributeTrackable
protected abstract void contributeTrackable(com.broadleafcommerce.search.api.domain.Indexable<?> indexable, T document)
-
canHandle
public boolean canHandle(com.broadleafcommerce.search.api.domain.Indexable<?> indexable)
- Specified by:
canHandle
in interfacecom.broadleafcommerce.search.index.core.document.DocumentBuilderContributor<T>
-
getTrackableBehavior
protected abstract com.broadleafcommerce.data.tracking.core.TrackableBehavior getTrackableBehavior()
TheTrackableBehavior
for which the contributor should populate fields.- Returns:
- trackable behavior for which to populate fields
-
-