Class AccommodationUserActionTypeRestrictionStrategy
java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.AccommodationUserActionTypeRestrictionStrategy
- All Implemented Interfaces:
AccommodationBookingActionEnabledEvaluatorStrategy
public class AccommodationUserActionTypeRestrictionStrategy
extends Object
implements AccommodationBookingActionEnabledEvaluatorStrategy
Strategy to evaluate the enabled property of the List, based on the current user type. If the
booker that placed the booking was a registered customer, the enabled property is set to true only if the current
customer is the booker, false otherwise. If the booker that placed the booking was a guest customer, the enabled
property remains true.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(List<AccommodationBookingActionData> bookingActionDataList, AccommodationReservationData reservationData) Applies the strategy for Listprotected de.hybris.platform.store.services.BaseStoreServiceprotected de.hybris.platform.commerceservices.customer.CustomerAccountServiceprotected de.hybris.platform.servicelayer.user.UserServicevoidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) voidsetCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Constructor Details
-
AccommodationUserActionTypeRestrictionStrategy
public AccommodationUserActionTypeRestrictionStrategy()
-
-
Method Details
-
applyStrategy
public void applyStrategy(List<AccommodationBookingActionData> bookingActionDataList, AccommodationReservationData reservationData) Description copied from interface:AccommodationBookingActionEnabledEvaluatorStrategyApplies the strategy for List- Specified by:
applyStrategyin interfaceAccommodationBookingActionEnabledEvaluatorStrategy- Parameters:
bookingActionDataList- the booking action data listreservationData- the accommodation reservation data
-
getCustomerAccountService
protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()- Returns:
- the customerAccountService
-
setCustomerAccountService
public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) - Parameters:
customerAccountService- the customerAccountService to set
-
getBaseStoreService
protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()- Returns:
- the baseStoreService
-
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) - Parameters:
baseStoreService- the baseStoreService 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
-