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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(List<BookingActionData> bookingActionDataList, GlobalTravelReservationData globalReservationData, BookingActionResponseData bookingActionResponse) Applies the strategy for Listprotected de.hybris.platform.servicelayer.user.UserServicevoidsetRestrictedUserGroupCodeList(List<String> restrictedUserGroupCodeList) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Constructor Details
-
GlobalUserGroupTypeRestriction
public GlobalUserGroupTypeRestriction()
-
-
Method Details
-
applyStrategy
public void applyStrategy(List<BookingActionData> bookingActionDataList, GlobalTravelReservationData globalReservationData, BookingActionResponseData bookingActionResponse) Description copied from interface:GlobalBookingActionEnabledEvaluatorStrategyApplies the strategy for List- Specified by:
applyStrategyin interfaceGlobalBookingActionEnabledEvaluatorStrategy- Parameters:
bookingActionDataList- the booking action data listglobalReservationData- the global reservation databookingActionResponse- 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
- Returns:
- the restrictedUserGroupCodeList
-
setRestrictedUserGroupCodeList
- Parameters:
restrictedUserGroupCodeList- the restrictedUserGroupCodeList to set
-