public interface PredefinedConfigurationComponentPricingCmd
extends com.ibm.commerce.command.TaskCommand
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The default implementation of this command.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set |
getAdditions(com.ibm.commerce.order.objects.OrderItemAccessBean oiab)
Returns all of the items, that were added to the predefined configuration set on
the command.
|
MonetaryAmount |
getPriceDifferenceAddingComponents(java.util.Set components,
java.lang.String currency,
java.lang.Long contractId)
Returns the price change to the predefined configuration that is caused by
adding the components in the passed Set of DynamicKitComponent objects.
|
MonetaryAmount |
getPriceDifferenceRemovingComponents(java.util.Set components,
java.lang.String currency,
java.lang.Long contractId)
Returns the negated price change to the predefined configuration that is caused
by removing the components in the passed Set of DynamicKitComponent objects.
|
MonetaryAmount |
getPriceDifferenceReplacingComponents(java.util.Hashtable replacements,
java.lang.String currency,
java.lang.Long contractId)
Returns the price change to the predefined configuration that is caused by
preforming the component replacements in the passed Hashtable of
DynamicKitComponent objects.
|
java.util.Set |
getRemovals(com.ibm.commerce.order.objects.OrderItemAccessBean oiab)
Returns all items that were removed from the predefined configuration set on
the command in order to create the dynamic kit configuration represented by
the OrderItemAccessBean passed.
|
java.util.Hashtable |
getReplacements(com.ibm.commerce.order.objects.OrderItemAccessBean oiab)
Returns a hashtable of the items, that were replaced in the predefined
configuration set on the command.
|
void |
setDynamicKitCatalogEntryId(java.lang.Long dynamicKitCatalogEntryId)
Sets the catalog entry ID of the dynamic kit.
|
void |
setPredefinedConfigurationId(java.lang.Long predefinedConfigurationId)
Sets the ID of the predefined configuration to use.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String defaultCommandClassName
java.util.Set getAdditions(com.ibm.commerce.order.objects.OrderItemAccessBean oiab) throws com.ibm.commerce.exception.ECException
oiab
- The OrderItemAccessBean that represents the dynamic kit configuration
to price using the predefined configuration set on the command.com.ibm.commerce.exception.ECException
- Thrown whenever there is an error determining the additions
to the predefined configuration.OrderItemAccessBean
,
DynamicKitComponent
MonetaryAmount getPriceDifferenceAddingComponents(java.util.Set components, java.lang.String currency, java.lang.Long contractId) throws java.lang.Exception
components
- A Set of DynamicKitComponent objects that represents the
additions to the predefined configuration.currency
- The currency in which to calculate the price changes.contractId
- The ID of the contract to use to calculate the prices of
each component in the components Set.java.lang.Exception
- Thrown whenever the price change cannot be calculated.MonetaryAmount getPriceDifferenceRemovingComponents(java.util.Set components, java.lang.String currency, java.lang.Long contractId) throws java.lang.Exception
components
- A Set of DynamicKitComponent objects that represents the removals
from the predefined configuration.currency
- The currency in which to calculate the price changes.contractId
- The ID of the contract to use to calculate the prices of each
component in the components Set.java.lang.Exception
- Thrown whenever the price change cannot be calculated.MonetaryAmount getPriceDifferenceReplacingComponents(java.util.Hashtable replacements, java.lang.String currency, java.lang.Long contractId) throws java.lang.Exception
replacements
- A Hashtable of DynamicKitComponent objects that represents
the replacements in the predefined configuration.currency
- The currency in which to calculate the price changes.contractId
- The ID of the contract to use to calculate the prices of each
component in the components Set.java.lang.Exception
- Thrown whenever the price change cannot be calculated.java.util.Set getRemovals(com.ibm.commerce.order.objects.OrderItemAccessBean oiab) throws com.ibm.commerce.exception.ECException
oiab
- The OrderItemAccessBean that represents the dynamic kit configuration
to price using the predefined configuration set on the command.com.ibm.commerce.exception.ECException
- Thrown whenever there is an error determining the removals from
the predefined configuration.OrderItemAccessBean
,
DynamicKitComponent
java.util.Hashtable getReplacements(com.ibm.commerce.order.objects.OrderItemAccessBean oiab) throws com.ibm.commerce.exception.ECException
oiab
- The OrderItemAccessBean that represents the dynamic kit
configuration to price using the predefined configuration set on
the command.com.ibm.commerce.exception.ECException
- Thrown whenever there is an error determining the
replacements in the predefined configuration.OrderItemAccessBean
,
DynamicKitComponent
void setDynamicKitCatalogEntryId(java.lang.Long dynamicKitCatalogEntryId)
dynamicKitCatalogEntryId
- The catalog entry ID of the dynamic kit.void setPredefinedConfigurationId(java.lang.Long predefinedConfigurationId)
predefinedConfigurationId
- The ID of the predefined configuration to use.