Interface BundleNavigationService
- All Known Implementing Classes:
DefaultBundleNavigationService
public interface BundleNavigationService
The Interface BundleNavigationService for managing bundle navigation nodes.
- Spring Bean ID:
- bundleNavigationService
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(BundleTemplateModel bundleTemplateModel, ProductModel productModel) Associates theProductModelto theBundleTemplateModel, i.e.voidadd(BundleTemplateModel bundleTemplateModel, Collection<ProductModel> productModels) Associates the list ofProductModels to theBundleTemplateModel, i.e.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 Details
-
add
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
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
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