com.ibm.commerce.order.calculation
Interface ApplyCalculationUsageCmd

All Superinterfaces:
BusinessPolicyCommand, CalculationCmd, ECCommand, TaskCommand
All Known Subinterfaces:
ApplyCalculationUsageTIKCmd, ApplyCouponUsageCmd, ApplyShippingCmd
All Known Implementing Classes:
ApplyCalculationUsageCmdImpl, ApplyShippingChargeByCarrierCmdImpl

public interface ApplyCalculationUsageCmd
extends CalculationCmd

This command applies a calculation usage to a list of Items.

See Also:
Item

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
           
static java.lang.String NAME
           
 
Method Summary
 void checkAppliedItems()
          This method checks whether the calculation usage is applied to all items.
 java.util.Set getAppliedItems()
          Returns the set of items that have been applied to.
 void setItems(Item[] aItems)
          Sets the items.
 void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
          Sets the tax categories.
 
Methods inherited from interface com.ibm.commerce.order.calculation.CalculationCmd
getCurrency, getCustomProperties, getCustomProperty, getTimestamp, getUsageId, setCurrency, setCustomProperties, setCustomProperty, setTimestamp, setUsageId
 
Methods inherited from interface com.ibm.commerce.command.BusinessPolicyCommand
getPolicyId, getRequestProperties, setPolicyId, setRequestProperties
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

NAME

public static final java.lang.String NAME
Method Detail

checkAppliedItems

public void checkAppliedItems()
                       throws ECException
This method checks whether the calculation usage is applied to all items. If not, an _ERR_CALCODE ECApplicationException will be thrown.

getAppliedItems

public java.util.Set getAppliedItems()
Returns the set of items that have been applied to.

setItems

public void setItems(Item[] aItems)
Sets the items.

setTaxCategoryIds

public void setTaxCategoryIds(java.lang.Integer[] anTaxCategoryIds)
Sets the tax categories. They should be set to:
Calculation Usage Tax Categories
sales tax all sales tax categories
shipping tax all shipping tax categories
other null