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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(List<BookingActionData> bookingActionDataList, ReservationData reservationData) Applies the strategy for Listprotected de.hybris.platform.servicelayer.user.UserServicevoidsetRestrictedUserGroupCodeList(List<String> restrictedUserGroupCodeList) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Constructor Details
-
UserGroupTypeRestriction
public UserGroupTypeRestriction()
-
-
Method Details
-
applyStrategy
public void applyStrategy(List<BookingActionData> bookingActionDataList, ReservationData reservationData) Description copied from interface:BookingActionEnabledEvaluatorStrategyApplies the strategy for List- Specified by:
applyStrategyin interfaceBookingActionEnabledEvaluatorStrategy- Parameters:
bookingActionDataList- the booking action data listreservationData- 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
- Returns:
- the restrictedUserGroupCodeList
-
setRestrictedUserGroupCodeList
- Parameters:
restrictedUserGroupCodeList- the restrictedUserGroupCodeList to set
-