Interface RestrictionContextProvider
-
- All Known Implementing Classes:
DefaultRestrictionContextProvider
public interface RestrictionContextProviderInterface to set restriction information in the context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RestrictionDatagetRestrictionInContext()Gets the restriction, if any, stored in the context.voidremoveRestrictionFromContext()Removes the current restriction in context.voidsetRestrictionInContext(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.
-
-