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 Details

    • AccommodationUserActionTypeRestrictionStrategy

      public AccommodationUserActionTypeRestrictionStrategy()
  • Method Details

    • applyStrategy

      public void applyStrategy(List<AccommodationBookingActionData> bookingActionDataList, AccommodationReservationData reservationData)
      Description copied from interface: AccommodationBookingActionEnabledEvaluatorStrategy
      Applies the strategy for List
      Specified by:
      applyStrategy in interface AccommodationBookingActionEnabledEvaluatorStrategy
      Parameters:
      bookingActionDataList - the booking action data list
      reservationData - 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