java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.command.BusinessPolicyCommandImpl | +--com.ibm.commerce.messaging.commands.GetBatchAvailabilityCmdImpl
The GetBatchAvailabilityCmd Policy Command Implementation is called by the RequestBatchAvailabilityCmd Task Command to send out the batchAvailability message inquiry request. Given the batchAvailabilityRequest object, uses the messaging outbound services. to compose the batchAvailability message and to send it out. If the command is successful, it will send out the batchAvailability 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. RequestBatchAvailabilityPolicyCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
GetBatchAvailabilityCmdImpl() Constructor for GetBatchAvailabilityCmdImpl. |
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 for a requested request until this many seconds has elapsed |
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 |
setBatchAvailabilityRequest(BatchAvailabilityRequest requestObj) Sets batchAvailabilityRequest javabean. |
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 |
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.messaging.commands. RequestBatchAvailabilityPolicyCmd |
setBatchAvailabilityRequest |
Methods inherited from interface com.ibm.commerce.command. BusinessPolicyCommand |
getPolicyId,
getRequestProperties,
setPolicyId |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public GetBatchAvailabilityCmdImpl()
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)
collabSpace
- The collaboration name to
setpublic java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the partner to setpublic java.lang.String getPolicy()
public void setPolicy(java.lang.String policy)
policy
- The policy to setpublic java.lang.String getUomStandard()
public void setUomStandard(java.lang.String uomStandard)
uomStandard
- The uomStandard to setpublic boolean getBackOrders()
public void setBackOrders(boolean backOrders)
backOrders
- True if the partner accepts shopcarts with items
whose availability is zero; false otherwise.public long getTimeout()
public void setTimeout(long timeout)
timeout
- The timeout to setpublic boolean getEnabled()
public void setEnabled(boolean enabled)
enabled
- True if the partner accept this request
(quote/shopcart/order); false otherwise.public boolean getAuthenticationRequired()
public void setAuthenticationRequired(boolean authenticationRequired)
authenticationRequired
- True if the partner require a userid
and password on the request message; false otherwise.public void setBatchAvailabilityRequest(BatchAvailabilityRequest requestObj) throws ECSystemException
ECException
- Raised with message _ERR_UNSUPPORTED_ENCODING whenever an invalid encoding is
used.
ECSystemException