Class DefaultItemModelSearchService
java.lang.Object
de.hybris.platform.integrationservices.service.impl.DefaultItemModelSearchService
- All Implemented Interfaces:
ItemModelSearchService
Default implementation of
ItemModelSearchService-
Constructor Summary
ConstructorsConstructorDescriptionDefaultItemModelSearchService(@NotNull ModelService modelService) Instantiates theItemModelSearchService -
Method Summary
-
Constructor Details
-
DefaultItemModelSearchService
Instantiates theItemModelSearchService- Parameters:
modelService- Service to look up the item
-
-
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()
-