com.ibm.commerce.price.commands

Class GetContractPriceListCmdImpl

  • java.lang.Object
    • com.ibm.websphere.command.CacheableCommandImpl
      • com.ibm.commerce.command.MeasuredCacheableCommandImpl
        • com.ibm.commerce.command.AbstractECTargetableCommand
          • com.ibm.commerce.command.TaskCommandImpl
            • com.ibm.commerce.price.commands.GetContractPriceListCmdImpl
  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, com.ibm.commerce.command.ECCommand, com.ibm.commerce.command.ECTargetableCommand, com.ibm.commerce.command.TaskCommand, GetContractPriceListCmd, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command


    public class GetContractPriceListCmdImpl
    extends com.ibm.commerce.command.TaskCommandImpl
    implements GetContractPriceListCmd
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      • Fields inherited from interface com.ibm.commerce.command.CacheableECCommand

        defaultCommandClassName
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      MonetaryAmount getApplicableTradingUnitPrice()
      Returns the unit price of a catentry that were determined for each of the applied trading agreements.
      java.lang.Long getTcId()
      Returns the id of the output T&C id which was associated with the offer that supplied the price.
      java.lang.Long getTradingId()
      Returns the trading id that used to calculate the contract price.
      void performExecute() 
      void setCatEntryId(java.lang.Long catId)
      Sets the catEntry id for command calculation
      void setContractIds(java.lang.Long[] contractIDS)
      Sets the contracts ids for basecommand calculation
      void setCurrency(java.lang.String astrCurrency)
      Sets the currency to be used for finding the price (Optional).
      void setOrderItemComponentAccessBean(com.ibm.commerce.order.objects.OrderItemComponentAccessBean aOICAB)
      Sets order item access bean which passed in.
      void setQuantity(QuantityAmount inQuantity)
      Sets the quantity for command calculation
      void setTradingIds(java.lang.Long[] aTradingIds)
      Sets the ids of the input trading agreements (Optional).
      void validateParameters() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand

        accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
      • Methods inherited from interface com.ibm.commerce.command.CacheableECCommand

        execute
      • Methods inherited from interface com.ibm.commerce.command.ECCommand

        checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • GetContractPriceListCmdImpl

        public GetContractPriceListCmdImpl()
    • Method Detail

      • getTradingId

        public java.lang.Long getTradingId()
        Description copied from interface: GetContractPriceListCmd
        Returns the trading id that used to calculate the contract price.
        Specified by:
        getTradingId in interface GetContractPriceListCmd
        Returns:
        The trading id used to calculate the contract price.
        See Also:
        com.ibm.commerce.price.commands.GetContractPriceListCmd#getTradingIds()
      • performExecute

        public void performExecute()
                            throws com.ibm.commerce.exception.ECException
        Specified by:
        performExecute in interface com.ibm.commerce.command.ECCommand
        Overrides:
        performExecute in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
        See Also:
        com.ibm.websphere.command.TargetableCommand#performExecute()
      • setCurrency

        public void setCurrency(java.lang.String astrCurrency)
        Description copied from interface: GetContractPriceListCmd
        Sets the currency to be used for finding the price (Optional).
        Specified by:
        setCurrency in interface GetContractPriceListCmd
        Parameters:
        astrCurrency - The currency to look up the price. If the currency is not specified then the "negotiated" currency is used for the store Id and shopper's preferred currency. (The negotiated currency is the currency returned from the getCurrency() method of the currency manager).
        See Also:
        GetContractPriceListCmd.setCurrency(String)
      • validateParameters

        public void validateParameters()
                                throws com.ibm.commerce.exception.ECException
        Specified by:
        validateParameters in interface com.ibm.commerce.command.ECCommand
        Overrides:
        validateParameters in class com.ibm.commerce.command.AbstractECTargetableCommand
        Throws:
        com.ibm.commerce.exception.ECException
        See Also:
        com.ibm.websphere.command.TargetableCommand#validateParameters()