Interface BundleNavigationService
-
- All Known Implementing Classes:
DefaultBundleNavigationService
public interface BundleNavigationService
The Interface BundleNavigationService for managing bundle navigation nodes.- Spring Bean ID:
- bundleNavigationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(BundleTemplateModel bundleTemplateModel, ProductModel productModel)
Associates theProductModel
to theBundleTemplateModel
, i.e.void
add(BundleTemplateModel bundleTemplateModel, java.util.Collection<ProductModel> productModels)
Associates the list ofProductModel
s to theBundleTemplateModel
, i.e.java.util.List<BundleTemplateModel>
getRootNavigationNodes(CatalogVersionModel catalogVersion)
Returns all root navigation nodes for given catalog version.void
move(BundleTemplateModel sourceBundleTemplateModel, ProductModel sourceProductModel, BundleTemplateModel targetBundleTemplateModel)
void
move(BundleTemplateModel bundleTemplateModel, ProductModel sourceProductModel, ProductModel targetProductModel)
Moves the order within aBundleTemplateModel
products list.void
remove(BundleTemplateModel bundleTemplateModel, ProductModel productModel)
Removes theProductModel
association 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 ofProductModel
s to theBundleTemplateModel
, i.e. adds it to the end of the products list.- Parameters:
bundleTemplateModel
- theBundleTemplateModel
to which theProductModel
is association withproductModels
- the list ofProductModel
s which should be associated with theBundleTemplateModel
-
add
void add(BundleTemplateModel bundleTemplateModel, ProductModel productModel)
Associates theProductModel
to theBundleTemplateModel
, i.e. adds it to the end of the products list.- Parameters:
bundleTemplateModel
- theBundleTemplateModel
to which theProductModel
is association withproductModel
- theProductModel
which should be associated with theBundleTemplateModel
-
remove
void remove(BundleTemplateModel bundleTemplateModel, ProductModel productModel)
Removes theProductModel
association from theBundleTemplateModel
.- Parameters:
bundleTemplateModel
- theBundleTemplateModel
to remove theProductModel
association from.productModel
- theProductModel
which should be removed from theBundleTemplateModel
association.
-
move
void move(BundleTemplateModel bundleTemplateModel, ProductModel sourceProductModel, ProductModel targetProductModel)
Moves the order within aBundleTemplateModel
products list. The sourceProductModel
is moved to the place of the targetProductModel
.- Parameters:
bundleTemplateModel
- theBundleTemplateModel
in 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 aProductModel
from a sourceBundleTemplateModel
to a targetBundleTemplateModel
. TheProductModel
is removed from the sourceBundleTemplateModel
and added to the targetBundleTemplateModel
i.e. at the end of the list of associated products.- Parameters:
sourceBundleTemplateModel
- the sourceBundleTemplateModel
from which theProductModel
is removedsourceProductModel
- theProductModel
which is movedtargetBundleTemplateModel
- the targetBundleTemplateModel
to which theProductModel
is moved
-
-