Interface AccommodationOfferingCustomerReviewService

All Known Implementing Classes:
DefaultAccommodationOfferingCustomerReviewService

public interface AccommodationOfferingCustomerReviewService
Accommodation Service interface which provides functionality to manage Accommodation Offering.
  • Method Details

    • getReviewForAccommodationOffering

      SearchPageData<CustomerReviewModel> getReviewForAccommodationOffering(String accommodationOfferingCode, PageableData pageableData)
      Returns a list of AccommodationModel for a given AccommodationOfferingCode
      Parameters:
      accommodationOfferingCode - the code of the accommodationOffering to use to get the list of AccommodationModel
      pageableData - the pageable data
      Returns:
      the SearchPageData having list of CustomerReview corresponding to the AccommodationOffering
    • retrieveCustomerReviewsForBooking

      List<CustomerReviewModel> retrieveCustomerReviewsForBooking(String bookingReference, String accommodationOfferingCode) throws de.hybris.platform.servicelayer.exceptions.ModelNotFoundException
      Retrieve a list of customer reviews according with given criteria
      Parameters:
      bookingReference -
      accommodationOfferingCode -
      roomStayRefNumber -
      accommodationCode -
      Returns:
      a list of ReviewData if a customer review matching criteria has been retrieved, null otherwise.
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException
    • retrieveCustomerReviewForRoomStay

      CustomerReviewModel retrieveCustomerReviewForRoomStay(String bookingReference, String accommodationOfferingCode, Integer roomStayRefNumber) throws de.hybris.platform.servicelayer.exceptions.ModelNotFoundException
      Retrieve a customer review according with given criteria
      Parameters:
      bookingReference -
      accommodationOfferingCode -
      roomStayRefNumber -
      accommodationCode -
      Returns:
      a ReviewData if a customer review matching criteria has been retrieved, null otherwise.
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException
    • saveReview

      void saveReview(CustomerReviewModel customerReview) throws de.hybris.platform.servicelayer.exceptions.ModelSavingException
      Creates and saves a review against the given accommodation offering
      Parameters:
      customerReview -
      headline -
      comment -
      rating -
      productCode -
      accommodationOfferingCode -
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelSavingException