Class AbstractRatePlansHandler
java.lang.Object
de.hybris.platform.travelfacades.facades.accommodation.handlers.impl.AbstractRatePlansHandler
- All Implemented Interfaces:
AccommodationDetailsHandler
- Direct Known Subclasses:
DealRatePlansHandler,RatePlansHandler,SelectedRatePlansHandler
public abstract class AbstractRatePlansHandler
extends Object
implements AccommodationDetailsHandler
Abstract handler for
RatePlansHandler and SelectedRatePlansHandler-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AccommodationServiceprotected de.hybris.platform.servicelayer.dto.converter.Converter<GuestOccupancyModel,GuestOccupancyData> protected de.hybris.platform.servicelayer.dto.converter.Converter<RatePlanModel,RatePlanData> voidsetAccommodationService(AccommodationService accommodationService) voidsetCancelPenaltiesDescriptionCreationStrategy(CancelPenaltiesDescriptionCreationStrategy cancelPenaltiesDescriptionCreationStrategy) voidsetGuestOccupancyConverter(de.hybris.platform.servicelayer.dto.converter.Converter<GuestOccupancyModel, GuestOccupancyData> guestOccupancyConverter) voidsetRatePlanConverter(de.hybris.platform.servicelayer.dto.converter.Converter<RatePlanModel, RatePlanData> ratePlanConverter) protected voidupdateCancelPenaltiesDescription(Collection<RatePlanModel> ratePlanModelList, RoomStayData roomStay) Updates the formattedDescription of the cancelPenalties of the ratePlans of the given roomStayprotected voidupdateGuestOccupancy(RoomStayData roomStayData, AccommodationModel accommodation) Sets guest occupancy in each rate plan with the guest occupancy from an accommodation if not availableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.travelfacades.facades.accommodation.handlers.AccommodationDetailsHandler
handle
-
Constructor Details
-
AbstractRatePlansHandler
public AbstractRatePlansHandler()
-
-
Method Details
-
updateGuestOccupancy
Sets guest occupancy in each rate plan with the guest occupancy from an accommodation if not available- Parameters:
roomStayData-accommodation-
-
updateCancelPenaltiesDescription
protected void updateCancelPenaltiesDescription(Collection<RatePlanModel> ratePlanModelList, RoomStayData roomStay) Updates the formattedDescription of the cancelPenalties of the ratePlans of the given roomStay- Parameters:
ratePlanModelList-roomStay-
-
getAccommodationService
- Returns:
- the accommodationService
-
setAccommodationService
- Parameters:
accommodationService- the accommodationService to set
-
getRatePlanConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<RatePlanModel,RatePlanData> getRatePlanConverter()- Returns:
- the ratePlanConverter
-
setRatePlanConverter
public void setRatePlanConverter(de.hybris.platform.servicelayer.dto.converter.Converter<RatePlanModel, RatePlanData> ratePlanConverter) - Parameters:
ratePlanConverter- the ratePlanConverter to set
-
getGuestOccupancyConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<GuestOccupancyModel,GuestOccupancyData> getGuestOccupancyConverter()- Returns:
- the guestOccupancyConverter
-
setGuestOccupancyConverter
public void setGuestOccupancyConverter(de.hybris.platform.servicelayer.dto.converter.Converter<GuestOccupancyModel, GuestOccupancyData> guestOccupancyConverter) - Parameters:
guestOccupancyConverter- the guestOccupancyConverter to set
-
getCancelPenaltiesDescriptionCreationStrategy
protected CancelPenaltiesDescriptionCreationStrategy getCancelPenaltiesDescriptionCreationStrategy()- Returns:
- the cancelPenaltiesDescriptionCreationStrategy
-
setCancelPenaltiesDescriptionCreationStrategy
public void setCancelPenaltiesDescriptionCreationStrategy(CancelPenaltiesDescriptionCreationStrategy cancelPenaltiesDescriptionCreationStrategy) - Parameters:
cancelPenaltiesDescriptionCreationStrategy- the cancelPenaltiesDescriptionCreationStrategy to set
-