public interface BundleTemplateService
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsComponenentProductsOfType(BundleTemplateModel bundleTemplate,
Class<? extends ProductModel>... clazzes)
Deprecated.
Checks whether the products on the list of assigned products of the given
bundleTemplate are of the
the given clazzes.
The method is deprecated and should be replaced with own one on client side. |
List<BundleTemplateModel> |
getAllApprovedRootBundleTemplates(CatalogVersionModel catalogVersion)
This methods returns all approved root bundle templates.
|
List<BundleTemplateModel> |
getAllComponentsOfType(BundleTemplateModel bundleTemplate,
Class<? extends ProductModel>... clazzes)
Deprecated.
Returns all child bundle templates (components) with products of the type
clazz.
The method is deprecated and should be replaced with own one on client side. |
List<BundleTemplateModel> |
getAllRootBundleTemplates(CatalogVersionModel catVer)
This methods returns all root bundle templates.
|
BundleTemplateModel |
getBundleTemplateForCode(String bundleId)
This method returns the bundle template by bundle id
bundleId |
BundleTemplateModel |
getBundleTemplateForCode(String bundleId,
String version)
This method returns the bundle template by bundle id
bundleId |
List<BundleTemplateModel> |
getBundleTemplatesByProduct(ProductModel model)
Get all components (child bundle templates) where the current device is included in the products list
|
List<BundleTemplateModel> |
getLeafComponents(BundleTemplateModel anyComponent)
Collect all leaf components of bundle.
|
int |
getPositionInParent(BundleTemplateModel bundleTemplate)
Returns the given
bundleTemplate's absolute position in the list of child templates that are assigned
to the parent template |
BundleTemplateModel |
getPreviousBundleTemplate(BundleTemplateModel bundleTemplate)
Returns the previous child bundle template.
|
BundleTemplateModel |
getRelativeBundleTemplate(BundleTemplateModel bundleTemplate,
int relativePosition)
Returns a relative child bundle template.
|
BundleTemplateModel |
getRootBundleTemplate(BundleTemplateModel bundleTemplateModel)
This method returns the root bundleTemplate
BundleTemplateModel of the given
bundleTemplateModel. |
BundleTemplateModel |
getSubsequentBundleTemplate(BundleTemplateModel bundleTemplate)
Returns the next child bundle template.
|
List<BundleTemplateModel> |
getTemplatesForMasterOrderAndBundleNo(AbstractOrderModel masterAbstractOrder,
int bundleNo)
Returns the distinct
BundleTemplateModels from the order entries that match the given filter criteria |
boolean |
isAutoPickComponent(BundleTemplateModel bundleTemplate)
Checks if
BundleTemplateModel has a selection criteria of AutoPickBundleSelectionCriteriaModel |
boolean |
isBundleTemplateUsed(BundleTemplateModel bundleTemplate)
Checks if the given
BundleTemplateModel was used in any cart or order entry |
BundleTemplateModel getRootBundleTemplate(BundleTemplateModel bundleTemplateModel)
BundleTemplateModel of the given
bundleTemplateModel. In case the given bundleTemplateModel is the root template the
given bundleTemplateModel is returned as root template.bundleTemplateModel - BundleTemplateModelBundleTemplateModel getBundleTemplateForCode(String bundleId)
bundleIdbundleId - Bundle IdBundleTemplateModelList<BundleTemplateModel> getBundleTemplatesByProduct(ProductModel model)
model - BundleTemplateModelBundleTemplateModel getSubsequentBundleTemplate(BundleTemplateModel bundleTemplate)
bundleTemplate
and selects the parents next child template, e.g. SMAR_Handset (given bundleTemplate) -> SMAR (parent
template) -> SMAR_Plan (next child template of parent), SMAR_Plan is returned.bundleTemplate - BundleTemplateModelBundleTemplateModel getPreviousBundleTemplate(BundleTemplateModel bundleTemplate)
bundleTemplate and selects the parents next child template, e.g. SMAR_Plan (given
bundleTemplate) -> SMAR (parent template) -> SMAR_Handset (previous child template of parent),
SMAR_Handset is returned.bundleTemplate - BundleTemplateModelBundleTemplateModel getRelativeBundleTemplate(BundleTemplateModel bundleTemplate, int relativePosition)
bundleTemplate
and selects the parents relative child templatebundleTemplate - relativePosition - the relative position of the child template to be returnedBundleTemplateModelList<BundleTemplateModel> getLeafComponents(BundleTemplateModel anyComponent)
anyComponent - any component in bundle hierarchyList<BundleTemplateModel> getTemplatesForMasterOrderAndBundleNo(AbstractOrderModel masterAbstractOrder, int bundleNo)
BundleTemplateModels from the order entries that match the given filter criteriamasterAbstractOrder - the master cart/order the bundle is inbundleNo - the number of the bundle to which the bundle templates belongList of BundleTemplateModels or empty List.BundleTemplateModel getBundleTemplateForCode(String bundleId, String version)
bundleIdbundleId - Bundle Idversion - BundleTemplateModelboolean isAutoPickComponent(BundleTemplateModel bundleTemplate)
BundleTemplateModel has a selection criteria of AutoPickBundleSelectionCriteriaModelbundleTemplate - true if selection criteria is AutoPickBundleSelectionCriteriaModel, otherwise
false@Deprecated boolean containsComponenentProductsOfType(BundleTemplateModel bundleTemplate, Class<? extends ProductModel>... clazzes)
bundleTemplate are of the
the given clazzes.
The method is deprecated and should be replaced with own one on client side.
bundleTemplate - the component to be checked for add-on productsclazzes - class of the products instances that are on the list of assigned products of the given
bundleTemplate (e.g. ServiceAddOnModel.class)true if the given bundleTemplate contains add-on products, otherwise
falseList<BundleTemplateModel> getAllRootBundleTemplates(CatalogVersionModel catVer)
catVer - catalog version where bundle templates will be searched inList of BundleTemplateModels@Deprecated List<BundleTemplateModel> getAllComponentsOfType(BundleTemplateModel bundleTemplate, Class<? extends ProductModel>... clazzes)
clazz.
The method is deprecated and should be replaced with own one on client side.
bundleTemplate - the bundleTemplate for which the child components are searchedclazzes - class of the products instances that are on the list of assigned products of the searched
bundleTemplate (e.g. ServicePlanModel.class)int getPositionInParent(BundleTemplateModel bundleTemplate)
bundleTemplate's absolute position in the list of child templates that are assigned
to the parent templatebundleTemplate - the child template whose position shall be returnedList<BundleTemplateModel> getAllApprovedRootBundleTemplates(CatalogVersionModel catalogVersion)
catalogVersion - catalog version where bundle templates will be searched inList of BundleTemplateModelsboolean isBundleTemplateUsed(BundleTemplateModel bundleTemplate)
BundleTemplateModel was used in any cart or order entrybundleTemplate - Copyright © 2017 SAP SE. All Rights Reserved.