Interface RestrictionContextProvider
- All Known Implementing Classes:
DefaultRestrictionContextProvider
public interface RestrictionContextProvider
Interface to set restriction information in the context.
-
Method Summary
Modifier and TypeMethodDescriptionGets the restriction, if any, stored in the context.voidRemoves the current restriction in context.voidsetRestrictionInContext(RestrictionData restrictionData) Sets the restriction in the context.
-
Method Details
-
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
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.
-