Interface TmaProductFacade

All Superinterfaces:
de.hybris.platform.commercefacades.product.ProductFacade
All Known Implementing Classes:
DefaultTmaProductFacade

public interface TmaProductFacade extends de.hybris.platform.commercefacades.product.ProductFacade
Facade handling operations related to CustomerReviewModel.
Since:
1907
  • Method Details

    • getReviewsByLimitAndOffset

      List<ReviewData> getReviewsByLimitAndOffset(String productCode, Integer offset, Integer limit) throws de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException
      Retrieves a list of reviews of a product by offset, limit and language.
      Parameters:
      productCode - the code of the product.
      offset - the offset represents the position in list from where the result list will start.
      limit - the limit represents the number of entries that will be selected for the result list.
      Returns:
      the list of reviews.
      Throws:
      de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException - is thrown when the product does not exist
    • createReview

      ReviewData createReview(String productCode, String userId, ReviewData reviewData)
      Creates a review resource for a product.
      Parameters:
      productCode - the code of the product.
      userId - the code of the user.
      reviewData - the resource that will be created.
      Returns:
      the created review.
    • getNumberOfReviewsByLanguage

      Integer getNumberOfReviewsByLanguage(String productCode)
      Computes the total number of reviews based on a product code that is provided.
      Parameters:
      productCode - the code of the product.
      Returns:
      the number of reviews of a product.
    • getIntermediateBpos

      List<ProductData> getIntermediateBpos(String poCode, String rootBpoCode)
      Determines intermediate BPOs between the provided po code and the root bpo code.
      Parameters:
      poCode - the PO code
      rootBpoCode - the root BPO code
      Returns:
      the list of intermediary BPOs between the root BPO and the given PO. In case the PO is not part of the root BPO structure an empty list is returned