public class QuoteGenerateOrderCmdImpl extends com.ibm.commerce.quote.commands.QuoteBaseCmdImpl implements QuoteGenerateOrderCmd
QuoteGenerateOrderCmd
controller Command.
Behaviour
QuoteCopyCmd
to copy the quote from which Order must be generated.
PrepareOrderCmd
for the new order. If the SKIP_REPRICING flags are turned on, then the PrepareOrderCmd protects those prices to ensure the quoted prices.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
QuoteGenerateOrderCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBlockInfoCopyFlag()
Gets the block info copy flag.
|
java.lang.String |
getDescription()
Gets the description of the Order that must be generated from the quote.
|
java.lang.String |
getGenOrderId()
Gets the Id of the generated order.
|
AccessVector |
getResources()
Gets resources.
|
java.lang.String |
getSensitiveInfoCopyFlag()
Gets the sensitive info copy flag.
|
void |
performExecute()
Performs the main business logic.
|
void |
reset()
This method should be called after a command has been executed to reset its states variables.
|
void |
setBlockInfoCopyFlag(java.lang.String blInfoCopyFlag)
Sets the block info copy flag.
|
void |
setDescription(java.lang.String desc)
Sets the description of the Order to be generated from the quote.
|
void |
setQuote(OrderAccessBean abQuote)
Sets the quote to generate an order and adds it to the list of quotes to be processed.
|
void |
setRequestProperties(TypedProperty aReqParms)
Overrides the base class method to retrieve the sensitive and block information flags
|
void |
setSensitiveInfoCopyFlag(java.lang.String senInfoCopyFlag)
Sets the sensitive info copy flag.
|
getCommit, getUrl, setCommit, setUrl, validateParameters
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setUrl
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public void setQuote(OrderAccessBean abQuote)
setQuote
in interface QuoteGenerateOrderCmd
abQuote
- Quote access bean.public java.lang.String getSensitiveInfoCopyFlag()
public void setSensitiveInfoCopyFlag(java.lang.String senInfoCopyFlag)
setSensitiveInfoCopyFlag
in interface QuoteGenerateOrderCmd
senInfoCopyFlag
- sensitive info copy flagpublic java.lang.String getBlockInfoCopyFlag()
public void setBlockInfoCopyFlag(java.lang.String blInfoCopyFlag)
setBlockInfoCopyFlag
in interface QuoteGenerateOrderCmd
blInfoCopyFlag
- block info copy flagpublic java.lang.String getDescription()
public void setDescription(java.lang.String desc)
setDescription
in interface QuoteGenerateOrderCmd
desc
- description of Orderpublic java.lang.String getGenOrderId()
getGenOrderId
in interface QuoteGenerateOrderCmd
public void setRequestProperties(TypedProperty aReqParms) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class com.ibm.commerce.quote.commands.QuoteBaseCmdImpl
aReqParms
- request properties.ECException
public void performExecute() throws ECException
QuoteCopyCmd
on the quote.
Checks the quote for its expiry status. If the quote has not expired, then sets the SKIP_REPRICING.
Prepare flags on all the items in the generated order.
Finally, invoke PrepareOrderCmd
on the generated order.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class com.ibm.commerce.quote.commands.QuoteBaseCmdImpl
ECException
QuoteCopyCmd
,
InventoryManagementHelper
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class com.ibm.commerce.quote.commands.QuoteBaseCmdImpl
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class com.ibm.commerce.quote.commands.QuoteBaseCmdImpl