public class FetchExternalPriceEntryCmdImpl
extends com.ibm.commerce.price.facade.server.commands.AbstractFetchPriceListCmdImpl
The fetched result list contains PriceEntryType objects populated with all the available data.
The following XPath keys can be processed by this command:
Constructor and Description |
---|
FetchExternalPriceEntryCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | buildXPathForUnCachedRequest()
Build XPath for uncached request.
|
protected com.ibm.commerce.price.facade.datatypes.ShowPriceListDataAreaType | callExternalPriceService(SearchExpression searchExpression, ExternalPriceMemoryCache aCache)
Call the external price service and return the result.
|
protected void | checkAuthority()
This method checks if the user can access the store based on store ID and user ID from this command context .
|
protected java.util.Collection | fetch(GetType get)
This method, inherited from the parent class, is not supported for integration with an external price management system.
|
protected java.util.ArrayList<java.lang.String> | getCurrencies()
This method returns the currencies.
|
protected java.util.ArrayList<java.lang.String> | getPartNumbers()
This method returns the part numbers.
|
protected com.ibm.commerce.price.facade.datatypes.PriceFactory | getPriceFactory()
This method returns a default instance of the Price Factory.
|
protected java.util.ArrayList<java.lang.Double> | getQuantities()
This method returns the quantities.
|
java.util.List | getResultList()
This method, inherited from the parent class, is not supported for integration with an external price management system.
|
protected java.util.ArrayList<java.lang.Integer> | getUnCachedRequestIndexesArr()
This method returns the not cached request indexes array.
|
protected java.util.ArrayList<java.lang.String> | getUoms()
This method returns the unit of measures.
|
void | performExecute()
This method will firstly checks the authority based on current store ID and user ID in command context.
|
protected void | performSearch()
This method will firstly check controlParameters in XPath expression.
|
public void performExecute() throws java.lang.Exception
If the user has authority, the XPath expression will be parsed to get query parameters and those parameters will be checked to see if those parameters are valid.
If all search parameters are valid, those parameters will be composed into a new get verb to get entitled price from the external service.
protected java.util.ArrayList<java.lang.Integer> getUnCachedRequestIndexesArr()
protected java.util.ArrayList<java.lang.String> getPartNumbers()
protected java.util.ArrayList<java.lang.String> getCurrencies()
protected java.util.ArrayList<java.lang.Double> getQuantities()
protected java.util.ArrayList<java.lang.String> getUoms()
public java.util.List getResultList()
protected java.util.Collection fetch(GetType get) throws java.lang.Exception
protected void performSearch() throws java.lang.Exception
The different search policy will be applied based on controlParameters value and cache status.
Finally, the ShowPriceListDataAreaType will be returned.
protected void checkAuthority() throws com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected com.ibm.commerce.price.facade.datatypes.PriceFactory getPriceFactory()
protected com.ibm.commerce.price.facade.datatypes.ShowPriceListDataAreaType callExternalPriceService(SearchExpression searchExpression, ExternalPriceMemoryCache aCache) throws com.ibm.commerce.price.facade.client.PriceListException, ECException, com.ibm.commerce.price.facade.server.exception.PriceApplicationException
protected java.lang.String buildXPathForUnCachedRequest()