java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.command.BusinessPolicyCommandImpl | +--com.ibm.commerce.messaging.commands.GetPriceAndAvailabilityCmdImpl
The GetPriceAndAvailabilityCmd Policy Command Implementation is called by the StoreRequestOrderQuotationCmd Task Command to send out the priceAndAvailability message inquiry request. Given the priceAndAvailability object, uses the messaging outbound services. to compose the priceAndAvailability message and to send it out. If the command is successful, it will send out the priceAndAvailability message
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. BusinessPolicyCommandImpl |
policyId,
requestProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.messaging.commands. RequestOrderQuotationPolicyCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
GetPriceAndAvailabilityCmdImpl() Constructor for GetPriceAndAvailabilityCmdImpl. |
Method Summary | |
---|---|
boolean |
getAuthenticationRequired() Gets the authenticationRequired |
boolean |
getBackOrders() Gets the backOrders |
java.lang.String |
getCollabSpace() Gets the collaboration name |
boolean |
getEnabled() Gets the enabled |
java.lang.String |
getName() Gets the name of the partner |
java.lang.String |
getPolicy() Gets the policy |
long |
getTimeout() Gets the timeout |
java.lang.String |
getUomStandard() Gets the uomStandard |
void |
performExecute() Sends the message. |
void |
setAuthenticationRequired(boolean authenticationRequired) Sets the authenticationRequired |
void |
setBackOrders(boolean backOrders) Sets the backOrders |
void |
setCollabSpace(java.lang.String collabSpace) Sets the collaboration name |
void |
setEnabled(boolean enabled) Sets the enabled |
void |
setName(java.lang.String name) /** Sets the name of the partner |
void |
setPolicy(java.lang.String policy) Sets the policy |
void |
setPriceAvailabilityRequest(com.ibm.commerce.domain.order.PriceAndAvailabilityRequest requestObj) Set PriceAvailabilityRequest javabean. |
void |
setRequestProperties(
TypedProperty requestProperties) Sets the request properties for the policy command. |
void |
setTimeout(long timeout) Sets the timeout |
void |
setUomStandard(java.lang.String uomStandard) Sets the uomStandard |
void |
validateParameters() Checks mandatory parameters. |
Methods inherited from class com.ibm.commerce.command. BusinessPolicyCommandImpl |
getPolicyId,
getRequestProperties,
setPolicyId |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
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. BusinessPolicyCommand |
getPolicyId,
getRequestProperties,
setPolicyId |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public GetPriceAndAvailabilityCmdImpl()
Method Detail |
---|
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
- If the validation of the parameters fails.public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- If the message is not sent.public void setRequestProperties(TypedProperty requestProperties)
setRequestProperties
in interface
BusinessPolicyCommand
setRequestProperties
in class
BusinessPolicyCommandImpl
requestProperties
- The request properties. name The unique
identifier for a partner collabSpace The CrossWorlds collaboration space
backOrders Does the partner accept shopcarts with items whose availability is
zero timeout A user interface should not timeout while waiting for a requested
request until this many seconds has elapsed enabled Does the partner accept
this request (quote/shopcart/order) uomStandard The Unit of Measure standard
used to communicate. Ususally used in conjuction with QuantityUnitMapping
objects authenticationRequired Does the partner require a userid and password
on the request message policy The policy will be appliedpublic java.lang.String getCollabSpace()
public void setCollabSpace(java.lang.String collabSpace)
setCollabSpace
in interface
RequestOrderQuotationPolicyCmd
collabSpace
- The collaboration name to
setpublic java.lang.String getName()
public void setName(java.lang.String name)
setName
in interface
RequestOrderQuotationPolicyCmd
name
- The name of the partner to setpublic java.lang.String getPolicy()
public void setPolicy(java.lang.String policy)
setPolicy
in interface
RequestOrderQuotationPolicyCmd
policy
- The policy to set.public java.lang.String getUomStandard()
public void setUomStandard(java.lang.String uomStandard)
setUomStandard
in interface
RequestOrderQuotationPolicyCmd
uomStandard
- The Unit of Measure standard to
set.public boolean getBackOrders()
public void setBackOrders(boolean backOrders)
setBackOrders
in interface
RequestOrderQuotationPolicyCmd
backOrders
- The backOrders to setpublic long getTimeout()
public void setTimeout(long timeout)
setTimeout
in interface
RequestOrderQuotationPolicyCmd
timeout
- The time for waiting requested
request.public boolean getEnabled()
public void setEnabled(boolean enabled)
setEnabled
in interface
RequestOrderQuotationPolicyCmd
enabled
- If the policy command is
enabled.public boolean getAuthenticationRequired()
public void setAuthenticationRequired(boolean authenticationRequired)
setAuthenticationRequired
in interface
RequestOrderQuotationPolicyCmd
authenticationRequired
- If the partner requires a userid and
password on the request message.public void setPriceAvailabilityRequest(com.ibm.commerce.domain.order.PriceAndAvailabilityRequest requestObj) throws ECSystemException
setPriceAvailabilityRequest
in interface
RequestOrderQuotationPolicyCmd
ECException
- Raised with message _ERR_UNSUPPORTED_ENCODING whenever an invalid encoding is
used.
ECSystemException