Interface RestrictionContextProvider
-
- All Known Implementing Classes:
DefaultRestrictionContextProvider
public interface RestrictionContextProvider
Interface to set restriction information in the context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RestrictionData
getRestrictionInContext()
Gets the restriction, if any, stored in the context.void
removeRestrictionFromContext()
Removes the current restriction in context.void
setRestrictionInContext(RestrictionData restrictionData)
Sets the restriction in the context.
-
-
-
Method Detail
-
getRestrictionInContext
RestrictionData getRestrictionInContext()
Gets the restriction, if any, stored in the context.- Returns:
- The restriction stored in the context. Will return null if none is stored.
-
setRestrictionInContext
void setRestrictionInContext(RestrictionData restrictionData)
Sets the restriction in the context. Will replace any already stored.- Parameters:
restrictionData
- The restriction to set in the context.
-
removeRestrictionFromContext
void removeRestrictionFromContext()
Removes the current restriction in context.
-
-