Class AccommodationReservationStatusHandler
java.lang.Object
de.hybris.platform.travelfacades.reservation.handlers.impl.AccommodationReservationStatusHandler
- All Implemented Interfaces:
AccommodationReservationHandler
public class AccommodationReservationStatusHandler
extends Object
implements AccommodationReservationHandler
This handler is responsible for populating the Status values of the
AccommodationReservationData. If the
order is one of the previous version, the latest orderModel is retrieve and its status property value is set on the
AccommodationReservationData, otherwise is populated from the status property of the order.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.store.services.BaseStoreServiceGets base store service.protected de.hybris.platform.commerceservices.customer.CustomerAccountServiceGets customer account service.protected de.hybris.platform.enumeration.EnumerationServiceGets enumeration service.protected de.hybris.platform.servicelayer.i18n.I18NServiceGets i 18 n service.voidhandle(AbstractOrderModel abstractOrder, AccommodationReservationData accommodationReservationData) Handle method to populateAccommodationReservationDatawith details fromAbstractOrderModel.voidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Sets base store service.voidsetCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) Sets customer account service.voidsetEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) Sets enumeration service.voidsetI18NService(de.hybris.platform.servicelayer.i18n.I18NService i18nService) Sets i 18 n service.
-
Constructor Details
-
AccommodationReservationStatusHandler
public AccommodationReservationStatusHandler()
-
-
Method Details
-
handle
public void handle(AbstractOrderModel abstractOrder, AccommodationReservationData accommodationReservationData) throws AccommodationPipelineException Description copied from interface:AccommodationReservationHandlerHandle method to populateAccommodationReservationDatawith details fromAbstractOrderModel.- Specified by:
handlein interfaceAccommodationReservationHandler- Parameters:
abstractOrder- the abstract orderaccommodationReservationData- the accommodation reservation data- Throws:
AccommodationPipelineException- the accommodation pipeline exception
-
getCustomerAccountService
protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()Gets customer account service.- Returns:
- the customerAccountService
-
setCustomerAccountService
public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) Sets customer account service.- Parameters:
customerAccountService- the customerAccountService to set
-
getBaseStoreService
protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()Gets base store service.- Returns:
- the baseStoreService
-
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Sets base store service.- Parameters:
baseStoreService- the baseStoreService to set
-
getEnumerationService
protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()Gets enumeration service.- Returns:
- the enumerationService
-
setEnumerationService
public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) Sets enumeration service.- Parameters:
enumerationService- the enumerationService to set
-
getI18NService
protected de.hybris.platform.servicelayer.i18n.I18NService getI18NService()Gets i 18 n service.- Returns:
- the i18NService
-
setI18NService
public void setI18NService(de.hybris.platform.servicelayer.i18n.I18NService i18nService) Sets i 18 n service.- Parameters:
i18nService- the i18NService to set
-