Class DefaultWebhookSearchService
java.lang.Object
de.hybris.platform.webhookservices.search.DefaultWebhookSearchService
- All Implemented Interfaces:
ItemModelSearchService
Default webhook search service.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultWebhookSearchService(@NotNull WebhookCacheService webhookCacheService, @NotNull ItemModelSearchService itemModelSearchService) Instantiate the DefaultWebhookSearchService -
Method Summary
-
Constructor Details
-
DefaultWebhookSearchService
protected DefaultWebhookSearchService(@NotNull @NotNull WebhookCacheService webhookCacheService, @NotNull @NotNull ItemModelSearchService itemModelSearchService) Instantiate the DefaultWebhookSearchService- Parameters:
webhookCacheService- to look up an item from the cacheitemModelSearchService- to look up an item from the database
-
-
Method Details
-
nonCachingFindByPk
Description copied from interface:ItemModelSearchServiceFinds anItemModelby the givenPK. Warning: this method clears the cache before doing the search. This may impact performance.- Specified by:
nonCachingFindByPkin interfaceItemModelSearchService- Type Parameters:
T- Expected type of the item found- Parameters:
pk- PK of the item to find- Returns:
- the ItemModel wrapped in an
Optionalif found, otherwiseOptional.empty()
-