public abstract class AbstractFetchEntitledPriceCmdImpl extends AbstractFetchNounCmdImpl implements FetchEntitledPriceCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | ACCESS_PROFILE_NAME_STOREFRONT_SEARCH
Access profile for store catalog entry search.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.String | FLAG_CHECK_ENTITLEMENT
The flag whether to check entitlement.
|
static java.lang.String | FLAG_DK_AS_ITEM
The flag whether to treat DK as an item.
|
Constructor and Description |
---|
AbstractFetchEntitledPriceCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | calculatePrice()
Calculate entitled price according to contract.
|
protected java.lang.String | getCatalogEntryIdByPartNumber(java.lang.String partNumber)
Gets catalog entry id by part number.
|
protected CommandContext | getCommandContext()
Gets command context.
|
protected java.util.List<com.ibm.commerce.price.facade.server.helpers.EntitledPrice> | getInputEntitledPriceList()
Gets a list of EntitledPrice from input.
|
java.util.List | getNouns()
This method returns the list of nouns retrieved by the fetch implementation.
|
protected java.util.List<com.ibm.commerce.price.facade.server.helpers.EntitledPrice> | getOutputEntitledPriceList()
Gets a list of EntitledPrice for output.
|
protected java.lang.String | getPartNumberByCatentryId(java.lang.String catentryId)
Gets part number by catalog entry id.
|
protected java.lang.String | getPricingDateFromParameter(int cnt)
Get the pricing date parameter from input XPATH.
|
protected java.lang.Integer | getStoreId()
Gets the store id.
|
void | performExecute()
This method performs the logic of fetching entitled price.
|
protected java.util.List<java.lang.String> | resolveCurrenciesFromSearchExpression(int counter)
Resolve the currency parameter from XPATH.
|
protected java.util.List<java.lang.Double> | resolveQuantitiesFromSearchExpression(int counter)
Resolve the quantity parameter from XPATH.
|
protected abstract void | resolveQueryParameters()
Resolves query parameters including contract identifiers, catalog entry identifiers, part numbers, quantities, UOMs and currencies from search expression, and put them into EntitledPrice list.
|
protected java.util.List<java.lang.String> | resolveUOMsFromSearchExpression(int counter)
Resolve the unit of measurement parameter from XPATH.
|
protected void | setDynamicKitFlagInContext()
Set a flag in context to treat dynamic kit pricing as an item.
|
protected void | setInputEntitledPriceList(java.util.List<com.ibm.commerce.price.facade.server.helpers.EntitledPrice> entitledPriceListIn)
Sets a list of EntitledPrice
|
protected void | setOutputEntitledPriceList(java.util.List<com.ibm.commerce.price.facade.server.helpers.EntitledPrice> entitledPriceListOut)
Sets a list of EntitledPrice
|
protected void | setPricingDateInContextForBatchExecution(java.lang.String pricingDateStr)
Set the pricing date from request BOD into the command context.
|
protected void | unsetDynamicKitFlagInContext()
Set a flag in context to not treat dynamic kit pricing as an item.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ACCESS_PROFILE_NAME_STOREFRONT_SEARCH
public static final java.lang.String FLAG_CHECK_ENTITLEMENT
public static final java.lang.String FLAG_DK_AS_ITEM
public void performExecute() throws java.lang.Exception
protected CommandContext getCommandContext()
protected java.lang.Integer getStoreId()
protected java.lang.String getCatalogEntryIdByPartNumber(java.lang.String partNumber) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException, ECException
protected java.lang.String getPartNumberByCatentryId(java.lang.String catentryId) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException, ECSystemException
protected java.lang.String getPricingDateFromParameter(int cnt)
protected void setPricingDateInContextForBatchExecution(java.lang.String pricingDateStr) throws ECApplicationException
protected void setDynamicKitFlagInContext()
protected void unsetDynamicKitFlagInContext()
protected java.util.List<com.ibm.commerce.price.facade.server.helpers.EntitledPrice> getInputEntitledPriceList()
protected void setInputEntitledPriceList(java.util.List<com.ibm.commerce.price.facade.server.helpers.EntitledPrice> entitledPriceListIn)
protected java.util.List<com.ibm.commerce.price.facade.server.helpers.EntitledPrice> getOutputEntitledPriceList()
protected void setOutputEntitledPriceList(java.util.List<com.ibm.commerce.price.facade.server.helpers.EntitledPrice> entitledPriceListOut)
public java.util.List getNouns()
protected abstract void resolveQueryParameters() throws java.lang.Exception
protected void calculatePrice() throws java.lang.Exception
protected java.util.List<java.lang.Double> resolveQuantitiesFromSearchExpression(int counter) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected java.util.List<java.lang.String> resolveUOMsFromSearchExpression(int counter) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected java.util.List<java.lang.String> resolveCurrenciesFromSearchExpression(int counter) throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException, java.lang.Exception