Interface AbstractBundleComponentEditableChecker<O extends AbstractOrderModel>

All Known Implementing Classes:
AutoPickBundleComponentEditableChecker, AutoPickCartBundleComponentEditableChecker, DefaultAbstractBundleComponentEditableChecker, DefaultCartBundleComponentEditableChecker

public interface AbstractBundleComponentEditableChecker<O extends AbstractOrderModel>
Checks if a bundle component (BundleTemplateModel) can be edited
  • Method Details

    • isRequiredDependencyMet

      boolean isRequiredDependencyMet(@Nonnull O order, @Nonnull BundleTemplateModel bundleTemplate, @Nonnull Integer entryGroupNumber)
      Checks if the selection dependency of the given component bundleTemplate in given bundle bundleTemplate and order is fulfilled. Returns the result of that check instead of throwing an exception.
      Parameters:
      order - the order specified bundle is a part of
      bundleTemplate - the component to check selection dependency for
      entryGroupNumber - number of the entry group created from bundle template
    • isAutoPickComponent

      boolean isAutoPickComponent(@Nullable BundleTemplateModel bundleTemplate)
      Checks if BundleTemplateModel has a selection criteria of auto pick type.
      Parameters:
      bundleTemplate -
      Returns:
      true if selection criteria has auto pick type, otherwise false