Class ConfigurationOrderIntegrationFacadeImpl
java.lang.Object
de.hybris.platform.sap.productconfig.facades.impl.ConfigurationOrderIntegrationFacadeImpl
- All Implemented Interfaces:
ConfigurationOrderIntegrationFacade
public class ConfigurationOrderIntegrationFacadeImpl
extends Object
implements ConfigurationOrderIntegrationFacade
Default implementation of the
ConfigurationOrderIntegrationFacade-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCartModification status code indicating the the KB version isn't known (anymore) to the configuration engine. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OrderModelfindOrderModel(String code) protected BaseStoreServicegetConfiguration(String code, int entryNumber) Retrieves ConfigurationOverviewData object for order entry identified by code and entry number.protected CustomerAccountServiceprotected UserServicebooleanisReorderable(String orderCode) Checks for each item of the order, whether it can be re-ordered or not.voidsetBaseStoreService(BaseStoreService baseStoreService) voidsetConfigurationAbstractOrderIntegrationHelper(ConfigurationAbstractOrderIntegrationHelper configurationAbstractOrderIntegrationHelper) voidsetCustomerAccountService(CustomerAccountService customerAccountService) voidsetUserService(UserService userService)
-
Field Details
-
KB_NOT_VALID
CartModification status code indicating the the KB version isn't known (anymore) to the configuration engine.
-
-
Constructor Details
-
ConfigurationOrderIntegrationFacadeImpl
public ConfigurationOrderIntegrationFacadeImpl()
-
-
Method Details
-
getConfiguration
Description copied from interface:ConfigurationOrderIntegrationFacadeRetrieves ConfigurationOverviewData object for order entry identified by code and entry number.- Specified by:
getConfigurationin interfaceConfigurationOrderIntegrationFacade- Parameters:
code- code of the order objectentryNumber- entry number- Returns:
- ConfigurationOverviewData object
-
isReorderable
Description copied from interface:ConfigurationOrderIntegrationFacadeChecks for each item of the order, whether it can be re-ordered or not. Only if all items are re-orderable aso the whole order is considered re-orderable.
In case an item is configurable, it is checked whether the Knowledgebase (KB) version that was used to created the items current configuration state, as persistet in the external configuration, is still know to the configuration engine, so it can be guranteed that the exact same configuration can be recreated on re-order.- Specified by:
isReorderablein interfaceConfigurationOrderIntegrationFacade- Parameters:
orderCode-codeof the source order- Returns:
true, only if the whole order can be re-ordered including all order items
-
findOrderModel
-
getCustomerAccountService
-
setCustomerAccountService
- Parameters:
customerAccountService-
-
getUserService
-
setUserService
- Parameters:
userService-
-
getBaseStoreService
-
setBaseStoreService
- Parameters:
baseStoreService-
-
getConfigurationAbstractOrderIntegrationHelper
protected ConfigurationAbstractOrderIntegrationHelper getConfigurationAbstractOrderIntegrationHelper() -
setConfigurationAbstractOrderIntegrationHelper
public void setConfigurationAbstractOrderIntegrationHelper(ConfigurationAbstractOrderIntegrationHelper configurationAbstractOrderIntegrationHelper) - Parameters:
configurationAbstractOrderIntegrationHelper-
-