public class RFQCompleteCmdImpl extends ToolsControllerCommandImpl implements RFQCompleteCmd
This command calls the following TaskCommands/ControllerCommands:
CreateContractBasicInfoCmd
CreateShippingChargeTCCmd
CreateReturnChargeTCCmd
CreateReturnPaymentTCCmd
OrderPrepareCmd
OrderProcessCmd
RFQAccessBean
RFQResponseAccessBean
RFQResponseProductAccessBean
ParticipantAccessBean
StoreCatalogEntryAccessBean
BusinessFlowEventData
BusinessFlowEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
boolean |
nonUTFMessage
Non UTF Message.
|
java.lang.Long |
rfqId
RFQ Id.
|
java.lang.Long |
rfqOwner
RFQ Owner.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
RFQCompleteCmdImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkRFQState(java.lang.Integer currentRFQState)
Checks the state of the RFQ.
|
void |
createContracts()
Creates a contract for each winning response.
This method does the following:
|
void |
createOrders()
Creates an order for each winning response.
|
void |
doAcknowledgment()
Composes and sends out the response
|
java.util.Hashtable |
getErrorContent()
Returns a hashtable of error codes.
|
AccessVector |
getResources()
Gets the access vector accessed by this command.
The protectable resource for this command is the RFQ object that needs to be completed. |
java.lang.Long |
getRfqId()
Returns the RFQ identifier.
|
java.lang.Long |
getRfqOwner()
Returns the RFQ owner's member Id.
|
java.lang.String |
getShippingAddress(java.util.Vector shippingAddressList,
java.lang.String catentryId)
Inspects the incoming list of shipping addresses to find the address corresponding
to the incoming catalog entry.
|
java.lang.String |
getShippingMode(java.util.Vector shippingModeList,
java.lang.String catentryId)
Inspects the incoming list of shipping modes to find the mode corresponding
to the incoming catalog entry.
|
java.util.Hashtable |
getToolXMLObject()
Fetches the XML data prepared by the tools framework.
|
java.lang.String |
getWinningResponseName(java.lang.String responseId)
Gets the name of the winning response.
|
boolean |
isNonUTFMessage()
Provides an indication whether the error message is an UTF message or not.
|
void |
performExecute()
Completes the RFQ by creating a contract or an order for each winning response.
This method does the following:
|
void |
setError(java.lang.String errorKey,
java.lang.String errorParams)
Writes the errorcode into a hashtable
|
void |
setError(java.lang.String errorKey,
java.lang.String[] errorParams)
Writes the errorcode into a hashtable
|
void |
setErrorContent(java.util.Hashtable newErrorContent)
Assigns the incoming hashtable containing error codes and parameters to the errorContent
member variable.
|
void |
setNonUTFMessage(boolean newNonUTFMessage)
Assigns the incoming boolean value to the nonUTFMessage
member variable.
|
void |
setRequestProperties(TypedProperty requestProperties)
Assigns the incoming XML object from the tools framework to a member variable toolsXMLObject.
|
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 |
setToolXMLObject(java.util.Hashtable newToolXMLObject)
Sets a member variable to the incoming tools XML object.
|
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:
|
getViewInputProperties
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, 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, reset, 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 java.lang.Long rfqId
public java.lang.Long rfqOwner
public boolean nonUTFMessage
public boolean checkRFQState(java.lang.Integer currentRFQState)
currentRFQState
- The rfq state Integer valuepublic void createContracts() throws ECException
ECException
public void createOrders() throws ECException
ECException
public void doAcknowledgment()
public java.util.Hashtable getErrorContent()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
ECCommand#getResources()
public java.lang.Long getRfqId()
public java.lang.Long getRfqOwner()
public java.lang.String getShippingAddress(java.util.Vector shippingAddressList, java.lang.String catentryId)
shippingAddressList
- A vector containing shipping information for catalog entries.catentryId
- The catalog entry identifier.public java.lang.String getShippingMode(java.util.Vector shippingModeList, java.lang.String catentryId)
shippingModeList
- A vector containing shippingmode information for catalog entries.catentryId
- The catalog entry identifier.public java.util.Hashtable getToolXMLObject()
public java.lang.String getWinningResponseName(java.lang.String responseId)
responseId
- The identifier of the winning response.public boolean isNonUTFMessage()
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 setError(java.lang.String errorKey, java.lang.String[] errorParams)
errorKey
- The error code.errorParams
- The error parameters.public void setError(java.lang.String errorKey, java.lang.String errorParams)
errorKey
- The error code.errorParams
- The error parameters.public void setErrorContent(java.util.Hashtable newErrorContent)
newErrorContent
- The incoming hashtable containing error codes and parameterspublic void setNonUTFMessage(boolean newNonUTFMessage)
newNonUTFMessage
- The incoming boolean value.public void setRequestProperties(TypedProperty requestProperties) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ToolsControllerCommandImpl
requestProperties
- TypedProperty containing the input parametersECApplicationException
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 setToolXMLObject(java.util.Hashtable newToolXMLObject)
newToolXMLObject
- The XML object put together by tools framework.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()