Class RestrictionRelatedItemVisitor
java.lang.Object
de.hybris.platform.cms2.relateditems.visitors.page.RestrictionRelatedItemVisitor
- All Implemented Interfaces:
RelatedItemVisitor
The
RelatedItemVisitor that retrieves a list of all hierarchically related items for provided
AbstractRestrictionModel. The hierarchical order for this visitor is the restriction itself, all related
components and pages.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentRelatedItemVisitorConstraint that is used to find a properRelatedItemVisitorfor a particularItemModel.getRelatedItems(ItemModel itemModel) Returns a list of relatedCMSItemModelitems.getRelatedItems(ItemModel itemModel, InterceptorContext interceptorContext) Returns a list of relatedCMSItemModelitems.voidsetComponentRelatedItemVisitor(ComponentRelatedItemVisitor componentRelatedItemVisitor) voidsetVisitorPredicate(Predicate<ItemModel> visitorPredicate)
-
Constructor Details
-
RestrictionRelatedItemVisitor
public RestrictionRelatedItemVisitor()
-
-
Method Details
-
getRelatedItems
public List<CMSItemModel> getRelatedItems(ItemModel itemModel, InterceptorContext interceptorContext) Description copied from interface:RelatedItemVisitorReturns a list of relatedCMSItemModelitems.- Specified by:
getRelatedItemsin interfaceRelatedItemVisitor- Parameters:
itemModel- theItemModelthat is used to retrieve relatedCMSItemModel.interceptorContext- theInterceptorContext- Returns:
- the
ListofCMSItemModel.
-
getRelatedItems
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
Description copied from interface:RelatedItemVisitorConstraint that is used to find a properRelatedItemVisitorfor a particularItemModel.- Specified by:
getConstrainedByin interfaceRelatedItemVisitor- Returns:
- the
PredicateofItemModel
-
setVisitorPredicate
-
getComponentRelatedItemVisitor
-