com.ibm.commerce.order.commands
Class CheckOrderCopyCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.command.AbstractECCommand
        |
        +--com.ibm.commerce.command.TaskCommandImpl
              |
              +--com.ibm.commerce.order.commands.CheckOrderCopyCmdImpl
All Implemented Interfaces:
CheckOrderCopyCmd, ECCommand, TaskCommand

public class CheckOrderCopyCmdImpl
extends TaskCommandImpl
implements CheckOrderCopyCmd

This is the default implementation of CheckOrderCopyCmd. An exception will be thrown when:
- the order is not owned by the store/user specified, or
- the order does not have the right status.


Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.order.commands.CheckOrderCopyCmd
defaultCommandClassName, NAME, READ_ACCESS, WRITE_ACCESS
 
Constructor Summary
CheckOrderCopyCmdImpl()
           
 
Method Summary
 void performExecute()
          Contains the actual business logic of the command It should be implemented by all the command writer.
 void setAccessType(int anAccessType)
          0 - read access to the order.
1 - write access to the order.
 void setOrder(OrderAccessBean aabOrder)
          The order to be accessed.
 
Methods inherited from class com.ibm.commerce.command.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Constructor Detail

CheckOrderCopyCmdImpl

public CheckOrderCopyCmdImpl()
Method Detail

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.

setAccessType

public void setAccessType(int anAccessType)
Description copied from interface: CheckOrderCopyCmd
0 - read access to the order.
1 - write access to the order.
Specified by:
setAccessType in interface CheckOrderCopyCmd

setOrder

public void setOrder(OrderAccessBean aabOrder)
Description copied from interface: CheckOrderCopyCmd
The order to be accessed.
Specified by:
setOrder in interface CheckOrderCopyCmd