Class ContentSlotForPageRelatedItemVisitor
java.lang.Object
de.hybris.platform.cms2.relateditems.visitors.page.ContentSlotForPageRelatedItemVisitor
- All Implemented Interfaces:
RelatedItemVisitor
The
RelatedItemVisitor that retrieves a list of all hierarchically related items for provided
ContentSlotForPageModel. The hierarchical order for this visitor is only related pages for
ContentSlotForPageModel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstraint 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.voidsetVisitorPredicate(Predicate<ItemModel> visitorPredicate)
-
Constructor Details
-
ContentSlotForPageRelatedItemVisitor
public ContentSlotForPageRelatedItemVisitor()
-
-
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
-