Class DefaultRestrictionContextProvider
java.lang.Object
de.hybris.platform.cmsfacades.rendering.impl.DefaultRestrictionContextProvider
- All Implemented Interfaces:
RestrictionContextProvider
Default implementation of
RestrictionContextProvider. Sets a restriction in session to be available elsewhere.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the restriction, if any, stored in the context.protected SessionServicevoidRemoves the current restriction in context.voidsetRestrictionInContext(RestrictionData restrictionData) Sets the restriction in the context.voidsetSessionService(SessionService sessionService)
-
Constructor Details
-
DefaultRestrictionContextProvider
public DefaultRestrictionContextProvider()
-
-
Method Details
-
getRestrictionInContext
Description copied from interface:RestrictionContextProviderGets the restriction, if any, stored in the context.- Specified by:
getRestrictionInContextin interfaceRestrictionContextProvider- Returns:
- The restriction stored in the context. Will return null if none is stored.
-
setRestrictionInContext
Description copied from interface:RestrictionContextProviderSets the restriction in the context. Will replace any already stored.- Specified by:
setRestrictionInContextin interfaceRestrictionContextProvider- Parameters:
restrictionData- The restriction to set in the context.
-
removeRestrictionFromContext
public void removeRestrictionFromContext()Description copied from interface:RestrictionContextProviderRemoves the current restriction in context.- Specified by:
removeRestrictionFromContextin interfaceRestrictionContextProvider
-
getSessionService
-
setSessionService
-