com.ibm.commerce.order.calculation

Class ServiceAdjustShippingChargesCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ServiceAdjustShippingChargesCmd, Protectable, 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 ServiceAdjustShippingChargesCmdImpl
    extends OrderBaseCmdImpl
    implements ServiceAdjustShippingChargesCmd
    This is the default implementation of the ServiceAdjustShippingChargesCmd controller command.

    Input parameters:

    Name Description
    AdjustmentPercentageValue Contains a list of AdjustmentPercentage values. [Optional].
    orderId The Order id. [Mandatory].
    overrideReasonCode Contains a list of overrideReasonCode. [Optional].
    processFlag Contains a list of processFlag ids. [Mandatory].
    remark Contains a list of remark values. [Mandatory].
    shipModeId Contains a list of shipMode ids. [Mandatory].

    Behaviour:

    Creates/Updates/Deletes Shipping Adjustments for a shipping mode.
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The IBM copyright.
        See Also:
        Constant Field Values
      • PROCESS_FLAG_CREATE

        public static final java.lang.Integer PROCESS_FLAG_CREATE
        Constant that indicates to this command to create an adjustment
      • PROCESS_FLAG_UPDATE

        public static final java.lang.Integer PROCESS_FLAG_UPDATE
        Constant that indicates to this command to update an adjustment
      • PROCESS_FLAG_DELETE

        public static final java.lang.Integer PROCESS_FLAG_DELETE
        Constant that indicates to this command to delete an adjustment
    • Constructor Detail

      • ServiceAdjustShippingChargesCmdImpl

        public ServiceAdjustShippingChargesCmdImpl()
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        Creates/Updates/Deletes Shipping Adjustments for a shipping mode. After working on the adjustment recalculateShipping() is invoked and the shipping charges are recalculated.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException
      • prepareOrder

        public void prepareOrder(java.lang.Long orderId)
                          throws ECException
        Prepare the order specified.
        Parameters:
        orderId -
        Throws:
        ECException
      • setShipModeId

        public void setShipModeId(java.util.Hashtable ahshShipModeId)
        Set the shipModeId parameter
        Specified by:
        setShipModeId in interface ServiceAdjustShippingChargesCmd
        Parameters:
        ahshShipModeId - Contains a list of shipMode ids. The key is the enumeration group (Integer) and the value is the shipMode id (String). For example, if you have input parameters: shipModeId_1=123&shipModeId_2=234&shipModeId=345, the hashtable can be constructed by:
            ahshShipModeId.put(new Integer(1), new String("123"));
            ahshShipModeId.put(new Integer(2), new String("234"));
            ahshShipModeId.put(new Integer(3), new String("345"));
         
      • setProcessFlag

        public void setProcessFlag(java.util.Hashtable ahshProcessFlag)
        Set the processFlag parameter
        Specified by:
        setProcessFlag in interface ServiceAdjustShippingChargesCmd
        Parameters:
        ahshProcessFlag - Contains a list of processFlag ids. The key is the enumeration group (Integer) and the value is the processFlag id (String). For example, if you have input parameters: processFlag_1=123&processFlag_2=234&processFlag=345, the hashtable can be constructed by:
            ahshProcessFlag.put(new Integer(1), new String("1"));
            ahshProcessFlag.put(new Integer(2), new String("2"));
            ahshProcessFlag.put(new Integer(3), new String("3"));
         
      • setAdjustmentPercentageValue

        public void setAdjustmentPercentageValue(java.util.Hashtable ahshAdjustmentPercentageValue)
        Set the adjustmentPercentageValue parameter This parameter is optional, if it is not provided, then delete an existing adjustment.
        Specified by:
        setAdjustmentPercentageValue in interface ServiceAdjustShippingChargesCmd
        Parameters:
        ahshAdjustmentPercentageValue - Contains a list of adjustmentPercentage values. The key is the enumeration group (Integer) and the value is the adjustmentPercentage value (String). For example, if you have input parameters: adjustmentPercentageValue_1=123&adjustmentPercentageValue_2=234, the hashtable can be constructed by:
            ahshAdjustmentPercentageValue(new Integer(1), new String("123"));
            ahshAdjustmentPercentageValue(new Integer(2), new String("234"));
         
      • setOverrideReasonCode

        public void setOverrideReasonCode(java.util.Hashtable ahshOverrideReasonCode)
        Set the overrideReasonCode parameter This parameter is optional.
        Specified by:
        setOverrideReasonCode in interface ServiceAdjustShippingChargesCmd
        Parameters:
        ahshOverrideReasonCode - Contains a list of overrideReasonCode. The key is the enumeration group (Integer) and the value is the overrideReasonCode (String). For example, if you have input parameters: overrideReasonCode_1=123&overrideReasonCode_2=234, the hashtable can be constructed by:
            ahshOverrideReasonCode(new Integer(1), new String("123"));
            ahshOverrideReasonCode(new Integer(2), new String("234"));
         
      • setRemark

        public void setRemark(java.util.Hashtable ahshRemark)
        Set the remark parameter This parameter is optional.
        Specified by:
        setRemark in interface ServiceAdjustShippingChargesCmd
        Parameters:
        ahshRemark - Contains a list of remark values. The key is the enumeration group (Integer) and the value is the remark (String). For example, if you have input parameters: remark_1=123&remark_2=234, the hashtable can be constructed by:
            ahshRemark(new Integer(1), new String("123"));
            ahshRemark(new Integer(2), new String("234"));