Class ConverterBackendERPCRM
java.lang.Object
de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
de.hybris.platform.sap.core.bol.backend.jco.BackendBusinessObjectBaseJCo
de.hybris.platform.sap.sapcommonbol.common.backendobject.impl.ConverterBackendERPCRM
- All Implemented Interfaces:
BackendBusinessObject,BackendBusinessObjectJCo,ConverterBackend
- Direct Known Subclasses:
ConverterBackendERP
public abstract class ConverterBackendERPCRM
extends BackendBusinessObjectBaseJCo
implements ConverterBackend
Converter backend implementation. Performs calls to ERP and CRM and caches
results.
Note this is a preliminary implementation. At the moment it is only used to retrieve currency customizing.
Note this is a preliminary implementation. At the moment it is only used to retrieve currency customizing.
- Version:
- 0.9
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static final classprotected static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CacheAccessprotected static final Log4JWrapperprotected CacheAccessFields inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
genericFactory, moduleConfigurationAccessFields inherited from interface de.hybris.platform.sap.sapcommonbol.common.backendobject.interf.ConverterBackend
BE_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertUnitID2UnitKey(String unitID) Converting language dependent unit ID to unit keyconvertUnitKey2UnitID(String unitKey) Converting unit key to language dependent ID.intgetCurrencyScale(String sapCurrencyCode) Get currency scale.intgetUnitScale(String unitKey) Get unit scale.abstract ObjectloadCurrenciesByLanguageFromBackend(String applicationID, String language) Loads currencies per language.abstract ObjectloadUOMsByLanguageFromBackend(String applicationID, String language) Loads UOM's per language.Methods inherited from class de.hybris.platform.sap.core.bol.backend.jco.BackendBusinessObjectBaseJCo
getDefaultConnectionName, getDefaultDestinationName, getDefaultJCoConnection, getJCoConnection, getJCoConnection, getModuleId, setDefaultConnectionName, setDefaultDestinationName, setManagedConnectionContainer, toStringMethods inherited from class de.hybris.platform.sap.core.bol.backend.BackendBusinessObjectBase
destroyBackendObject, getModuleConfigurationAccess, initBackendObject, setGenericFactory, setModuleConfigurationAccessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.hybris.platform.sap.core.bol.backend.BackendBusinessObject
destroyBackendObject, initBackendObject
-
Field Details
-
sapLogger
-
currencyCacheAccess
-
unitCacheAccess
-
-
Constructor Details
-
ConverterBackendERPCRM
public ConverterBackendERPCRM()Default constructor
-
-
Method Details
-
loadUOMsByLanguageFromBackend
public abstract Object loadUOMsByLanguageFromBackend(String applicationID, String language) throws BackendException Description copied from interface:ConverterBackendLoads UOM's per language. Called from cache loaders on BO level- Specified by:
loadUOMsByLanguageFromBackendin interfaceConverterBackendlanguage- Language in SAP format (1 place)- Returns:
- Map of UOM's and their descriptions
- Throws:
BackendException
-
loadCurrenciesByLanguageFromBackend
public abstract Object loadCurrenciesByLanguageFromBackend(String applicationID, String language) throws BackendException Description copied from interface:ConverterBackendLoads currencies per language. Called from cache loaders on BO level- Specified by:
loadCurrenciesByLanguageFromBackendin interfaceConverterBackendlanguage- Language in SAP format (1 place)- Returns:
- Map of currencies and their decimal format
- Throws:
BackendException
-
convertUnitID2UnitKey
Description copied from interface:ConverterBackendConverting language dependent unit ID to unit key- Specified by:
convertUnitID2UnitKeyin interfaceConverterBackend- Parameters:
unitID- language dependent unit ID e.g PC in English- Returns:
- SAP unit key e.g. ST for piece
- Throws:
BackendException
-
convertUnitKey2UnitID
Description copied from interface:ConverterBackendConverting unit key to language dependent ID.
E.g. ST to PC in English- Specified by:
convertUnitKey2UnitIDin interfaceConverterBackend- Parameters:
unitKey- SAP unit key- Returns:
- language dependent unit ID
- Throws:
BackendException
-
getCurrencyScale
Description copied from interface:ConverterBackendGet currency scale. In standard e.g.- USD: 2
- EUR: 2
- JPY: 0
- Specified by:
getCurrencyScalein interfaceConverterBackend- Parameters:
sapCurrencyCode- SAP currency code, note that depending on customizing also non-ISO codes may occur- Returns:
- number of decimals for UI display and validation
- Throws:
BackendException
-
getUnitScale
Description copied from interface:ConverterBackendGet unit scale.- Specified by:
getUnitScalein interfaceConverterBackend- Parameters:
unitKey- SAP unit key- Returns:
- number of decimals for UI display and validation
- Throws:
BackendException
-