Class DefaultProductConfigurableChecker
- java.lang.Object
-
- de.hybris.platform.commerceservices.product.impl.DefaultProductConfigurableChecker
-
- All Implemented Interfaces:
ProductConfigurableChecker
- Direct Known Subclasses:
CPQConfigurableChecker
public class DefaultProductConfigurableChecker extends java.lang.Object implements ProductConfigurableChecker
Default implementation ofProductConfigurableChecker
-
-
Constructor Summary
Constructors Constructor Description DefaultProductConfigurableChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfiguratorSettingsServicegetConfiguratorSettingsService()java.lang.StringgetFirstConfiguratorType(ProductModel product)Returns first configurator type attached to the productbooleanisProductConfigurable(ProductModel product)Checks if specified product is an instance of configurable product (i.e.voidsetConfiguratorSettingsService(ConfiguratorSettingsService configuratorSettingsService)
-
-
-
Method Detail
-
isProductConfigurable
public boolean isProductConfigurable(@Nonnull ProductModel product)Description copied from interface:ProductConfigurableCheckerChecks if specified product is an instance of configurable product (i.e. has configuration settings assigned).- Specified by:
isProductConfigurablein interfaceProductConfigurableChecker- Parameters:
product- product instance to check- Returns:
- true if specified product is configurable, false otherwise
-
getFirstConfiguratorType
public java.lang.String getFirstConfiguratorType(ProductModel product)
Description copied from interface:ProductConfigurableCheckerReturns first configurator type attached to the product- Specified by:
getFirstConfiguratorTypein interfaceProductConfigurableChecker- Parameters:
product- Product model- Returns:
- Configurator type. Null in case no configurator is assigned
-
getConfiguratorSettingsService
protected ConfiguratorSettingsService getConfiguratorSettingsService()
-
setConfiguratorSettingsService
public void setConfiguratorSettingsService(ConfiguratorSettingsService configuratorSettingsService)
-
-