Class DefaultRestrictionContextProvider
- java.lang.Object
-
- de.hybris.platform.cmsfacades.rendering.impl.DefaultRestrictionContextProvider
-
- All Implemented Interfaces:
RestrictionContextProvider
public class DefaultRestrictionContextProvider extends java.lang.Object implements RestrictionContextProvider
Default implementation ofRestrictionContextProvider. Sets a restriction in session to be available elsewhere.
-
-
Constructor Summary
Constructors Constructor Description DefaultRestrictionContextProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestrictionDatagetRestrictionInContext()Gets the restriction, if any, stored in the context.protected SessionServicegetSessionService()voidremoveRestrictionFromContext()Removes the current restriction in context.voidsetRestrictionInContext(RestrictionData restrictionData)Sets the restriction in the context.voidsetSessionService(SessionService sessionService)
-
-
-
Method Detail
-
getRestrictionInContext
public RestrictionData 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
public void setRestrictionInContext(RestrictionData restrictionData)
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
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
-