|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl | +--com.ibm.commerce.utf.commands.RFQCompleteCmdImpl
Implementation class for completing an RFQ.
Field Summary | |
boolean |
nonUTFMessage
|
java.lang.Long |
rfqId
|
java.lang.Long |
rfqOwner
|
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.utf.commands.RFQCompleteCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand |
COPYRIGHT |
Constructor Summary | |
RFQCompleteCmdImpl()
|
Method Summary | |
boolean |
checkRFQState(java.lang.Integer currentRFQState)
Checks the state of the RFQ. |
void |
createContracts()
Creates a contract for each winning response. |
void |
createOrders()
Creates an order for each winning response. |
void |
doAcknowledgment()
Composes and sends out the response |
java.util.Hashtable |
getErrorContent()
Returns a hastable 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 a 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:
|
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl |
getViewInputProperties |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.AccCommand |
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.security.Protectable |
fulfills, getOwner |
Field Detail |
public boolean nonUTFMessage
public java.lang.Long rfqId
public java.lang.Long rfqOwner
Constructor Detail |
public RFQCompleteCmdImpl()
Method Detail |
public boolean checkRFQState(java.lang.Integer currentRFQState)
currentRFQState
- The rfq state Integer valuepublic void createContracts() throws ECException
This method does the following:
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
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 class AbstractECTargetableCommand
ECException
- 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 parametersECException
- 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
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |