com.ibm.commerce.orderquotation.commands
Class OrderQuotationCreateCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.orderquotation.commands.OrderQuotationCreateCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, OrderQuotationCreateCmd

public class OrderQuotationCreateCmdImpl
extends ControllerCommandImpl
implements OrderQuotationCreateCmd

Creates a quotation Order, if the specified OrderQuotationRel object still exists. If no quantity UOM is specified on the quotation response then "C62" is used. If the message status code flag is anything but "0" then an order status record is created for the quotation order and no order items are created. If an item has a status of "1" then it is ignored and no order item record is created.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.orderquotation.commands. OrderQuotationCreateCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand
COPYRIGHT
 
Constructor Summary
OrderQuotationCreateCmdImpl()
           
 
Method Summary
  QuotationResponse getQuotationResponse()
          Gets the quotation response.
  AccessVector getResources()
          Gets the vector of resources accessed by this command.
 boolean isRetriable()
          Sets this command to be retriable in the event of a transaction rollback.
 void performExecute()
          Execute the command.
 void reset()
          Resets the command.
 void setQuotationResponse( QuotationResponse quotationResponse)
          Sets the quotation response.
 void setRequestProperties( TypedProperty aRequestProperties)
          Sets the requestProperties for the command.
 void validateParameters()
          Check mandatory parameters.
 
Methods inherited from class com.ibm.commerce.command. ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, 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
 
Methods inherited from interface com.ibm.commerce.command. ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, mergeProperties, setGeneric, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command. AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command. ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 

Constructor Detail

OrderQuotationCreateCmdImpl

public OrderQuotationCreateCmdImpl()
Method Detail

isRetriable

public boolean isRetriable()
Sets this command to be retriable in the event of a transaction rollback.
Specified by:
isRetriable in interface ControllerCommand
Overrides:
isRetriable in class ControllerCommandImpl
Returns:
true.

reset

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

validateParameters

public void validateParameters()
                        throws ECException
Check mandatory parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException - These exceptions are allowed to percolate.

performExecute

public void performExecute()
                    throws ECException
Execute the command.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException - These exceptions are allowed to percolate.

setRequestProperties

public void setRequestProperties(TypedProperty aRequestProperties)
                          throws ECException
Sets the requestProperties for the command.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
aRequestProperties - The request properties.
Throws:
ECException - These exceptions are allowed to percolate.

getResources

public AccessVector getResources()
                          throws ECException
Gets the vector of resources accessed by this command.
Specified by:
getResources in interface ECCommand
Overrides:
getResources in class AbstractECTargetableCommand
Returns:
The vector of resource action pairs - none.
Throws:
ECSystemException - Raised with message _ERR_CREATE_EXCEPTION if there is a javax.ejb.CreateException, _ERR_FINDER_EXCEPTION if there is a javax.ejb.FinderException, _ERR_NAMING_EXCEPTION if there is a javax.naming.NamingException, _ERR_REMOTE_EXCEPTION if there is a java.rmi.RemoteException.
ECException

getQuotationResponse

public QuotationResponse getQuotationResponse()
Gets the quotation response.
Returns:
The response.

setQuotationResponse

public void setQuotationResponse(QuotationResponse quotationResponse)
Sets the quotation response.
Specified by:
setQuotationResponse in interface OrderQuotationCreateCmd
Parameters:
quotationResponse - The quotation response.