com.ibm.commerce.rfq.commands
Class RemoveTargetListCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.rfq.commands.RemoveTargetListCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, RemoveTargetListCmd, TaskCommand

public class RemoveTargetListCmdImpl
extends TaskCommandImpl
implements RemoveTargetListCmd

Implmentation for removing a store from the target list.

This is the default implementation of the RemoveTargetListCmd. This command uses the following AccessBeans/DataBeans:

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          COPYRIGHT
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.rfq.commands. RemoveTargetListCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
RemoveTargetListCmdImpl()
          RemoveTargetListCmdImpl constructor comment.
 
Method Summary
 java.lang.Long getRfqId()
          Gets the rfqId
 java.lang.Integer getTargetStoreId()
          Gets the targetStoreId
 void performExecute()
          Performs removing the store from target list action.
 void reset()
          Reset the command
 void setRfqId(java.lang.Long rfqId)
          Sets the rfqId
 void setTargetStoreId(java.lang.Integer targetStoreId)
          Sets the targetStoreId
 void validateParameters()
          Checks if the RFQ id value is set.
 
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, 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
COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

RemoveTargetListCmdImpl

public RemoveTargetListCmdImpl()
RemoveTargetListCmdImpl constructor comment.
Method Detail

reset

public void reset()
Reset the command
Overrides:
reset in class AbstractECTargetableCommand

performExecute

public void performExecute()
                    throws ECException
Performs removing the store from target list action.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException.
ECException
See Also:

, ECCommand.performExecute()


validateParameters

public void validateParameters()
                        throws ECException
Checks if the RFQ id value is set. Checks if the target store id value is set. Checks if the RFQ already exists. Checks if the target store exists.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - The exception describing the failure.
See Also:
ECCommand.validateParameters()

getRfqId

public java.lang.Long getRfqId()
Gets the rfqId
Specified by:
getRfqId in interface RemoveTargetListCmd
Returns:
Returns a java.lang.Long

setRfqId

public void setRfqId(java.lang.Long rfqId)
Sets the rfqId
Specified by:
setRfqId in interface RemoveTargetListCmd
Parameters:
rfqId - The rfqId to set

getTargetStoreId

public java.lang.Integer getTargetStoreId()
Gets the targetStoreId
Specified by:
getTargetStoreId in interface RemoveTargetListCmd
Returns:
Returns a java.lang.Integer

setTargetStoreId

public void setTargetStoreId(java.lang.Integer targetStoreId)
Sets the targetStoreId
Specified by:
setTargetStoreId in interface RemoveTargetListCmd
Parameters:
targetStoreId - The targetStoreId to set