Interface BundleNavigationService
-
- All Known Implementing Classes:
DefaultBundleNavigationService
public interface BundleNavigationServiceThe Interface BundleNavigationService for managing bundle navigation nodes.- Spring Bean ID:
- bundleNavigationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(BundleTemplateModel bundleTemplateModel, ProductModel productModel)Associates theProductModelto theBundleTemplateModel, i.e.voidadd(BundleTemplateModel bundleTemplateModel, java.util.Collection<ProductModel> productModels)Associates the list ofProductModels to theBundleTemplateModel, i.e.java.util.List<BundleTemplateModel>getRootNavigationNodes(CatalogVersionModel catalogVersion)Returns all root navigation nodes for given catalog version.voidmove(BundleTemplateModel sourceBundleTemplateModel, ProductModel sourceProductModel, BundleTemplateModel targetBundleTemplateModel)voidmove(BundleTemplateModel bundleTemplateModel, ProductModel sourceProductModel, ProductModel targetProductModel)Moves the order within aBundleTemplateModelproducts list.voidremove(BundleTemplateModel bundleTemplateModel, ProductModel productModel)Removes theProductModelassociation from theBundleTemplateModel.
-
-
-
Method Detail
-
getRootNavigationNodes
java.util.List<BundleTemplateModel> getRootNavigationNodes(CatalogVersionModel catalogVersion)
Returns all root navigation nodes for given catalog version.- Parameters:
catalogVersion- catalog version- Returns:
- root navigation nodes that have been found
-
add
void add(BundleTemplateModel bundleTemplateModel, java.util.Collection<ProductModel> productModels)
Associates the list ofProductModels to theBundleTemplateModel, i.e. adds it to the end of the products list.- Parameters:
bundleTemplateModel- theBundleTemplateModelto which theProductModelis association withproductModels- the list ofProductModels which should be associated with theBundleTemplateModel
-
add
void add(BundleTemplateModel bundleTemplateModel, ProductModel productModel)
Associates theProductModelto theBundleTemplateModel, i.e. adds it to the end of the products list.- Parameters:
bundleTemplateModel- theBundleTemplateModelto which theProductModelis association withproductModel- theProductModelwhich should be associated with theBundleTemplateModel
-
remove
void remove(BundleTemplateModel bundleTemplateModel, ProductModel productModel)
Removes theProductModelassociation from theBundleTemplateModel.- Parameters:
bundleTemplateModel- theBundleTemplateModelto remove theProductModelassociation from.productModel- theProductModelwhich should be removed from theBundleTemplateModelassociation.
-
move
void move(BundleTemplateModel bundleTemplateModel, ProductModel sourceProductModel, ProductModel targetProductModel)
Moves the order within aBundleTemplateModelproducts list. The sourceProductModelis moved to the place of the targetProductModel.- Parameters:
bundleTemplateModel- theBundleTemplateModelin which the products list is modifiedsourceProductModel- the source position of the move, this product is removed from this positiontargetProductModel- the target position, so the source product is moved to the position of the target product
-
move
void move(BundleTemplateModel sourceBundleTemplateModel, ProductModel sourceProductModel, BundleTemplateModel targetBundleTemplateModel)
Moves aProductModelfrom a sourceBundleTemplateModelto a targetBundleTemplateModel. TheProductModelis removed from the sourceBundleTemplateModeland added to the targetBundleTemplateModeli.e. at the end of the list of associated products.- Parameters:
sourceBundleTemplateModel- the sourceBundleTemplateModelfrom which theProductModelis removedsourceProductModel- theProductModelwhich is movedtargetBundleTemplateModel- the targetBundleTemplateModelto which theProductModelis moved
-
-