public interface AbstractBundleComponentEditableChecker<O extends AbstractOrderModel>
BundleTemplateModel) can be edited| Modifier and Type | Method and Description |
|---|---|
boolean |
canEdit(O masterAbstractOrder,
BundleTemplateModel bundleTemplate,
int bundleNo)
Deprecated.
since 6.5 - bundleNo parameter is deprecated, should be replaced with entry groups
|
void |
checkIsComponentDependencyMet(O masterAbstractOrder,
BundleTemplateModel bundleTemplate,
int bundleNo)
Deprecated.
since 6.5 - bundleNo parameter is deprecated, should be replaced with entry groups
|
void |
checkIsComponentSelectionCriteriaMet(O masterAbstractOrder,
BundleTemplateModel bundleTemplate,
int bundleNo)
Deprecated.
since 6.5 - bundleNo parameter is deprecated, should be replaced with entry groups
|
boolean |
isAutoPickComponent(BundleTemplateModel bundleTemplate)
Deprecated.
since 1811 - auto pick components were moved to subscriptionbundles
|
boolean |
isComponentDependencyMet(O masterAbstractOrder,
BundleTemplateModel bundleTemplate,
int bundleNo)
Deprecated.
since 6.5 - bundleNo parameter is deprecated, should be replaced with entry groups
|
boolean |
isComponentSelectionCriteriaMet(O masterAbstractOrder,
BundleTemplateModel bundleTemplate,
int bundleNo)
Deprecated.
since 6.5 - bundleNo parameter is deprecated, should be replaced with entry groups
|
boolean |
isRequiredDependencyMet(O order,
BundleTemplateModel bundleTemplate,
java.lang.Integer entryGroupNumber)
Checks if the selection dependency of the given component
bundleTemplate in given bundle
bundleTemplate and order is fulfilled. |
@Deprecated 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 auto pick type, 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
false@Deprecated void 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 met@Deprecated boolean 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 isRequiredDependencyMet(O order, BundleTemplateModel bundleTemplate, java.lang.Integer entryGroupNumber)
bundleTemplate in given bundle
bundleTemplate and order is fulfilled. Returns the result of that check instead
of throwing an exception.order - the order specified bundle is a part ofbundleTemplate - the component to check selection dependency forentryGroupNumber - number of the entry group created from bundle template@Deprecated boolean isAutoPickComponent(BundleTemplateModel bundleTemplate)
BundleTemplateModel has a selection criteria of auto pick type.bundleTemplate - true if selection criteria has auto pick type, otherwise
false@Deprecated void 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 fulfilled@Deprecated boolean 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 © 2018 SAP SE. All Rights Reserved.