Class ComponentRelatedItemVisitor
java.lang.Object
de.hybris.platform.cms2.relateditems.visitors.page.ComponentRelatedItemVisitor
- All Implemented Interfaces:
RelatedItemVisitor
The
RelatedItemVisitor that retrieves a list of all hierarchically related items for provided
AbstractCMSComponentModel. The hierarchical order for this visitor is the component itself, all related slots
and pages.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSPageServiceConstraint 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.voidsetCmsComponentService(CMSComponentService cmsComponentService) voidsetCmsPageService(CMSPageService cmsPageService) voidsetVisitorPredicate(Predicate<ItemModel> visitorPredicate)
-
Constructor Details
-
ComponentRelatedItemVisitor
public ComponentRelatedItemVisitor()
-
-
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
-
getCmsPageService
-
setCmsPageService
-
getCmsComponentService
-
setCmsComponentService
-