Interface CommonConfiguration
-
- All Superinterfaces:
BusinessObject,MessageListHolder,java.io.Serializable
public interface CommonConfiguration extends BusinessObject
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetCurrency()Returns the currencyDistChannelMappinggetDistChannelMapping(DistChannelMappingKey key)Gets the back end mapping for the sales org and distribution channel.DistChannelMappingKeygetDistChannelMappingKey(java.lang.String originalSalesOrg, java.lang.String originalDistChannel)Factory-method to create a mapping key.java.lang.StringgetDistributionChannel()java.lang.StringgetDivision()Returns the divisionDivisionMappinggetDivisionMapping(DivisionMappingKey key)Gets the back end mapping for the sales org and division.DivisionMappingKeygetDivisionMappingKey(java.lang.String originalSalesOrg, java.lang.String originalDivison)Factory-method to create a mapping key.java.lang.StringgetSalesOrganisation()Returns the sales organisationbooleangetWecDebug()Fetching WEC debug attribute.voidsetCurrency(java.lang.String currency)Sets the currencyvoidsetDistributionChannel(java.lang.String arg)Sets the distribution channelvoidsetDivision(java.lang.String arg)Sets the divisionvoidsetSalesOrganisation(java.lang.String arg)Sets 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, setValid
-
Methods inherited from interface de.hybris.platform.sap.core.common.message.MessageListHolder
addMessage, clearMessages, getMessageList
-
-
-
-
Method Detail
-
getDistributionChannel
java.lang.String getDistributionChannel()
- Returns:
- the distribution channel
-
setDistributionChannel
void setDistributionChannel(java.lang.String arg)
Sets the distribution channel- Parameters:
arg- distribution channel
-
getDivision
java.lang.String getDivision()
Returns the division- Returns:
- division
-
setDivision
void setDivision(java.lang.String arg)
Sets the division- Parameters:
arg- division
-
getSalesOrganisation
java.lang.String getSalesOrganisation()
Returns the sales organisation- Returns:
- salesOrganisation
-
setSalesOrganisation
void setSalesOrganisation(java.lang.String arg)
Sets the sales organisation- Parameters:
arg- sales organisation
-
getCurrency
java.lang.String getCurrency()
Returns the currency- Returns:
- currency
-
setCurrency
void setCurrency(java.lang.String currency)
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
DivisionMapping getDivisionMapping(DivisionMappingKey key)
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
DistChannelMapping getDistChannelMapping(DistChannelMappingKey key)
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
DistChannelMappingKey getDistChannelMappingKey(java.lang.String originalSalesOrg, java.lang.String originalDistChannel)
Factory-method to create a mapping key.- Parameters:
originalSalesOrg- sales organisationoriginalDistChannel- distribution channel- Returns:
- key for distribution channel mapping
-
getDivisionMappingKey
DivisionMappingKey getDivisionMappingKey(java.lang.String originalSalesOrg, java.lang.String originalDivison)
Factory-method to create a mapping key.- Parameters:
originalSalesOrg- sales organisationoriginalDivison- division- Returns:
- key for division mapping
-
-