public class UpdateNominalCostCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements UpdateNominalCostCmd
UpdateNominalCostCmdImpl
Task Command Implementation
updates the nominal cost of a product with the same currency.
If the currencies are different, one should delete the current one, and create a new one.
This command uses the following AccessBeans:
OfferAccessBean
OfferPriceAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
UpdateNominalCostCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCurrency()
Returns the currency.
|
java.lang.Integer |
getStoreId()
Returns the store ID.
|
void |
performExecute()
First validates the input parameters.
|
void |
reset() |
void |
setCatEntryId(java.lang.Long aCatEntryId)
Sets the catalog entry ID whose delegated price is to be checked for limit violation.
|
void |
setCurrency(java.lang.String aCurrency)
Set the currency of the nominal cost.
|
void |
setNominalCost(java.math.BigDecimal aNominalCost)
Set the new value of the nominal cost of the product under this offer.
|
void |
setStoreId(java.lang.Integer aStoreId)
Set the store ID to which the catalog entry belongs.
|
void |
validateParameters() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public java.lang.String getCurrency() throws com.ibm.commerce.exception.ECSystemException
com.ibm.commerce.exception.ECSystemException
public java.lang.Integer getStoreId()
getStoreId
in interface com.ibm.commerce.command.ECCommand
getStoreId
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
public void reset()
reset
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.websphere.command.Command#reset()
public void setCatEntryId(java.lang.Long aCatEntryId)
setCatEntryId
in interface UpdateNominalCostCmd
catEntryId
- A reference number of catalog entry.public void setCurrency(java.lang.String aCurrency)
setCurrency
in interface UpdateNominalCostCmd
aCurrency
- A currency.public void setNominalCost(java.math.BigDecimal aNominalCost)
setNominalCost
in interface UpdateNominalCostCmd
nominalCost
- BigDecimal A nominal cost amountpublic void setStoreId(java.lang.Integer aStoreId)
setStoreId
in interface UpdateNominalCostCmd
storeId
- A store IDpublic void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
ECCommand.validateParameters()