Interface SpiProductService
- All Known Implementing Classes:
DefaultSpiProductService
Deprecated.
2208
Service responsible for handling
SpiProductModel related operations.- Since:
- 2105
-
Method Summary
Modifier and TypeMethodDescriptioncreateProduct(Class productClass) Deprecated.Creates an instance ofSpiProductModelsubtype.getNumberOfProductsFor(SpiProductContext spiProductContext) Deprecated.Retrieves the total number of products found for a given productContext.getProduct(String id) Deprecated.Returns aSpiProductModelfor the given id.getProducts(SpiProductContext spiProductContext, Integer offset, Integer limit) Deprecated.Retrieves a list ofSpiProductModelfor a given product context.voidremoveProduct(SpiProductModel product) Deprecated.Removes the givenSpiProductModelvoidsaveProduct(SpiProductModel product) Deprecated.Saves the givenSpiProductModel.
-
Method Details
-
getProduct
Deprecated.Returns aSpiProductModelfor the given id.- Parameters:
id- identifier ofSpiProductModel- Returns:
- the
SpiProductModelfound. - Throws:
de.hybris.platform.servicelayer.exceptions.ModelNotFoundException- if no subscribed product is found.
-
getProducts
List<SpiProductModel> getProducts(SpiProductContext spiProductContext, Integer offset, Integer limit) Deprecated.Retrieves a list ofSpiProductModelfor a given product context.- Parameters:
spiProductContext- the product context.offset- the offset.limit- the maximum number of returned products.- Returns:
- the list of products found for the given context.
-
getNumberOfProductsFor
Deprecated.Retrieves the total number of products found for a given productContext.- Parameters:
spiProductContext- the product context.- Returns:
- the number of products found.
-
saveProduct
Deprecated.Saves the givenSpiProductModel.- Parameters:
product- the product.
-
createProduct
Deprecated.Creates an instance ofSpiProductModelsubtype.- Parameters:
productClass- the class of theSpiProductModelsubtype.- Returns:
- the newly created model.
-
removeProduct
Deprecated.Removes the givenSpiProductModel- Parameters:
product- the product.
-