Class TransactionConfigurationBase
- java.lang.Object
-
- de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
-
- de.hybris.platform.sap.core.bol.backend.jco.BackendBusinessObjectBaseJCo
-
- de.hybris.platform.sap.sapordermgmtbol.transaction.misc.backend.impl.TransactionConfigurationBase
-
- All Implemented Interfaces:
BackendBusinessObject,BackendBusinessObjectJCo,TransactionConfigurationBackend
- Direct Known Subclasses:
TransactionConfigurationERP
public abstract class TransactionConfigurationBase extends BackendBusinessObjectBaseJCo implements TransactionConfigurationBackend
Base class for backend implementation of TransactionConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description protected CacheAccessdeliverTypeCacheAccessCache access for retrieving delivery type customizingprotected java.util.Map<java.lang.String,java.lang.String>deliveryTypesMap of delivery typesprotected static Log4JWrappersapLoggerLogging instanceprotected CheckoutConfigurationBackendToolstools-
Fields inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
genericFactory, moduleConfigurationAccess
-
-
Constructor Summary
Constructors Constructor Description TransactionConfigurationBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getAllowedDeliveryTypes()Read delivery types from cache (or from back-end, if cache is not ready) CRM table crmc_ship_cond, value help crm_ship_cond ERP table tvsb, value help h_tvsbprotected abstract java.lang.StringgetCacheRegionForCustomizing()protected java.util.Map<java.lang.String,java.lang.String>getDeliveryTypes()Get cached delivery types via newly introduced FM ERP_WEC_CUST_SHIPCOND .protected java.util.Map<java.lang.String,java.lang.String>getDeliveryTypesFromBackend()Get delivery types from backend via newly introduced FM ERP_WEC_CUST_SHIPCOND .java.util.Map<java.lang.String,java.lang.String>initAllowedDeliveryTypes()Initializes delivery type storagevoidinitBackendObject()This method is called by the SessionObjectManager to initialize object after all properties have been injected.protected booleanisLanguageSwitchDelivCustomizingAvailable(JCoConnection connection)-
Methods inherited from class de.hybris.platform.sap.core.bol.backend.jco.BackendBusinessObjectBaseJCo
getDefaultConnectionName, getDefaultDestinationName, getDefaultJCoConnection, getJCoConnection, getJCoConnection, getModuleId, setDefaultConnectionName, setDefaultDestinationName, setManagedConnectionContainer, toString
-
Methods inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
destroyBackendObject, getModuleConfigurationAccess, setGenericFactory, setModuleConfigurationAccess
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.sap.core.bol.backend.BackendBusinessObject
destroyBackendObject
-
Methods inherited from interface de.hybris.platform.sap.sapordermgmtbol.transaction.misc.backend.interf.TransactionConfigurationBackend
getAllowedDeliveryTypesFromBackend
-
-
-
-
Field Detail
-
sapLogger
protected static final Log4JWrapper sapLogger
Logging instance
-
tools
protected CheckoutConfigurationBackendTools tools
-
deliverTypeCacheAccess
protected CacheAccess deliverTypeCacheAccess
Cache access for retrieving delivery type customizing
-
deliveryTypes
protected java.util.Map<java.lang.String,java.lang.String> deliveryTypes
Map of delivery types
-
-
Method Detail
-
getAllowedDeliveryTypes
public java.util.Map<java.lang.String,java.lang.String> getAllowedDeliveryTypes() throws BackendExceptionDescription copied from interface:TransactionConfigurationBackendRead delivery types from cache (or from back-end, if cache is not ready)- CRM table crmc_ship_cond, value help crm_ship_cond
- ERP table tvsb, value help h_tvsb
- Specified by:
getAllowedDeliveryTypesin interfaceTransactionConfigurationBackend- Returns:
- Map with < value(char 3), description>
- Throws:
BackendException- in case of issues with the JCO-Connection or ABAP-errors in the back-end
-
initAllowedDeliveryTypes
public java.util.Map<java.lang.String,java.lang.String> initAllowedDeliveryTypes() throws BackendExceptionInitializes delivery type storage- Returns:
- List of delivery types
- Throws:
BackendException
-
getCacheRegionForCustomizing
protected abstract java.lang.String getCacheRegionForCustomizing()
- Returns:
- Key of cache region for delivery type customizing
-
initBackendObject
public void initBackendObject() throws BackendExceptionDescription copied from interface:BackendBusinessObjectThis method is called by the SessionObjectManager to initialize object after all properties have been injected.- Specified by:
initBackendObjectin interfaceBackendBusinessObject- Overrides:
initBackendObjectin classBackendBusinessObjectBase- Throws:
BackendException-BackendException
-
isLanguageSwitchDelivCustomizingAvailable
protected boolean isLanguageSwitchDelivCustomizingAvailable(JCoConnection connection)
- Parameters:
connection- JCO connection to the back end- Returns:
- Is FM ERP_WEC_CUST_SHIPCOND available?
-
getDeliveryTypes
protected java.util.Map<java.lang.String,java.lang.String> getDeliveryTypes()
Get cached delivery types via newly introduced FM ERP_WEC_CUST_SHIPCOND . If nothing is part of the cache yet, backend will be invoked.- Returns:
- Map of delivery types with code as key and language dependent description as value
-
getDeliveryTypesFromBackend
protected java.util.Map<java.lang.String,java.lang.String> getDeliveryTypesFromBackend()
Get delivery types from backend via newly introduced FM ERP_WEC_CUST_SHIPCOND .- Returns:
- Map of delivery types with code as key and language dependent description as value
-
-