com.ibm.commerce.order.calculation

Class ContractShippingAdjustmentCalculationCodeCalculateCmdImpl

    • Field Detail

      • COPYRIGHT

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

      • ContractShippingAdjustmentCalculationCodeCalculateCmdImpl

        public ContractShippingAdjustmentCalculationCodeCalculateCmdImpl()
        Constructor for ShippingAdjustmentCalculationCodeApplyCmdImpl
    • Method Detail

      • reset

        public void reset()
        This method resets the variables of the command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class CalculationCodeCalculateCmdImpl
        See Also:
        Command.reset()
      • catalogSelection

        public boolean catalogSelection(java.lang.Long[] categoryIds,
                                        java.lang.Long categoryId)
                                 throws ECSystemException
        This method checks if one category is on one of the paths of the category array including its ancestor.
        Parameters:
        categoryIds - the category array
        categoryId - the category wants to be checked
        Returns:
        true if categoryId is the same with one of the categoryIds array or their ancestor.
        Throws:
        ECSystemException
      • getAdjustmetAmountFromTC

        public java.math.BigDecimal getAdjustmetAmountFromTC(OrderItemAccessBean abOrderItem)
                                                      throws ECException
        This method returns the adjustment amount from the ShippingTCShippingChargeAdjustment TCs.
        Parameters:
        abOrderItem - the item of which shipping will be adjusted.
        Returns:
        the amount to be adjusted.
        Throws:
        ECException
      • getCataGroupListForCatentry

        public java.util.ArrayList getCataGroupListForCatentry(java.lang.Long catentryId)
                                                        throws ECSystemException
        This method returns the catalog group list for the specified catentry.
        Parameters:
        catentryId - catalog entry id.
        Returns:
        the list of catalog group that is category that the catentry belongs to.
        Throws:
        ECSystemException