com.ibm.commerce.returns.commands
Class SetRMAOrganizationCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.returns.commands.SetRMAOrganizationCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, SetRMAOrganizationCmd, TaskCommand

public class SetRMAOrganizationCmdImpl
extends TaskCommandImpl
implements SetRMAOrganizationCmd

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

Utilizes these access beans

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.returns.commands. SetRMAOrganizationCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
SetRMAOrganizationCmdImpl()
           
 
Method Summary
protected   RMAAccessBean getRMAAB()
          Get the RMA access bean..
 void performExecute()
          Execute the command.
 void setRMAAB( RMAAccessBean anRMAAB)
          Set the RMA to be modified.
 void validateParameters()
          Check mandatory 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
See Also:
Constant Field Values
Constructor Detail

SetRMAOrganizationCmdImpl

public SetRMAOrganizationCmdImpl()
Method Detail

getRMAAB

protected RMAAccessBean getRMAAB()
Get the RMA access bean..
Returns:
The RMA access bean.

performExecute

public void performExecute()
                    throws ECException
Execute the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
ECException

setRMAAB

public void setRMAAB(RMAAccessBean anRMAAB)
Description copied from interface: SetRMAOrganizationCmd
Set the RMA to be modified.
Specified by:
setRMAAB in interface SetRMAOrganizationCmd
Parameters:
anRMAAB - The RMA access bean.

validateParameters

public void validateParameters()
                        throws ECException
Check mandatory parameters.

Parameters

iRMAAB (mandatory)
RMA accessbean to be updated.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException - If no RMAAccessbean has been set, throws com.ibm.commerce.exception.ECApplicationException with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER
ECException