Interface RenderingVisibilityRule<T extends ItemModel>
-
- Type Parameters:
T- the object that extendsItemModel
- All Known Implementing Classes:
CMSComponentRenderingVisibilityRule,CMSNavigationNodeRenderingVisibilityRule
public interface RenderingVisibilityRule<T extends ItemModel>Interface responsible for verification of an item visibility.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisVisible(T itemModel)Verifies the visibility of itemModeljava.util.function.Predicate<ItemModel>restrictedBy()The predicate to verify that the provided itemModel is the one for which the visibility is being verified.
-
-
-
Method Detail
-
restrictedBy
java.util.function.Predicate<ItemModel> restrictedBy()
The predicate to verify that the provided itemModel is the one for which the visibility is being verified.- Returns:
- the
Predicate
-
isVisible
boolean isVisible(T itemModel)
Verifies the visibility of itemModel- Parameters:
itemModel-- Returns:
-
-