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.String
KB_NOT_VALID
CartModification 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 OrderModel
findOrderModel(java.lang.String code)
protected BaseStoreService
getBaseStoreService()
ConfigurationOverviewData
getConfiguration(java.lang.String code, int entryNumber)
Retrieves ConfigurationOverviewData object for order entry identified by code and entry number.protected ConfigurationAbstractOrderIntegrationHelper
getConfigurationAbstractOrderIntegrationHelper()
protected CustomerAccountService
getCustomerAccountService()
protected UserService
getUserService()
boolean
isReorderable(java.lang.String orderCode)
Checks for each item of the order, whether it can be re-ordered or not.void
setBaseStoreService(BaseStoreService baseStoreService)
void
setConfigurationAbstractOrderIntegrationHelper(ConfigurationAbstractOrderIntegrationHelper configurationAbstractOrderIntegrationHelper)
void
setCustomerAccountService(CustomerAccountService customerAccountService)
void
setUserService(UserService userService)
-
-
-
Method Detail
-
getConfiguration
public ConfigurationOverviewData getConfiguration(java.lang.String code, int entryNumber)
Description copied from interface:ConfigurationOrderIntegrationFacade
Retrieves ConfigurationOverviewData object for order entry identified by code and entry number.- Specified by:
getConfiguration
in 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:ConfigurationOrderIntegrationFacade
Checks 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:
isReorderable
in interfaceConfigurationOrderIntegrationFacade
- Parameters:
orderCode
-code
of 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
-
-
-