Class AccommodationUserGroupTypeRestriction
java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.AccommodationUserGroupTypeRestriction
- All Implemented Interfaces:
AccommodationBookingActionEnabledEvaluatorStrategy
public class AccommodationUserGroupTypeRestriction
extends Object
implements AccommodationBookingActionEnabledEvaluatorStrategy
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(List<AccommodationBookingActionData> bookingActionDataList, AccommodationReservationData accommodationReservationData) Applies the strategy for Listprotected de.hybris.platform.servicelayer.user.UserServicevoidsetRestrictedUserGroupCodeList(List<String> restrictedUserGroupCodeList) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Constructor Details
-
AccommodationUserGroupTypeRestriction
public AccommodationUserGroupTypeRestriction()
-
-
Method Details
-
applyStrategy
public void applyStrategy(List<AccommodationBookingActionData> bookingActionDataList, AccommodationReservationData accommodationReservationData) Description copied from interface:AccommodationBookingActionEnabledEvaluatorStrategyApplies the strategy for List- Specified by:
applyStrategyin interfaceAccommodationBookingActionEnabledEvaluatorStrategy- Parameters:
bookingActionDataList- the booking action data listaccommodationReservationData- the accommodation 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
- Returns:
- the restrictedUserGroupCodeList
-
setRestrictedUserGroupCodeList
- Parameters:
restrictedUserGroupCodeList- the restrictedUserGroupCodeList to set
-