Class GlobalUserGroupTypeRestriction

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

public class GlobalUserGroupTypeRestriction extends Object implements GlobalBookingActionEnabledEvaluatorStrategy
Strategy to evaluate the enabled property of the List, based on the gruups of the current user type: the bookingAction is disabled if the user belong to at least one of the given Restricted User Groups Codes list.
  • Constructor Details

    • GlobalUserGroupTypeRestriction

      public GlobalUserGroupTypeRestriction()
  • Method Details

    • applyStrategy

      public void applyStrategy(List<BookingActionData> bookingActionDataList, GlobalTravelReservationData globalReservationData, BookingActionResponseData bookingActionResponse)
      Description copied from interface: GlobalBookingActionEnabledEvaluatorStrategy
      Applies the strategy for List
      Specified by:
      applyStrategy in interface GlobalBookingActionEnabledEvaluatorStrategy
      Parameters:
      bookingActionDataList - the booking action data list
      globalReservationData - the global reservation data
      bookingActionResponse - the booking action response
    • 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
    • getRestrictedUserGroupCodeList

      protected List<String> getRestrictedUserGroupCodeList()
      Returns:
      the restrictedUserGroupCodeList
    • setRestrictedUserGroupCodeList

      public void setRestrictedUserGroupCodeList(List<String> restrictedUserGroupCodeList)
      Parameters:
      restrictedUserGroupCodeList - the restrictedUserGroupCodeList to set