Class ScriptServiceItemSearchRequestEnricher
- java.lang.Object
-
- de.hybris.platform.integrationservices.search.enricher.ScriptServiceItemSearchRequestEnricher
-
- All Implemented Interfaces:
ItemSearchRequestEnricher
public class ScriptServiceItemSearchRequestEnricher extends java.lang.Object implements ItemSearchRequestEnricher
For Scripts, Commerce keeps a history of the Script when the content changes, i.e. a new item is created for the new content and is marked active. The previous active one is now marked as inactive. When searching just with the code, The ScriptService may fail with a non unique item error because Commerce returns all the Scripts instead of just the active one. This class enriches the search so only the active ones are returned when using the ScriptService.
-
-
Constructor Summary
Constructors Constructor Description ScriptServiceItemSearchRequestEnricher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ItemSearchRequestenrich(@NotNull ItemSearchRequest request)Enriches theItemSearchRequest
-
-
-
Method Detail
-
enrich
public ItemSearchRequest enrich(@NotNull @NotNull ItemSearchRequest request)
Description copied from interface:ItemSearchRequestEnricherEnriches theItemSearchRequest- Specified by:
enrichin interfaceItemSearchRequestEnricher- Parameters:
request- request to enrich- Returns:
- The enriched request
-
-