public interface FSCommerceCartService
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
checkAndGetReasonForDisabledProductInComponent(CartModel masterCart,
ProductModel product,
BundleTemplateModel bundleTemplate,
int bundleNo,
boolean ignoreCurrentProducts)
Checks if the given
product which is not yet added to the cart/bundle needs to be disabled within a
component. |
boolean |
checkIsComponentEditable(CartModel masterCart,
BundleTemplateModel bundleTemplate,
int bundleNo)
Check is component editable boolean.
|
boolean |
checkIsComponentSelectionCriteriaMet(CartModel masterCart,
BundleTemplateModel bundleTemplate,
int bundleNo)
Check is component selection criteria met boolean.
|
boolean |
checkIsEntryRemoveable(CartEntryModel entryToUpdate)
Check is entry removeable boolean.
|
boolean |
checkIsEntryUpdateable(CartEntryModel orderEntry)
Check is entry updateable boolean.
|
java.util.List<CartEntryModel> |
getCartEntriesForComponentInBundle(CartModel masterCart,
BundleTemplateModel component,
int bundleNo)
Gets the list of
CartEntryModel for component and bundleNo. |
java.util.List<CartEntryModel> getCartEntriesForComponentInBundle(CartModel masterCart, BundleTemplateModel component, int bundleNo)
CartEntryModel for component and bundleNo.masterCart - the master cart the bundle is incomponent - the component for which the cartentries should be foundbundleNo - the bundleNo for which the cartentries should be foundjava.lang.String checkAndGetReasonForDisabledProductInComponent(CartModel masterCart, ProductModel product, BundleTemplateModel bundleTemplate, int bundleNo, boolean ignoreCurrentProducts)
product which is not yet added to the cart/bundle needs to be disabled within a
component. A product needs to be disabled if a disable rule is applicable (see description of method
isProductDisabledInBundle() above) and/or the selection criteria of the component is exceeded. If the given
product needs to be disabled the reason is returned as String. If ignoreCurrentProducts
is enabled, then all product of the current component will be ignored when finding disable rules.masterCart - the master cart the bundle is inproduct - the product which is to be added to the given bundleNobundleTemplate - the component to which the given product is linkedbundleNo - the number of the bundle the given bundleTemplate and product belong to or will be addedignoreCurrentProducts - if current products should be ignoredString why the given product needs to be disabled, otherwise nullboolean checkIsEntryUpdateable(CartEntryModel orderEntry)
orderEntry - the order entryboolean checkIsEntryRemoveable(CartEntryModel entryToUpdate)
entryToUpdate - the entry to updateboolean checkIsComponentEditable(CartModel masterCart, BundleTemplateModel bundleTemplate, int bundleNo)
masterCart - the master cartbundleTemplate - the bundle templatebundleNo - the bundle noboolean checkIsComponentSelectionCriteriaMet(CartModel masterCart, BundleTemplateModel bundleTemplate, int bundleNo)
masterCart - the master cartbundleTemplate - the bundle templatebundleNo - the bundle noCopyright © 2018 SAP SE. All Rights Reserved.