public abstract class AbstractPriceBaseMediator extends AbstractBusinessObjectMediator
It initializes context data that the data load process needs from business context. These are all of the context data available:
Store ID
Language ID
Currency ID
Owner ID
PriceListName
and
OwnerId
are also given in this class.Constructor and Description |
---|
AbstractPriceBaseMediator() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContextCurrency()
Gets the currency ID from the business context.
|
java.lang.String |
getContextLanguageID()
Gets the language ID from the business context.
|
java.lang.String |
getContextOwnerID()
Gets the owner ID from the business context.
|
java.lang.String |
getContextStoreID()
Gets the store ID from the business context.
|
com.ibm.commerce.price.facade.datatypes.PriceEntryType |
getPriceEntry()
Get the price entry noun part.
|
com.ibm.commerce.price.facade.datatypes.PriceListType |
getPriceList()
Get the price list logical noun.
|
void |
init()
Performs initialization for the price mediators, by
retrieving context data from context services.
|
void |
setPriceEntry(com.ibm.commerce.price.facade.datatypes.PriceEntryType priceEntry)
Set the price entry noun part.
|
void |
setPriceList(com.ibm.commerce.price.facade.datatypes.PriceListType priceList)
Set the price list logical noun.
|
close, execute, getConfigProperties, getEndKey, getStartKey, initConfig, postProcess, preProcess, setConfigProperties
public java.lang.String getContextLanguageID()
init()
has
not been called, null will be returned.public java.lang.String getContextOwnerID()
init()
has not
been called, null will be returned.public java.lang.String getContextStoreID()
init()
has not
been called, null will be returned.public java.lang.String getContextCurrency()
init()
has
not been called, null will be returned.public void init() throws DataLoadException
Context data includes:
,
Language ID
,
Owner ID
,
Currency ID
.Store ID
init
in interface BusinessObjectMediator
init
in class AbstractBusinessObjectMediator
DataLoadException
- If one of the following occurs:
BaseContext.CONTEXT_NAME
in BaseContext
failsGlobalizationContext.CONTEXT_NAME
in
GlobalizationContext
failsBusinessObjectMediator.init()
public com.ibm.commerce.price.facade.datatypes.PriceListType getPriceList()
public void setPriceList(com.ibm.commerce.price.facade.datatypes.PriceListType priceList)
priceList
- The price list logical noun being set.public com.ibm.commerce.price.facade.datatypes.PriceEntryType getPriceEntry()
public void setPriceEntry(com.ibm.commerce.price.facade.datatypes.PriceEntryType priceEntry)
priceEntry
- The price entry noun part being set.