Class AbstractObjectFacadeSearchIndexingAspect
java.lang.Object
com.hybris.backoffice.search.aspects.AbstractObjectFacadeSearchIndexingAspect
- Direct Known Subclasses:
ObjectFacadeSearchservicesIndexingAspect,ObjectFacadeSolrIndexingAspect
Contains logic of aspect responsible for updating index.
Shall be called when Backoffice
Shall be called when Backoffice
ObjectFacade performs changes
on ItemModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecuteIndexer(Runnable runnable) extractModels(org.aspectj.lang.JoinPoint joinPoint, Object retVal) extractModelsWithoutArgs(org.aspectj.lang.JoinPoint joinPoint, Object retVal) protected PoolableThreadprotected ConfigurationServiceprotected Dateprotected ItemModificationHistoryServiceprotected Optional<SavedValueEntryModel>protected ModelServicegetModifiedProductsPK(ItemModel model) protected booleanprotected abstract voidprotected abstract voidremoveIndexByPk(String typecode, List<PK> pkList) voidsetConfigurationService(ConfigurationService configurationService) voidsetItemModificationHistoryService(ItemModificationHistoryService itemModificationHistoryService) voidsetModelService(ModelService modelService) voidupdateChanged(org.aspectj.lang.JoinPoint joinPoint, Object retVal) Logic to be called when item is being changed viaObjectFacadeprotected abstract voidupdateIndexByPk(String typecode, List<PK> pkList) voidupdateRemoved(org.aspectj.lang.JoinPoint joinPoint, Object retVal) Logic to be called when item is being removed viaObjectFacadevoidupdateRemovedForMethodParameter(org.aspectj.lang.JoinPoint joinPoint) Removes method param item from index
-
Constructor Details
-
AbstractObjectFacadeSearchIndexingAspect
public AbstractObjectFacadeSearchIndexingAspect()
-
-
Method Details
-
updateChanged
Logic to be called when item is being changed viaObjectFacade- Parameters:
joinPoint- aspect joint pointretVal- aspect returned value
-
updateRemoved
Logic to be called when item is being removed viaObjectFacade- Parameters:
joinPoint- aspect joint pointretVal- aspect returned value
-
updateRemovedForMethodParameter
public void updateRemovedForMethodParameter(org.aspectj.lang.JoinPoint joinPoint) Removes method param item from index- Parameters:
joinPoint- aspect joint point
-
executeIndexer
-
findBackgroundThread
-
isBackgroundIndexingEnabled
protected boolean isBackgroundIndexingEnabled() -
removeIndexByPk
-
updateIndexByPk
-
extractModels
-
extractModelsWithoutArgs
-
getModifiedProductsPK
-
getLastModifiedProductsPK
-
getLastSavedValuesForProducts
-
getCurrentDateMinusOneMinute
-
logDebug
-
getModelService
-
setModelService
-
getItemModificationHistoryService
-
setItemModificationHistoryService
public void setItemModificationHistoryService(ItemModificationHistoryService itemModificationHistoryService) -
getConfigurationService
-
setConfigurationService
-