Class DefaultSpiProductService
java.lang.Object
de.hybris.platform.subscribedproductservices.services.impl.DefaultSpiProductService
- All Implemented Interfaces:
SpiProductService
@Deprecated(since="2208")
public class DefaultSpiProductService
extends Object
implements SpiProductService
Deprecated.
2208
Default implementation of
SpiProductService.- Since:
- 2105
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSpiProductService(SpiProductDao spiProductDao, de.hybris.platform.servicelayer.model.ModelService modelService) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncreateProduct(Class productClass) Deprecated.Creates an instance ofSpiProductModelsubtype.protected de.hybris.platform.servicelayer.model.ModelServiceDeprecated.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.protected SpiProductDaoDeprecated.voidremoveProduct(SpiProductModel product) Deprecated.Removes the givenSpiProductModelvoidsaveProduct(SpiProductModel product) Deprecated.Saves the givenSpiProductModel.
-
Constructor Details
-
DefaultSpiProductService
public DefaultSpiProductService(SpiProductDao spiProductDao, de.hybris.platform.servicelayer.model.ModelService modelService) Deprecated.
-
-
Method Details
-
getProduct
Deprecated.Description copied from interface:SpiProductServiceReturns aSpiProductModelfor the given id.- Specified by:
getProductin interfaceSpiProductService- Parameters:
id- identifier ofSpiProductModel- Returns:
- the
SpiProductModelfound.
-
getProducts
public List<SpiProductModel> getProducts(SpiProductContext spiProductContext, Integer offset, Integer limit) Deprecated.Description copied from interface:SpiProductServiceRetrieves a list ofSpiProductModelfor a given product context.- Specified by:
getProductsin interfaceSpiProductService- 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.Description copied from interface:SpiProductServiceRetrieves the total number of products found for a given productContext.- Specified by:
getNumberOfProductsForin interfaceSpiProductService- Parameters:
spiProductContext- the product context.- Returns:
- the number of products found.
-
saveProduct
Deprecated.Description copied from interface:SpiProductServiceSaves the givenSpiProductModel.- Specified by:
saveProductin interfaceSpiProductService- Parameters:
product- the product.
-
createProduct
Deprecated.Description copied from interface:SpiProductServiceCreates an instance ofSpiProductModelsubtype.- Specified by:
createProductin interfaceSpiProductService- Parameters:
productClass- the class of theSpiProductModelsubtype.- Returns:
- the newly created model.
-
removeProduct
Deprecated.Description copied from interface:SpiProductServiceRemoves the givenSpiProductModel- Specified by:
removeProductin interfaceSpiProductService- Parameters:
product- the product.
-
getSpiProductDao
Deprecated. -
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()Deprecated.
-