Class RestrictionRelatedItemVisitor
- java.lang.Object
-
- de.hybris.platform.cms2.relateditems.visitors.page.RestrictionRelatedItemVisitor
-
- All Implemented Interfaces:
RelatedItemVisitor
public class RestrictionRelatedItemVisitor extends java.lang.Object implements RelatedItemVisitor
TheRelatedItemVisitorthat retrieves a list of all hierarchically related items for providedAbstractRestrictionModel. The hierarchical order for this visitor is the restriction itself, all related components and pages.
-
-
Constructor Summary
Constructors Constructor Description RestrictionRelatedItemVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ComponentRelatedItemVisitorgetComponentRelatedItemVisitor()java.util.function.Predicate<ItemModel>getConstrainedBy()Constraint that is used to find a properRelatedItemVisitorfor a particularItemModel.java.util.List<CMSItemModel>getRelatedItems(ItemModel itemModel)Returns a list of relatedCMSItemModelitems.voidsetComponentRelatedItemVisitor(ComponentRelatedItemVisitor componentRelatedItemVisitor)voidsetVisitorPredicate(java.util.function.Predicate<ItemModel> visitorPredicate)
-
-
-
Method Detail
-
getRelatedItems
public java.util.List<CMSItemModel> getRelatedItems(ItemModel itemModel)
Description copied from interface:RelatedItemVisitorReturns a list of relatedCMSItemModelitems.- Specified by:
getRelatedItemsin interfaceRelatedItemVisitor- Parameters:
itemModel- theItemModelthat is used to retrieve relatedCMSItemModel.- Returns:
- the
ListofCMSItemModel.
-
getConstrainedBy
public java.util.function.Predicate<ItemModel> getConstrainedBy()
Description copied from interface:RelatedItemVisitorConstraint that is used to find a properRelatedItemVisitorfor a particularItemModel.- Specified by:
getConstrainedByin interfaceRelatedItemVisitor- Returns:
- the
PredicateofItemModel
-
setVisitorPredicate
public void setVisitorPredicate(java.util.function.Predicate<ItemModel> visitorPredicate)
-
getComponentRelatedItemVisitor
protected ComponentRelatedItemVisitor getComponentRelatedItemVisitor()
-
setComponentRelatedItemVisitor
public void setComponentRelatedItemVisitor(ComponentRelatedItemVisitor componentRelatedItemVisitor)
-
-