Class AbstractObjectFacadeSearchIndexingAspect

java.lang.Object
com.hybris.backoffice.search.aspects.AbstractObjectFacadeSearchIndexingAspect
Direct Known Subclasses:
ObjectFacadeSearchservicesIndexingAspect, ObjectFacadeSolrIndexingAspect

public abstract class AbstractObjectFacadeSearchIndexingAspect extends Object
Contains logic of aspect responsible for updating index.
Shall be called when Backoffice ObjectFacade performs changes on ItemModel.
  • Constructor Details

    • AbstractObjectFacadeSearchIndexingAspect

      public AbstractObjectFacadeSearchIndexingAspect()
  • Method Details

    • updateChanged

      public void updateChanged(org.aspectj.lang.JoinPoint joinPoint, Object retVal)
      Logic to be called when item is being changed via ObjectFacade
      Parameters:
      joinPoint - aspect joint point
      retVal - aspect returned value
    • updateRemoved

      public void updateRemoved(org.aspectj.lang.JoinPoint joinPoint, Object retVal)
      Logic to be called when item is being removed via ObjectFacade
      Parameters:
      joinPoint - aspect joint point
      retVal - aspect returned value
    • updateRemovedForMethodParameter

      public void updateRemovedForMethodParameter(org.aspectj.lang.JoinPoint joinPoint)
      Removes method param item from index
      Parameters:
      joinPoint - aspect joint point
    • executeIndexer

      protected void executeIndexer(Runnable runnable)
    • findBackgroundThread

      protected PoolableThread findBackgroundThread()
    • isBackgroundIndexingEnabled

      protected boolean isBackgroundIndexingEnabled()
    • removeIndexByPk

      protected abstract void removeIndexByPk(String typecode, List<PK> pkList)
    • updateIndexByPk

      protected abstract void updateIndexByPk(String typecode, List<PK> pkList)
    • extractModels

      protected Map<String,List<PK>> extractModels(org.aspectj.lang.JoinPoint joinPoint, Object retVal)
    • extractModelsWithoutArgs

      protected Map<String,List<PK>> extractModelsWithoutArgs(org.aspectj.lang.JoinPoint joinPoint, Object retVal)
    • getModifiedProductsPK

      protected List<PK> getModifiedProductsPK(ItemModel model)
    • getLastModifiedProductsPK

      protected List<PK> getLastModifiedProductsPK(CategoryModel model)
    • getLastSavedValuesForProducts

      protected Optional<SavedValueEntryModel> getLastSavedValuesForProducts(CategoryModel model)
    • getCurrentDateMinusOneMinute

      protected Date getCurrentDateMinusOneMinute()
    • logDebug

      protected abstract void logDebug(Map.Entry<String,List<PK>> entry)
    • getModelService

      protected ModelService getModelService()
    • setModelService

      public void setModelService(ModelService modelService)
    • getItemModificationHistoryService

      protected ItemModificationHistoryService getItemModificationHistoryService()
    • setItemModificationHistoryService

      public void setItemModificationHistoryService(ItemModificationHistoryService itemModificationHistoryService)
    • getConfigurationService

      protected ConfigurationService getConfigurationService()
    • setConfigurationService

      public void setConfigurationService(ConfigurationService configurationService)