Class DefaultRestrictionAwareService
java.lang.Object
de.hybris.platform.cmsfacades.common.service.impl.DefaultRestrictionAwareService
- All Implemented Interfaces:
RestrictionAwareService
Default implementation of
RestrictionAwareService. Sets restriction information in the session during the execution of a
supplier.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Texecute(RestrictionData restrictionData, Supplier<T> supplier) Makes restriction data available during the execution of the provided supplier.protected RestrictionContextProvidervoidsetRestrictionContextProvider(RestrictionContextProvider restrictionContextProvider)
-
Constructor Details
-
DefaultRestrictionAwareService
public DefaultRestrictionAwareService()
-
-
Method Details
-
execute
Description copied from interface:RestrictionAwareServiceMakes restriction data available during the execution of the provided supplier.- Specified by:
executein interfaceRestrictionAwareService- Type Parameters:
T- The type returned by the supplier.- Parameters:
restrictionData- The restriction data to make available during the execution of the supplier.supplier- The supplier to execute.- Returns:
- The value calculated by the supplier.
-
getRestrictionContextProvider
-
setRestrictionContextProvider
-