Class DefaultAccommodationOfferingCustomerReviewService

java.lang.Object
de.hybris.platform.travelservices.services.impl.DefaultAccommodationOfferingCustomerReviewService
All Implemented Interfaces:
AccommodationOfferingCustomerReviewService

public class DefaultAccommodationOfferingCustomerReviewService extends Object implements AccommodationOfferingCustomerReviewService
  • Constructor Details

    • DefaultAccommodationOfferingCustomerReviewService

      public DefaultAccommodationOfferingCustomerReviewService()
  • Method Details

    • getReviewForAccommodationOffering

      public SearchPageData<CustomerReviewModel> getReviewForAccommodationOffering(String accommodationOfferingCode, PageableData pageableData)
      Description copied from interface: AccommodationOfferingCustomerReviewService
      Returns a list of AccommodationModel for a given AccommodationOfferingCode
      Specified by:
      getReviewForAccommodationOffering in interface AccommodationOfferingCustomerReviewService
      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

      public List<CustomerReviewModel> retrieveCustomerReviewsForBooking(String bookingReference, String accommodationOfferingCode) throws de.hybris.platform.servicelayer.exceptions.ModelNotFoundException
      Description copied from interface: AccommodationOfferingCustomerReviewService
      Retrieve a list of customer reviews according with given criteria
      Specified by:
      retrieveCustomerReviewsForBooking in interface AccommodationOfferingCustomerReviewService
      Returns:
      a list of ReviewData if a customer review matching criteria has been retrieved, null otherwise.
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException
    • retrieveCustomerReviewForRoomStay

      public CustomerReviewModel retrieveCustomerReviewForRoomStay(String bookingReference, String accommodationOfferingCode, Integer roomStayRefNumber) throws de.hybris.platform.servicelayer.exceptions.ModelNotFoundException
      Description copied from interface: AccommodationOfferingCustomerReviewService
      Retrieve a customer review according with given criteria
      Specified by:
      retrieveCustomerReviewForRoomStay in interface AccommodationOfferingCustomerReviewService
      Returns:
      a ReviewData if a customer review matching criteria has been retrieved, null otherwise.
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelNotFoundException
    • saveReview

      public void saveReview(CustomerReviewModel customerReview) throws de.hybris.platform.servicelayer.exceptions.ModelSavingException
      Description copied from interface: AccommodationOfferingCustomerReviewService
      Creates and saves a review against the given accommodation offering
      Specified by:
      saveReview in interface AccommodationOfferingCustomerReviewService
      Throws:
      de.hybris.platform.servicelayer.exceptions.ModelSavingException
    • getPagedAccommodationOfferingCustomerReviewDao

      protected PagedAccommodationOfferingCustomerReviewDao getPagedAccommodationOfferingCustomerReviewDao()
      Returns:
      the pagedAccommodationOfferingCustomerReviewDao
    • setPagedAccommodationOfferingCustomerReviewDao

      public void setPagedAccommodationOfferingCustomerReviewDao(PagedAccommodationOfferingCustomerReviewDao pagedAccommodationOfferingCustomerReviewDao)
      Parameters:
      pagedAccommodationOfferingCustomerReviewDao - the pagedAccommodationOfferingCustomerReviewDao to set
    • getAccommodationCustomerReviewDao

      protected AccommodationCustomerReviewDao getAccommodationCustomerReviewDao()
      Returns:
      accommodationCustomerReviewDao
    • setAccommodationCustomerReviewDao

      public void setAccommodationCustomerReviewDao(AccommodationCustomerReviewDao accommodationCustomerReviewDao)
      Parameters:
      accommodationCustomerReviewDao - the accommodationCustomerReviewDao to set
    • getUserService

      protected de.hybris.platform.servicelayer.user.UserService getUserService()
      Returns:
      the userService
    • setUserService

      public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
      Parameters:
      userService - the userService to set
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
      Returns:
      the modelService
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
      Parameters:
      modelService - the modelService to set