public class DefaultRestrictionContextProvider extends java.lang.Object implements RestrictionContextProvider
RestrictionContextProvider. Sets a restriction in session to be available elsewhere.| Constructor and Description |
|---|
DefaultRestrictionContextProvider() |
| Modifier and Type | Method and Description |
|---|---|
RestrictionData |
getRestrictionInContext()
Gets the restriction, if any, stored in the context.
|
protected SessionService |
getSessionService() |
void |
removeRestrictionFromContext()
Removes the current restriction in context.
|
void |
setRestrictionInContext(RestrictionData restrictionData)
Sets the restriction in the context.
|
void |
setSessionService(SessionService sessionService) |
public RestrictionData getRestrictionInContext()
RestrictionContextProvidergetRestrictionInContext in interface RestrictionContextProviderpublic void setRestrictionInContext(RestrictionData restrictionData)
RestrictionContextProvidersetRestrictionInContext in interface RestrictionContextProviderrestrictionData - The restriction to set in the context.public void removeRestrictionFromContext()
RestrictionContextProviderremoveRestrictionFromContext in interface RestrictionContextProviderprotected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
Copyright © 2018 SAP SE. All Rights Reserved.