Class DefaultRelatedItemsService
- java.lang.Object
-
- de.hybris.platform.cms2.relateditems.impl.DefaultRelatedItemsService
-
- All Implemented Interfaces:
RelatedItemsService,org.springframework.beans.factory.InitializingBean
public class DefaultRelatedItemsService extends java.lang.Object implements RelatedItemsService, org.springframework.beans.factory.InitializingBean
Default implementation ofRelatedItemsService. It uses the list ofRelatedItemVisitorvisitors to retrieve hierarchically related items.
-
-
Constructor Summary
Constructors Constructor Description DefaultRelatedItemsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()java.util.List<CMSItemModel>getRelatedItems(ItemModel itemModel)Returns a list of all relatedCMSItemModelitems.TypeServicegetTypeService()java.util.List<RelatedItemVisitor>getVisitors()voidsetTypeService(TypeService typeService)voidsetVisitors(java.util.List<RelatedItemVisitor> visitors)
-
-
-
Method Detail
-
getRelatedItems
public java.util.List<CMSItemModel> getRelatedItems(ItemModel itemModel)
Description copied from interface:RelatedItemsServiceReturns a list of all relatedCMSItemModelitems.- Specified by:
getRelatedItemsin interfaceRelatedItemsService- Parameters:
itemModel- theItemModelthat is used to retrieve relatedCMSItemModel.- Returns:
- the list of
CMSItemModel
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
getVisitors
public java.util.List<RelatedItemVisitor> getVisitors()
-
setVisitors
public void setVisitors(java.util.List<RelatedItemVisitor> visitors)
-
getTypeService
public TypeService getTypeService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
-