Class CronJobSolrIndexSynchronizationStrategy
- java.lang.Object
-
- com.hybris.backoffice.solrsearch.events.CronJobSolrIndexSynchronizationStrategy
-
- All Implemented Interfaces:
SolrIndexSynchronizationStrategy
public class CronJobSolrIndexSynchronizationStrategy extends java.lang.Object implements SolrIndexSynchronizationStrategy
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelServicemodelService
-
Constructor Summary
Constructors Constructor Description CronJobSolrIndexSynchronizationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddModifiedItem(java.lang.String typecode, long pk, SolrItemModificationType modificationType)protected voidaddModifiedItems(java.lang.String typecode, java.util.List<PK> pks, SolrItemModificationType modificationType)protected ModelServicegetModelService()voidremoveItem(java.lang.String typecode, long pk)Remove item from solr indexvoidremoveItems(java.lang.String typecode, java.util.List<PK> pkList)Remove item from solr indexvoidsetModelService(ModelService modelService)protected booleanshouldUpdateModifiedItem()voidupdateItem(java.lang.String typecode, long pk)Update item in solr indexvoidupdateItems(java.lang.String typecode, java.util.List<PK> pkList)Update item in solr index
-
-
-
Field Detail
-
modelService
protected ModelService modelService
-
-
Method Detail
-
updateItem
public void updateItem(java.lang.String typecode, long pk)Description copied from interface:SolrIndexSynchronizationStrategyUpdate item in solr index- Specified by:
updateItemin interfaceSolrIndexSynchronizationStrategy- Parameters:
typecode- item typecodepk- item pk
-
updateItems
public void updateItems(java.lang.String typecode, java.util.List<PK> pkList)Description copied from interface:SolrIndexSynchronizationStrategyUpdate item in solr index- Specified by:
updateItemsin interfaceSolrIndexSynchronizationStrategy- Parameters:
typecode- item typecodepkList- list of updated pks
-
removeItem
public void removeItem(java.lang.String typecode, long pk)Description copied from interface:SolrIndexSynchronizationStrategyRemove item from solr index- Specified by:
removeItemin interfaceSolrIndexSynchronizationStrategy- Parameters:
typecode- item typecodepk- item pk
-
removeItems
public void removeItems(java.lang.String typecode, java.util.List<PK> pkList)Description copied from interface:SolrIndexSynchronizationStrategyRemove item from solr index- Specified by:
removeItemsin interfaceSolrIndexSynchronizationStrategy- Parameters:
typecode- item typecodepkList- item pk
-
addModifiedItem
protected void addModifiedItem(java.lang.String typecode, long pk, SolrItemModificationType modificationType)
-
addModifiedItems
protected void addModifiedItems(java.lang.String typecode, java.util.List<PK> pks, SolrItemModificationType modificationType)
-
shouldUpdateModifiedItem
protected boolean shouldUpdateModifiedItem()
-
setModelService
public void setModelService(ModelService modelService)
-
getModelService
protected ModelService getModelService()
-
-