com.ibm.commerce.rfq.commands
Class RespondPAttributeCmdImpl

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

public class RespondPAttributeCmdImpl
extends TaskCommandImpl
implements RespondPAttributeCmd

Implementation class for creating a response personalization attribute value.

This command calls the following TaskCommands:

This command uses the following AccessBeans:
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. RespondPAttributeCmd
defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
RespondPAttributeCmdImpl()
          Constructs an instance of RespondPAttributeCmdImpl.
 
Method Summary
 void performExecute()
          Responds OrderItemPAttributeTC Step1: Create the TCs responses Step2: Create the relationships between the request TCs and the requestTCs.
 void reset()
          Resets the command.
 void setAttributeInfo(java.util.Vector newAttributeInfo)
          Sets the product specifications.
 void setRequestId(java.lang.Long newRequestId)
          Sets the request ID
 void setResponseId(java.lang.Long newResponseId)
          Sets the response ID
 void setRFQResponseProductId(java.lang.Long rfqResponseProductId)
          Sets the rfq response product ID.
 void validateParameters()
          Validate response paramters.
 
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

RespondPAttributeCmdImpl

public RespondPAttributeCmdImpl()
Constructs an instance of RespondPAttributeCmdImpl.
Method Detail

reset

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

performExecute

public void performExecute()
                    throws ECException
Responds OrderItemPAttributeTC Step1: Create the TCs responses Step2: Create the relationships between the request TCs and the requestTCs.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - Any ECException exceptions are allowed to personlate.

setAttributeInfo

public void setAttributeInfo(java.util.Vector newAttributeInfo)
Sets the product specifications.
Specified by:
setAttributeInfo in interface RespondPAttributeCmd
Parameters:
newAttributeInfo - The vector of hashtables of product specifications.

setRequestId

public void setRequestId(java.lang.Long newRequestId)
Sets the request ID
Specified by:
setRequestId in interface RespondPAttributeCmd
Parameters:
newRequestId - The request ID.

setResponseId

public void setResponseId(java.lang.Long newResponseId)
Sets the response ID
Specified by:
setResponseId in interface RespondPAttributeCmd
Parameters:
newResponseId - The response ID.

validateParameters

public void validateParameters()
                        throws ECApplicationException
Validate response paramters. Check whether responseId, requestId, RFQ pro are null.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECApplicationException - The exception description.

setRFQResponseProductId

public void setRFQResponseProductId(java.lang.Long rfqResponseProductId)
Sets the rfq response product ID.
Specified by:
setRFQResponseProductId in interface RespondPAttributeCmd
Parameters:
rfqResponseProductId - The rfq response product ID.