com.ibm.commerce.order.commands
Class SetOrderOrganizationCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.order.commands.SetOrderOrganizationCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, SetOrderOrganizationCmd, TaskCommand

public class SetOrderOrganizationCmdImpl
extends TaskCommandImpl
implements SetOrderOrganizationCmd

This task command is called by other Order commands to set the organization info of an order. This is default implementation. It gets the parent member id of the creator of the order and puts it in the orgentity field. The caller should do a commitCopyHelper() on the order to save the change.

See Also:
Serialized Form

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.order.commands. SetOrderOrganizationCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
SetOrderOrganizationCmdImpl()
           
 
Method Summary
 void performExecute()
          The main business logic.
 void setOrder( OrderAccessBean anOrderAB)
          Set the order to be modified.
 void validateParameters()
          Validates the parameters
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, 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
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

SetOrderOrganizationCmdImpl

public SetOrderOrganizationCmdImpl()
Method Detail

performExecute

public void performExecute()
                    throws ECException
The main business logic.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException.
ECException

setOrder

public void setOrder(OrderAccessBean anOrderAB)
Set the order to be modified.
Specified by:
setOrder in interface SetOrderOrganizationCmd
Parameters:
anOrderAB - order access bean.

validateParameters

public void validateParameters()
                        throws ECException
Validates the parameters
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException