public abstract class AutoPickBundleComponentEditableChecker<O extends AbstractOrderModel,E extends AbstractOrderEntryModel> extends DefaultAbstractBundleComponentEditableChecker<O,E>
AbstractBundleComponentEditableChecker, which supports autopick components.| Constructor and Description |
|---|
AutoPickBundleComponentEditableChecker() |
| 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 |
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 auto pick type. |
bundleTemplatesToGroupNumbers, checkComponentIsLeaf, checkIsComponentDependencyMet, getEntryGroupService, getOrderEntryDao, getPopulatedGroupNumbers, isComponentDependencyMet, isComponentSelectionCriteriaMet, isRequiredDependencyMet, setEntryGroupService, setOrderEntryDaopublic AutoPickBundleComponentEditableChecker()
public boolean canEdit(O masterAbstractOrder, BundleTemplateModel bundleTemplate, int bundleNo)
AbstractBundleComponentEditableCheckerbundleTemplate 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.canEdit in interface AbstractBundleComponentEditableChecker<O extends AbstractOrderModel>canEdit in class DefaultAbstractBundleComponentEditableChecker<O extends AbstractOrderModel,E extends AbstractOrderEntryModel>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
falsepublic boolean isAutoPickComponent(BundleTemplateModel bundleTemplate)
AbstractBundleComponentEditableCheckerBundleTemplateModel has a selection criteria of auto pick type.isAutoPickComponent in interface AbstractBundleComponentEditableChecker<O extends AbstractOrderModel>isAutoPickComponent in class DefaultAbstractBundleComponentEditableChecker<O extends AbstractOrderModel,E extends AbstractOrderEntryModel>true if selection criteria has auto pick type, otherwise
falsepublic void checkIsComponentSelectionCriteriaMet(O masterAbstractOrder, BundleTemplateModel bundleTemplate, int bundleNo) throws CommerceCartModificationException
AbstractBundleComponentEditableCheckerbundleTemplate's selection criteria are fulfilled, neither exceeded nor under
threshold. Throws an exception of selection criteria is not met.checkIsComponentSelectionCriteriaMet in interface AbstractBundleComponentEditableChecker<O extends AbstractOrderModel>checkIsComponentSelectionCriteriaMet in class DefaultAbstractBundleComponentEditableChecker<O extends AbstractOrderModel,E extends AbstractOrderEntryModel>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 fulfilledCopyright © 2018 SAP SE. All Rights Reserved.