public class RFQToOrderCreateCmdImpl extends ControllerCommandImpl implements RFQToOrderCreateCmd
RFQAccessBean
RFQResponseAccessBean
OrderItemAccessBean
RFQResponseEvalAccessBean
RFQResponseProductAccessBean
CatalogEntryAccessBean
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field
|
defaultCommandClassName, NAME
Constructor and Description |
---|
RFQToOrderCreateCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void |
createOrders()
Creates an order for each winning response.
|
java.lang.String |
getBillTo()
Gets the billTo
|
java.util.Hashtable |
getPayment()
Gets the payment
|
java.lang.Long |
getResId()
Gets the resId
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
java.lang.Long |
getRfqId()
Returns the RFQ identifier.
|
java.lang.Long |
getRfqOwner()
Returns the RFQ owner's member Id.
|
void |
performExecute()
Completes the RFQ by creating a contract or an order for each winning response.
This method does the following:
|
void |
reset()
Reset the command
|
void |
setBillTo(java.lang.String thsBillTo)
Sets the billTo
|
void |
setPayment(java.util.Hashtable thsPayment)
Sets the payment
|
void |
setRequestProperties(TypedProperty requestProperties)
Get the rfqId, resId, billTo parameters from the request.
|
void |
setResId(java.lang.Long thsResId)
Sets the resId
|
void |
setRfqId(java.lang.Long newRfqId)
Assigns the incoming RFQ identifier to a member variable.
|
void |
setRfqOwner(java.lang.Long newRfqOwner)
Assigns the incoming member identifier of the RFQ owner to a member variable.
|
void |
validateParameters()
Validates the incoming parameters for this command.
This method expects the following parameters : offering_id , the reference number of the RFQ that is to be completedThis method does the following:
|
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
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
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
ECCommand#getResources()
public void createOrders() throws ECException
ECException
public java.lang.Long getRfqId()
public java.lang.Long getRfqOwner()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
ECCommand#performExecute()
public void setRequestProperties(TypedProperty requestProperties) throws ECApplicationException, ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
requestProperties
- TypedProperty containing the input parameters\ECApplicationException
ECException
ECApplicationException
ControllerCmd#setRequestProperties(TypedProperty)
public void setRfqId(java.lang.Long newRfqId)
newRfqId
- The RFQ identifier.public void setRfqOwner(java.lang.Long newRfqOwner)
newRfqOwner
- The member Id of the RFQ owner.public void validateParameters() throws ECException
offering_id
, the reference number of the RFQ that is to be completedvalidateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
ECCommand#validateParameters()
public java.util.Hashtable getPayment()
public void setPayment(java.util.Hashtable thsPayment)
payment
- The payment to setpublic java.lang.String getBillTo()
public void setBillTo(java.lang.String thsBillTo)
billTo
- The billTo to setpublic java.lang.Long getResId()
public void setResId(java.lang.Long thsResId)
resId
- The resId to set