Class RemoveTravellerUserActionTypeRestrictionStrategy

java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.RemoveTravellerUserActionTypeRestrictionStrategy
All Implemented Interfaces:
BookingActionEnabledEvaluatorStrategy

public class RemoveTravellerUserActionTypeRestrictionStrategy extends Object implements BookingActionEnabledEvaluatorStrategy
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 or additional security is enabled, false otherwise. If the booker that placed the booking was a guest customer, the enabled property remains true.
  • Constructor Details

    • RemoveTravellerUserActionTypeRestrictionStrategy

      public RemoveTravellerUserActionTypeRestrictionStrategy()
  • Method Details

    • applyStrategy

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