Class ConfigurationOrderIntegrationFacadeImpl
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.facades.impl.ConfigurationOrderIntegrationFacadeImpl
-
- All Implemented Interfaces:
ConfigurationOrderIntegrationFacade
public class ConfigurationOrderIntegrationFacadeImpl extends java.lang.Object implements ConfigurationOrderIntegrationFacade
Default implementation of theConfigurationOrderIntegrationFacade
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringKB_NOT_VALIDCartModification status code indicating the the KB version isn't known (anymore) to the configuration engine.
-
Constructor Summary
Constructors Constructor Description ConfigurationOrderIntegrationFacadeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected OrderModelfindOrderModel(java.lang.String code)protected BaseStoreServicegetBaseStoreService()ConfigurationOverviewDatagetConfiguration(java.lang.String code, int entryNumber)Retrieves ConfigurationOverviewData object for order entry identified by code and entry number.protected ConfigurationAbstractOrderIntegrationHelpergetConfigurationAbstractOrderIntegrationHelper()protected CustomerAccountServicegetCustomerAccountService()protected UserServicegetUserService()booleanisReorderable(java.lang.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)
-
-
-
Method Detail
-
getConfiguration
public ConfigurationOverviewData getConfiguration(java.lang.String code, int entryNumber)
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
public boolean isReorderable(java.lang.String orderCode)
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
protected OrderModel findOrderModel(java.lang.String code)
-
getCustomerAccountService
protected CustomerAccountService getCustomerAccountService()
-
setCustomerAccountService
public void setCustomerAccountService(CustomerAccountService customerAccountService)
- Parameters:
customerAccountService-
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
- Parameters:
userService-
-
getBaseStoreService
protected BaseStoreService getBaseStoreService()
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
- Parameters:
baseStoreService-
-
getConfigurationAbstractOrderIntegrationHelper
protected ConfigurationAbstractOrderIntegrationHelper getConfigurationAbstractOrderIntegrationHelper()
-
setConfigurationAbstractOrderIntegrationHelper
public void setConfigurationAbstractOrderIntegrationHelper(ConfigurationAbstractOrderIntegrationHelper configurationAbstractOrderIntegrationHelper)
- Parameters:
configurationAbstractOrderIntegrationHelper-
-
-