public class CronJobSolrIndexSynchronizationStrategy extends java.lang.Object implements SolrIndexSynchronizationStrategy
| Modifier and Type | Field and Description |
|---|---|
protected ModelService |
modelService |
| Constructor and Description |
|---|
CronJobSolrIndexSynchronizationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addModifiedItem(java.lang.String typecode,
long pk,
SolrItemModificationType modificationType) |
protected void |
addModifiedItems(java.lang.String typecode,
java.util.List<PK> pks,
SolrItemModificationType modificationType) |
protected ModelService |
getModelService() |
void |
removeItem(java.lang.String typecode,
long pk)
Remove item from solr index
|
void |
removeItems(java.lang.String typecode,
java.util.List<PK> pkList)
Remove item from solr index
|
void |
setModelService(ModelService modelService) |
protected boolean |
shouldUpdateModifiedItem() |
void |
updateItem(java.lang.String typecode,
long pk)
Update item in solr index
|
void |
updateItems(java.lang.String typecode,
java.util.List<PK> pkList)
Update item in solr index
|
protected ModelService modelService
public CronJobSolrIndexSynchronizationStrategy()
public void updateItem(java.lang.String typecode,
long pk)
SolrIndexSynchronizationStrategyupdateItem in interface SolrIndexSynchronizationStrategytypecode - item typecodepk - item pkpublic void updateItems(java.lang.String typecode,
java.util.List<PK> pkList)
SolrIndexSynchronizationStrategyupdateItems in interface SolrIndexSynchronizationStrategytypecode - item typecodepkList - list of updated pkspublic void removeItem(java.lang.String typecode,
long pk)
SolrIndexSynchronizationStrategyremoveItem in interface SolrIndexSynchronizationStrategytypecode - item typecodepk - item pkpublic void removeItems(java.lang.String typecode,
java.util.List<PK> pkList)
SolrIndexSynchronizationStrategyremoveItems in interface SolrIndexSynchronizationStrategytypecode - item typecodepkList - item pkprotected void addModifiedItem(java.lang.String typecode,
long pk,
SolrItemModificationType modificationType)
protected void addModifiedItems(java.lang.String typecode,
java.util.List<PK> pks,
SolrItemModificationType modificationType)
protected boolean shouldUpdateModifiedItem()
public void setModelService(ModelService modelService)
protected ModelService getModelService()
Copyright © 2018 SAP SE. All Rights Reserved.