Class DefaultAbstractBundleComponentEditableChecker<O extends AbstractOrderModel>
- java.lang.Object
-
- de.hybris.platform.configurablebundleservices.bundle.impl.DefaultAbstractBundleComponentEditableChecker<O>
-
- All Implemented Interfaces:
AbstractBundleComponentEditableChecker<O>
- Direct Known Subclasses:
AutoPickBundleComponentEditableChecker,DefaultCartBundleComponentEditableChecker
public abstract class DefaultAbstractBundleComponentEditableChecker<O extends AbstractOrderModel> extends java.lang.Object implements AbstractBundleComponentEditableChecker<O>
Default implementation of theAbstractBundleComponentEditableChecker
-
-
Constructor Summary
Constructors Constructor Description DefaultAbstractBundleComponentEditableChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Set<java.lang.Integer>bundleTemplatesToGroupNumbers(EntryGroup rootGroup, java.util.Collection<BundleTemplateModel> components)protected voidcheckComponentIsLeaf(BundleTemplateModel bundleTemplate)protected EntryGroupServicegetEntryGroupService()protected java.util.Set<java.lang.Integer>getPopulatedGroupNumbers(AbstractOrderModel order)booleanisAutoPickComponent(BundleTemplateModel bundleTemplate)Checks ifBundleTemplateModelhas a selection criteria of auto pick type.booleanisRequiredDependencyMet(O order, BundleTemplateModel bundleTemplate, java.lang.Integer entryGroupNumber)Checks if the selection dependency of the given componentbundleTemplatein given bundlebundleTemplateandorderis fulfilled.voidsetEntryGroupService(EntryGroupService entryGroupService)
-
-
-
Method Detail
-
isAutoPickComponent
public boolean isAutoPickComponent(BundleTemplateModel bundleTemplate)
Description copied from interface:AbstractBundleComponentEditableCheckerChecks ifBundleTemplateModelhas a selection criteria of auto pick type.- Specified by:
isAutoPickComponentin interfaceAbstractBundleComponentEditableChecker<O extends AbstractOrderModel>- Returns:
trueif selection criteria has auto pick type, otherwisefalse
-
isRequiredDependencyMet
public boolean isRequiredDependencyMet(@Nonnull O order, @Nonnull BundleTemplateModel bundleTemplate, @Nonnull java.lang.Integer entryGroupNumber)Description copied from interface:AbstractBundleComponentEditableCheckerChecks if the selection dependency of the given componentbundleTemplatein given bundlebundleTemplateandorderis fulfilled. Returns the result of that check instead of throwing an exception.- Specified by:
isRequiredDependencyMetin interfaceAbstractBundleComponentEditableChecker<O extends AbstractOrderModel>- Parameters:
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
-
bundleTemplatesToGroupNumbers
@Nonnull protected java.util.Set<java.lang.Integer> bundleTemplatesToGroupNumbers(@Nonnull EntryGroup rootGroup, @Nonnull java.util.Collection<BundleTemplateModel> components)
-
getPopulatedGroupNumbers
@Nonnull protected java.util.Set<java.lang.Integer> getPopulatedGroupNumbers(@Nonnull AbstractOrderModel order)
-
checkComponentIsLeaf
protected void checkComponentIsLeaf(@Nonnull BundleTemplateModel bundleTemplate) throws CommerceCartModificationException
-
getEntryGroupService
protected EntryGroupService getEntryGroupService()
-
setEntryGroupService
public void setEntryGroupService(EntryGroupService entryGroupService)
-
-