Class CMSComponentRenderingVisibilityRule
java.lang.Object
de.hybris.platform.cmsfacades.rendering.visibility.impl.CMSComponentRenderingVisibilityRule
- All Implemented Interfaces:
RenderingVisibilityRule<AbstractCMSComponentModel>
public class CMSComponentRenderingVisibilityRule
extends Object
implements RenderingVisibilityRule<AbstractCMSComponentModel>
Rendering visibility rule for
AbstractCMSComponentModel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSRestrictionServiceprotected RestrictionContextProviderbooleanisVisible(AbstractCMSComponentModel component) Verifies the visibility of itemModelThe predicate to verify that the provided itemModel is the one for which the visibility is being verified.voidsetCmsRestrictionService(CMSRestrictionService cmsRestrictionService) voidsetRestrictionContextProvider(RestrictionContextProvider restrictionContextProvider)
-
Constructor Details
-
CMSComponentRenderingVisibilityRule
public CMSComponentRenderingVisibilityRule()
-
-
Method Details
-
restrictedBy
Description copied from interface:RenderingVisibilityRuleThe predicate to verify that the provided itemModel is the one for which the visibility is being verified.- Specified by:
restrictedByin interfaceRenderingVisibilityRule<AbstractCMSComponentModel>- Returns:
- the
Predicate
-
isVisible
Description copied from interface:RenderingVisibilityRuleVerifies the visibility of itemModel- Specified by:
isVisiblein interfaceRenderingVisibilityRule<AbstractCMSComponentModel>- Returns:
-
getCmsRestrictionService
-
setCmsRestrictionService
-
getRestrictionContextProvider
-
setRestrictionContextProvider
-