Class DataHubTransferConfigurationManager
java.lang.Object
de.hybris.platform.sap.core.configuration.datahub.DataHubTransferConfigurationManager
Central class that manages all the Data Hub Transfer configurations. Example to add a Data Hub Transfer configuration
via the corresponding spring.xml file:
<bean id="sapCoreSAPBaseStoreDataHubConfiguration" parent="sapCoreDataHubTransferConfiguration">
<property name="itemCode" value="SAPConfiguration" />
<property name="rawType" value="RawSAPBaseStoreConfiguration" />
<property name="converter" ref="sapCoreSAPBaseStoreConfigurationConverter" />
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToDataHubTransferConfigurations(DataHubTransferConfiguration dataHubTransferConfiguration) Adds the Data Hub Transfer configuration to list of existing configurations.Returns the map of Data Hub Transfer configurations.Determines the Data Hub configuration for the given type code.getItemCode(int typeCodeID) Translates the integer type code to string code.intgetItemTypeCode(String typeCodeName) Gets the integer type code for string code.
-
Constructor Details
-
DataHubTransferConfigurationManager
public DataHubTransferConfigurationManager()
-
-
Method Details
-
getAllDataHubConfigurations
Returns the map of Data Hub Transfer configurations.- Returns:
- the Map of Data Hub Transfer configurations
-
getDataHubTransferConfigurations
Determines the Data Hub configuration for the given type code.- Parameters:
code- the given code- Returns:
- the Data Hub configuration
-
addToDataHubTransferConfigurations
public void addToDataHubTransferConfigurations(DataHubTransferConfiguration dataHubTransferConfiguration) Adds the Data Hub Transfer configuration to list of existing configurations.- Parameters:
dataHubTransferConfiguration- the Data Hub Transfer configuration
-
getItemCode
Translates the integer type code to string code.- Parameters:
typeCodeID- integer type code- Returns:
- string typeCodeName
-
getItemTypeCode
Gets the integer type code for string code.- Parameters:
typeCodeName- item code as string- Returns:
- item type code as integer
-