Class DefaultAccommodationOfferingCustomerReviewService
java.lang.Object
de.hybris.platform.travelservices.services.impl.DefaultAccommodationOfferingCustomerReviewService
- All Implemented Interfaces:
AccommodationOfferingCustomerReviewService
public class DefaultAccommodationOfferingCustomerReviewService
extends Object
implements AccommodationOfferingCustomerReviewService
Default implementation of
AccommodationOfferingCustomerReviewService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AccommodationCustomerReviewDaoprotected de.hybris.platform.servicelayer.model.ModelServicegetReviewForAccommodationOffering(String accommodationOfferingCode, PageableData pageableData) Returns a list of AccommodationModel for a given AccommodationOfferingCodeprotected de.hybris.platform.servicelayer.user.UserServiceretrieveCustomerReviewForRoomStay(String bookingReference, String accommodationOfferingCode, Integer roomStayRefNumber) Retrieve a customer review according with given criteriaretrieveCustomerReviewsForBooking(String bookingReference, String accommodationOfferingCode) Retrieve a list of customer reviews according with given criteriavoidsaveReview(CustomerReviewModel customerReview) Creates and saves a review against the given accommodation offeringvoidsetAccommodationCustomerReviewDao(AccommodationCustomerReviewDao accommodationCustomerReviewDao) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetPagedAccommodationOfferingCustomerReviewDao(PagedAccommodationOfferingCustomerReviewDao pagedAccommodationOfferingCustomerReviewDao) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Constructor Details
-
DefaultAccommodationOfferingCustomerReviewService
public DefaultAccommodationOfferingCustomerReviewService()
-
-
Method Details
-
getReviewForAccommodationOffering
public SearchPageData<CustomerReviewModel> getReviewForAccommodationOffering(String accommodationOfferingCode, PageableData pageableData) Description copied from interface:AccommodationOfferingCustomerReviewServiceReturns a list of AccommodationModel for a given AccommodationOfferingCode- Specified by:
getReviewForAccommodationOfferingin interfaceAccommodationOfferingCustomerReviewService- Parameters:
accommodationOfferingCode- the code of the accommodationOffering to use to get the list of AccommodationModelpageableData- 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:AccommodationOfferingCustomerReviewServiceRetrieve a list of customer reviews according with given criteria- Specified by:
retrieveCustomerReviewsForBookingin interfaceAccommodationOfferingCustomerReviewService- 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:AccommodationOfferingCustomerReviewServiceRetrieve a customer review according with given criteria- Specified by:
retrieveCustomerReviewForRoomStayin interfaceAccommodationOfferingCustomerReviewService- 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:AccommodationOfferingCustomerReviewServiceCreates and saves a review against the given accommodation offering- Specified by:
saveReviewin interfaceAccommodationOfferingCustomerReviewService- 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
- 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
-