public interface AbstractBundleComponentEditableChecker<O extends AbstractOrderModel>
BundleTemplateModel) can be edited| Modifier and Type | Method and Description |
|---|---|
boolean |
canEdit(O masterAbstractOrder,
BundleTemplateModel bundleTemplate,
int bundleNo)
Checks if the given component
bundleTemplate in given bundle bundleNo and
masterAbstractOrder can be edited. |
void |
checkIsComponentDependencyMet(O masterAbstractOrder,
BundleTemplateModel bundleTemplate,
int bundleNo)
Checks if the selection dependency of the given component
bundleTemplate in given bundle
bundleNo and masterAbstractOrder is fulfilled. |
void |
checkIsComponentSelectionCriteriaMet(O masterAbstractOrder,
BundleTemplateModel bundleTemplate,
int bundleNo)
Checks if the given
bundleTemplate's selection criteria are fulfilled, neither exceeded nor under
threshold. |
boolean |
isAutoPickComponent(BundleTemplateModel bundleTemplate)
Checks if
BundleTemplateModel has a selection criteria of AutoPickBundleSelectionCriteriaModel |
boolean |
isComponentDependencyMet(O masterAbstractOrder,
BundleTemplateModel bundleTemplate,
int bundleNo)
Checks if the selection dependency of the given component
bundleTemplate in given bundle
bundleNo and masterAbstractOrder is fulfilled. |
boolean |
isComponentSelectionCriteriaMet(O masterAbstractOrder,
BundleTemplateModel bundleTemplate,
int bundleNo)
Checks if the given
bundleTemplate's selection criteria are fulfilled, neither exceeded nor under
threshold. |
boolean canEdit(O masterAbstractOrder, BundleTemplateModel bundleTemplate, int bundleNo)
bundleTemplate in given bundle bundleNo and
masterAbstractOrder can be edited. In case the given bundleTemplate's selection criteria
is of type AutoPickBundleSelectionCriteriaModel, it is never editable. The check is based on the selection
dependencies of the given bundleTemplate. Only if all requirements of those components, the given
component is dependent on, are met, the given component should be open for modifications.masterAbstractOrder - the master order/cart the bundle is inbundleTemplate - the component that is checked whether it can be editedbundleNo - the number of the bundle the given bundleTemplate belongs totrue if the selection dependencies are fulfilled and the component can be edited, otherwise
falsevoid checkIsComponentDependencyMet(O masterAbstractOrder, BundleTemplateModel bundleTemplate, int bundleNo) throws CommerceCartModificationException
bundleTemplate in given bundle
bundleNo and masterAbstractOrder is fulfilled.masterAbstractOrder - the master order/cart the bundle is inbundleTemplate - the component whose selection dependency is checkedbundleNo - the number of the bundle the given bundleTemplate belongs toCommerceCartModificationException - if the given bundleTemplate's selection dependency is not metboolean isComponentDependencyMet(O masterAbstractOrder, BundleTemplateModel bundleTemplate, int bundleNo)
bundleTemplate in given bundle
bundleNo and masterAbstractOrder is fulfilled.masterAbstractOrder - the master order/cart the bundle is inbundleTemplate - the component whose selection dependency is checkedbundleNo - the number of the bundle the given bundleTemplate belongs totrue if selection dependency is met, otherwise falseboolean isAutoPickComponent(BundleTemplateModel bundleTemplate)
BundleTemplateModel has a selection criteria of AutoPickBundleSelectionCriteriaModelbundleTemplate - true if selection criteria is AutoPickBundleSelectionCriteriaModel, otherwise
falsevoid checkIsComponentSelectionCriteriaMet(O masterAbstractOrder, BundleTemplateModel bundleTemplate, int bundleNo) throws CommerceCartModificationException
bundleTemplate's selection criteria are fulfilled, neither exceeded nor under
threshold. Throws an exception of selection criteria is not met.masterAbstractOrder - the master cart/orderbundleTemplate - the bundle template/component whose selection criteria are checkedbundleNo - the number of the bundle the given bundleTemplate is inCommerceCartModificationException - if selection criteria is not fulfilledboolean isComponentSelectionCriteriaMet(O masterAbstractOrder, BundleTemplateModel bundleTemplate, int bundleNo)
bundleTemplate's selection criteria are fulfilled, neither exceeded nor under
threshold.masterAbstractOrder - the master cart/orderbundleTemplate - the bundle template/component whose selection criteria are checkedbundleNo - the number of the bundle the given bundleTemplate is intrue if selection criteria is met, otherwise falseCopyright © 2017 SAP SE. All Rights Reserved.