public class DefaultRestrictionAwareService extends java.lang.Object implements RestrictionAwareService
RestrictionAwareService. Sets restriction information in the session during the execution of a
supplier.| Constructor and Description |
|---|
DefaultRestrictionAwareService() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(RestrictionData restrictionData,
java.util.function.Supplier<T> supplier)
Makes restriction data available during the execution of the provided supplier.
|
protected RestrictionContextProvider |
getRestrictionContextProvider() |
void |
setRestrictionContextProvider(RestrictionContextProvider restrictionContextProvider) |
public <T> T execute(RestrictionData restrictionData, java.util.function.Supplier<T> supplier)
RestrictionAwareServiceexecute in interface RestrictionAwareServiceT - The type returned by the supplier.restrictionData - The restriction data to make available during the execution of the supplier.supplier - The supplier to execute.protected RestrictionContextProvider getRestrictionContextProvider()
public void setRestrictionContextProvider(RestrictionContextProvider restrictionContextProvider)
Copyright © 2018 SAP SE. All Rights Reserved.