com.ibm.commerce.orderitems.commands
Class ExtendOrderItemProcessCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.orderitems.commands.ExtendOrderItemProcessCmdImpl
- All Implemented Interfaces:
- ECCommand, ExtendOrderItemProcessCmd, TaskCommand
- public class ExtendOrderItemProcessCmdImpl
- extends TaskCommandImpl
- implements ExtendOrderItemProcessCmd
Perform any additional processing required for
each product or item, just prior to the completion of the calling command. If
unsuccessful, either set an exception task, return a false value to the calling
command, or handle the exception by writing an http response.
Usage Examples:
Keep track of the total number of products and items that the shopper
associates with each shipping address and send a catalog to those
recipients who exceed a threshold.
For foreign shipments, determine whether or not there are any restrictions
on exporting the product or item. You can also create an exception macro
for this task to inform the shopper and request additional information that
may be required.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
boolean |
isReadyToCallExecute()
isReadyToCallExecute method is called by the Targetable Command frame work
This is where client side parameter checking is performed before the execution of the command. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
void |
setRequestProperties(TypedProperty aRequestProperties)
Pass the parameters from the caller to the task command. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
ExtendOrderItemProcessCmdImpl
public ExtendOrderItemProcessCmdImpl()
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Description copied from class:
AbstractECCommand
- isReadyToCallExecute method is called by the Targetable Command frame work
This is where client side parameter checking is performed before the execution of the command.
The default implementation is to return true.
- Overrides:
isReadyToCallExecute
in class AbstractECCommand
- Following copied from class:
com.ibm.commerce.command.AbstractECCommand
- Returns:
- boolean - true if we can execute the command
false if we canot execute the command
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
throws ECApplicationException
- Description copied from interface:
ExtendOrderItemProcessCmd
- Pass the parameters from the caller to the task command.
- Specified by:
setRequestProperties
in interface ExtendOrderItemProcessCmd