Interface SpiProductService

All Known Implementing Classes:
DefaultSpiProductService

@Deprecated(since="2208") public interface SpiProductService
Deprecated.
2208
Service responsible for handling SpiProductModel related operations.
Since:
2105
  • Method Details

    • getProduct

      SpiProductModel getProduct(String id)
      Deprecated.
      Returns a SpiProductModel for the given id.
      Parameters:
      id - identifier of SpiProductModel
      Returns:
      the SpiProductModel found.
      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 of SpiProductModel for 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

      Integer getNumberOfProductsFor(SpiProductContext spiProductContext)
      Deprecated.
      Retrieves the total number of products found for a given productContext.
      Parameters:
      spiProductContext - the product context.
      Returns:
      the number of products found.
    • saveProduct

      void saveProduct(SpiProductModel product)
      Deprecated.
      Saves the given SpiProductModel.
      Parameters:
      product - the product.
    • createProduct

      SpiProductModel createProduct(Class productClass)
      Deprecated.
      Creates an instance of SpiProductModel subtype.
      Parameters:
      productClass - the class of the SpiProductModel subtype.
      Returns:
      the newly created model.
    • removeProduct

      void removeProduct(SpiProductModel product)
      Deprecated.
      Removes the given SpiProductModel
      Parameters:
      product - the product.