Interface CommonConfiguration
- All Superinterfaces:
BusinessObject,MessageListHolder,Serializable
Provides common configuration settings of the application like e.g. the sales area. Only those attributes should be
here which are relevant for many modules.
-
Field Summary
Fields inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
INVALID, VALID -
Method Summary
Modifier and TypeMethodDescriptionReturns the currencyGets the back end mapping for the sales org and distribution channel.getDistChannelMappingKey(String originalSalesOrg, String originalDistChannel) Factory-method to create a mapping key.Returns the divisionGets the back end mapping for the sales org and division.getDivisionMappingKey(String originalSalesOrg, String originalDivison) Factory-method to create a mapping key.Returns the sales organisationbooleanFetching WEC debug attribute.voidsetCurrency(String currency) Sets the currencyvoidSets the distribution channelvoidsetDivision(String arg) Sets the divisionvoidSets the sales organisationvoidsetWecDebug(boolean wecDebug) Sets the WEC debug parameter from the UI layer.Methods inherited from interface de.hybris.platform.sap.core.bol.businessobject.BusinessObject
addExtensionData, clearMessages, clearOwnMessages, copyMessages, copyMessages, createUniqueHandle, destroy, getExtensionData, getExtensionDataValues, getExtensionMap, getHandle, getOwnMessageList, getSubObjectIterator, getTechKey, hasHandle, hasMessages, hasOwnMessages, init, isValid, logMessage, removeExtensionData, removeExtensionDataValues, setExtensionMap, setHandle, setInvalid, setTechKey, setValidMethods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageList
-
Method Details
-
getDistributionChannel
String getDistributionChannel()- Returns:
- the distribution channel
-
setDistributionChannel
Sets the distribution channel- Parameters:
arg- distribution channel
-
getDivision
String getDivision()Returns the division- Returns:
- division
-
setDivision
Sets the division- Parameters:
arg- division
-
getSalesOrganisation
String getSalesOrganisation()Returns the sales organisation- Returns:
- salesOrganisation
-
setSalesOrganisation
Sets the sales organisation- Parameters:
arg- sales organisation
-
getCurrency
String getCurrency()Returns the currency- Returns:
- currency
-
setCurrency
Sets the currency- Parameters:
currency-
-
getWecDebug
boolean getWecDebug()Fetching WEC debug attribute. Note that this is not read from a configuration but set into this bean at runtime, depending on the context.
Available e.g. in sales context.
In the UI layer, one should derive this setting from the runtime instead.- Returns:
- WEC debug attribute
-
setWecDebug
void setWecDebug(boolean wecDebug) Sets the WEC debug parameter from the UI layer. *- Parameters:
wecDebug-
-
getDivisionMapping
Gets the back end mapping for the sales org and division.- Parameters:
key- the includes the sales org and division- Returns:
- the mapping data, alternative division for condition, customer, document type
-
getDistChannelMapping
Gets the back end mapping for the sales org and distribution channel.- Parameters:
key- the includes the sales org and distribution channel- Returns:
- the mapping data, alternative division for condition, customer/material, document type
-
getDistChannelMappingKey
Factory-method to create a mapping key.- Parameters:
originalSalesOrg- sales organisationoriginalDistChannel- distribution channel- Returns:
- key for distribution channel mapping
-
getDivisionMappingKey
Factory-method to create a mapping key.- Parameters:
originalSalesOrg- sales organisationoriginalDivison- division- Returns:
- key for division mapping
-