com.ibm.commerce.price.facade.server.commands

Class FetchExternalPriceEntryCmdImpl

  • All Implemented Interfaces:
    AbstractFetchNounCmd, com.ibm.commerce.price.facade.server.commands.FetchPriceListCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class FetchExternalPriceEntryCmdImpl
    extends com.ibm.commerce.price.facade.server.commands.AbstractFetchPriceListCmdImpl
    This class fetches entitled price from external price service. The search criteria are specified by the input XPath queries.

    The fetched result list contains PriceEntryType objects populated with all the available data.

    The following XPath keys can be processed by this command:

  • PriceList[PriceEntry[(CatalogEntryIdentifier[ExternalIdentifier[PartNumber=]] and Price[(Quantity= and Quantity[@uom=]) and Price[@currency=]])]].
See Also:
Serialized Form
    • Field Summary

      • Fields inherited from class com.ibm.websphere.command.TargetableCommandImpl

        LOCAL
      • Fields inherited from interface com.ibm.websphere.command.Command

        serialVersionUID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.util.List getResultList()
      This method, inherited from the parent class, is not supported for integration with an external price management system.
      void performExecute()
      This method will firstly checks the authority based on current store ID and user ID in command context.
      • Methods inherited from class com.ibm.commerce.price.facade.server.commands.AbstractFetchPriceListCmdImpl

        getGetPriceListType, getNouns, getPagingPrameter, getResult, getSelectionCriteria, getShow, getShowPriceListDataArea, isReadyToCallExecute, reset, setGet, setGetPriceList, setPagingPrameter, setSelectionCriteria
      • Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl

        execute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
      • Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl

        getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.ibm.websphere.command.Command

        execute
      • Methods inherited from interface com.ibm.websphere.command.TargetableCommand

        getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
    • Constructor Detail

      • FetchExternalPriceEntryCmdImpl

        public FetchExternalPriceEntryCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws java.lang.Exception
        This method will firstly checks the authority based on current store ID and user ID in command context.

        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.

        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class com.ibm.commerce.price.facade.server.commands.AbstractFetchPriceListCmdImpl
        Throws:
        java.lang.Exception
        See Also:
        AbstractFetchPriceListCmdImpl.performExecute()
      • getResultList

        public java.util.List getResultList()
        This method, inherited from the parent class, is not supported for integration with an external price management system.
        Specified by:
        getResultList in class com.ibm.commerce.price.facade.server.commands.AbstractFetchPriceListCmdImpl
        See Also:
        AbstractFetchPriceListCmdImpl.getResultList()