Class ObjectFacadeSearchservicesIndexingAspect
- java.lang.Object
-
- com.hybris.backoffice.search.aspects.AbstractObjectFacadeSearchIndexingAspect
-
- com.hybris.backoffice.searchservices.aspects.ObjectFacadeSearchservicesIndexingAspect
-
public class ObjectFacadeSearchservicesIndexingAspect extends AbstractObjectFacadeSearchIndexingAspect
Contains logic of aspect responsible for updating searchservices index.
Shall be called when BackofficeObjectFacadeperforms changes onItemModel. This class uses underlyingSearchservicesIndexSynchronizationStrategyto perform operations on searchservices index.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_BACKOFFICE_SEARCH_BACKGROUND_SEARCHSERVICES_INDEXING_ENABLEDDetermines if searchservices indexing triggered for every indexed model change will be performed in non blocking operation - default: false
-
Constructor Summary
Constructors Constructor Description ObjectFacadeSearchservicesIndexingAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisBackgroundIndexingEnabled()protected voidlogDebug(java.util.Map.Entry<java.lang.String,java.util.List<PK>> entry)protected voidremoveIndexByPk(java.lang.String typecode, java.util.List<PK> pkList)voidsetSearchservicesIndexSynchronizationStrategy(SearchservicesIndexSynchronizationStrategy searchservicesIndexSynchronizationStrategy)protected voidupdateIndexByPk(java.lang.String typecode, java.util.List<PK> pkList)-
Methods inherited from class com.hybris.backoffice.search.aspects.AbstractObjectFacadeSearchIndexingAspect
executeIndexer, extractModels, extractModelsWithoutArgs, findBackgroundThread, getConfigurationService, getCurrentDateMinusOneMinute, getItemModificationHistoryService, getLastModifiedProductsPK, getLastSavedValuesForProducts, getModelService, getModifiedProductsPK, setConfigurationService, setItemModificationHistoryService, setModelService, updateChanged, updateRemoved, updateRemovedForMethodParameter
-
-
-
-
Field Detail
-
CONFIG_BACKOFFICE_SEARCH_BACKGROUND_SEARCHSERVICES_INDEXING_ENABLED
public static final java.lang.String CONFIG_BACKOFFICE_SEARCH_BACKGROUND_SEARCHSERVICES_INDEXING_ENABLED
Determines if searchservices indexing triggered for every indexed model change will be performed in non blocking operation - default: false- See Also:
- Constant Field Values
-
-
Method Detail
-
isBackgroundIndexingEnabled
protected boolean isBackgroundIndexingEnabled()
- Overrides:
isBackgroundIndexingEnabledin classAbstractObjectFacadeSearchIndexingAspect
-
removeIndexByPk
protected void removeIndexByPk(java.lang.String typecode, java.util.List<PK> pkList)- Specified by:
removeIndexByPkin classAbstractObjectFacadeSearchIndexingAspect
-
updateIndexByPk
protected void updateIndexByPk(java.lang.String typecode, java.util.List<PK> pkList)- Specified by:
updateIndexByPkin classAbstractObjectFacadeSearchIndexingAspect
-
logDebug
protected void logDebug(java.util.Map.Entry<java.lang.String,java.util.List<PK>> entry)
- Specified by:
logDebugin classAbstractObjectFacadeSearchIndexingAspect
-
setSearchservicesIndexSynchronizationStrategy
public void setSearchservicesIndexSynchronizationStrategy(SearchservicesIndexSynchronizationStrategy searchservicesIndexSynchronizationStrategy)
-
-