Interface TuaProductService

All Known Implementing Classes:
DefaultTuaProductService

public interface TuaProductService
Service responsible for handling TuaProductModel related operations.
Since:
2208
  • Method Details

    • getProduct

      TuaProductModel getProduct(String id)
      Returns a TuaProductModel for the given id.
      Parameters:
      id - identifier of TuaProductModel
      Returns:
      the TuaProductModel found.
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException - if no subscribed product is found.
    • getProducts

      List<TuaProductModel> getProducts(SpiProductContext spiProductContext, Integer offset, Integer limit)
      Retrieves a list of TuaProductModel 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)
      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(TuaProductModel product)
      Saves the given TuaProductModel.
      Parameters:
      product - the product.
    • createProduct

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

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