java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.tools.optools.order.commands.CSROrderStatusChangeCmdImpl
This is the default implementation of the
CSROrderStatusChangCmd
command.
This command uses the following AccessBean(s):
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.tools.optools.order.commands. CSROrderStatusChangeCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CSROrderStatusChangeCmdImpl() |
Method Summary | |
---|---|
protected
void |
executeChangeStatus() Changes the status of the order. |
java.lang.String |
getNewStatus() Gets the new status. |
java.util.Vector |
getOrderIds() Gets the order IDs to be changed. |
AccessVector |
getResources() Gets the access vector accessed by this command. |
void |
performExecute() Changes the order status. |
void |
setNewStatus(java.lang.String newNewStatus) Sets the new status. |
void |
setOrderIds(java.util.Vector newOrderIds) Sets the order IDs that is to be changed into the new order status. |
void |
validateParameters() Validates the parameters for changing the order status. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public CSROrderStatusChangeCmdImpl()
Method Detail |
---|
protected void executeChangeStatus() throws java.lang.Exception
java.lang.Exception
- If the order change is not
successful.public java.lang.String getNewStatus()
public java.util.Vector getOrderIds()
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
- If the resource can not be
retrieved.public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECApplicationException
- If the order cannot be changed
successfully.
ECException
public void setNewStatus(java.lang.String newNewStatus)
setNewStatus
in interface
CSROrderStatusChangeCmd
newNewStatus
- The new status into which the orders is
set.public void setOrderIds(java.util.Vector newOrderIds)
setOrderIds
in interface
CSROrderStatusChangeCmd
newOrderIds
- The order IDs that are to be changed into the
new status.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
- If the parameters are not valid.