Class UserGroupTypeRestriction

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

public class UserGroupTypeRestriction extends Object implements BookingActionEnabledEvaluatorStrategy
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

    • UserGroupTypeRestriction

      public UserGroupTypeRestriction()
  • 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
    • 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