Class DirectSearchservicesIndexSynchronizationStrategy
- java.lang.Object
-
- com.hybris.backoffice.searchservices.events.DirectSearchservicesIndexSynchronizationStrategy
-
- All Implemented Interfaces:
SearchservicesIndexSynchronizationStrategy
public class DirectSearchservicesIndexSynchronizationStrategy extends java.lang.Object implements SearchservicesIndexSynchronizationStrategy
Direct searchservices index synchronization strategy
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelServicemodelServiceprotected SnIndexerServicesnIndexerServiceprotected TypeServicetypeService
-
Constructor Summary
Constructors Constructor Description DirectSearchservicesIndexSynchronizationStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidperformIndexDelete(SnIndexTypeModel indexType, java.util.List<PK> pks)Remove specified items from searchservices indexprotected voidperformIndexUpdate(SnIndexTypeModel indexType, java.util.List<PK> pks)Update specified items from searchservices indexvoidremoveItem(java.lang.String typecode, long pk)Remove item from searchservices indexvoidremoveItems(java.lang.String typecode, java.util.List<PK> pkList)Remove item from searchservices indexvoidsetBackofficeFacetSearchConfigService(BackofficeFacetSearchConfigService backofficeFacetSearchConfigService)voidsetModelService(ModelService modelService)voidsetSnIndexerService(SnIndexerService snIndexerService)voidsetTypeService(TypeService typeService)voidupdateItem(java.lang.String typecode, long pk)Update item from searchservices indexvoidupdateItems(java.lang.String typecode, java.util.List<PK> pkList)Update items from searchservices index
-
-
-
Field Detail
-
snIndexerService
protected SnIndexerService snIndexerService
-
modelService
protected ModelService modelService
-
typeService
protected TypeService typeService
-
-
Method Detail
-
updateItem
public void updateItem(java.lang.String typecode, long pk)Description copied from interface:SearchservicesIndexSynchronizationStrategyUpdate item from searchservices index- Specified by:
updateItemin interfaceSearchservicesIndexSynchronizationStrategy- Parameters:
typecode- item typecodepk- item pk
-
updateItems
public void updateItems(java.lang.String typecode, java.util.List<PK> pkList)Description copied from interface:SearchservicesIndexSynchronizationStrategyUpdate items from searchservices index- Specified by:
updateItemsin interfaceSearchservicesIndexSynchronizationStrategy- Parameters:
typecode- item typecodepkList- list of updated pks
-
removeItem
public void removeItem(java.lang.String typecode, long pk)Description copied from interface:SearchservicesIndexSynchronizationStrategyRemove item from searchservices index- Specified by:
removeItemin interfaceSearchservicesIndexSynchronizationStrategy- Parameters:
typecode- item typecodepk- item pk
-
removeItems
public void removeItems(java.lang.String typecode, java.util.List<PK> pkList)Description copied from interface:SearchservicesIndexSynchronizationStrategyRemove item from searchservices index- Specified by:
removeItemsin interfaceSearchservicesIndexSynchronizationStrategy- Parameters:
typecode- item typecodepkList- list of removed pks
-
performIndexDelete
protected void performIndexDelete(SnIndexTypeModel indexType, java.util.List<PK> pks)
Remove specified items from searchservices index- Parameters:
indexType- searchservices indexpks- list of pks
-
performIndexUpdate
protected void performIndexUpdate(SnIndexTypeModel indexType, java.util.List<PK> pks)
Update specified items from searchservices index- Parameters:
indexType- searchservices indexpks- list of pks
-
setSnIndexerService
public void setSnIndexerService(SnIndexerService snIndexerService)
- Parameters:
snIndexerService-
-
setModelService
public void setModelService(ModelService modelService)
- Parameters:
modelService-
-
setBackofficeFacetSearchConfigService
public void setBackofficeFacetSearchConfigService(BackofficeFacetSearchConfigService backofficeFacetSearchConfigService)
-
setTypeService
public void setTypeService(TypeService typeService)
- Parameters:
typeService-
-
-