public class GetBatchAvailabilityCmdImpl extends BusinessPolicyCommandImpl implements RequestBatchAvailabilityPolicyCmd
GetBatchAvailabilityCmd
Policy Command Implementation is called
by the RequestBatchAvailabilityCmd
Task Command to send out the BatchAvailability
message inquiry request.
The given BatchAvailabilityRequest
object uses the messaging outbound services
to compose the BatchAvailability
message and send it out.
If the command is successful, it will send out the BatchAvailability
message.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
GetBatchAvailabilityCmdImpl()
The constructor for GetBatchAvailabilityCmdImpl calls its parents constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAuthenticationRequired()
This method gets the
authenticationRequired flag. |
boolean |
getBackOrders()
This method gets the
backOrders . |
java.lang.String |
getCollabSpace()
This method gets the collaboration name.
|
boolean |
getEnabled()
This method gets the enabled flag to determine if the partner will accept this request.
|
java.lang.String |
getName()
This method gets the partner name.
|
java.lang.String |
getPolicy()
This method gets the policy.
|
long |
getTimeout()
This method gets the number of seconds before a timeout for a requested request occurs
|
java.lang.String |
getUomStandard()
This method gets the unit of measure standard.
|
void |
performExecute()
This method first calls its parent performExecute method and then sends the
batch availability message.
|
void |
setAuthenticationRequired(boolean isAuthenticationRequired)
This method sets the
authenticationRequired flag. |
void |
setBackOrders(boolean newBackOrders)
This method sets the
backOrders |
void |
setBatchAvailabilityRequest(com.ibm.commerce.domain.order.BatchAvailabilityRequest requestObj)
This method sets
batchAvailabilityRequest bean. |
void |
setCollabSpace(java.lang.String newCollabSpace)
This method sets the collaboration name.
|
void |
setEnabled(boolean isEnabled)
This method sets the enabled flag to determine if the partner will accept this request.
|
void |
setName(java.lang.String newName)
This method sets the name of the partner.
|
void |
setPolicy(java.lang.String newPolicy)
This method sets the policy.
|
void |
setRequestProperties(TypedProperty requestProperties)
Sets the request properties for the policy command.
|
void |
setTimeout(long newTimeout)
This method sets the timeout in seconds.
|
void |
setUomStandard(java.lang.String newUomStandard)
This method sets the unit of measure standard.
|
void |
validateParameters()
This method checks parameters by calling its parents
validateParameters method. |
getPolicyId, getRequestProperties, setPolicyId
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, 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
getPolicyId, getRequestProperties, setPolicyId
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public GetBatchAvailabilityCmdImpl()
public void validateParameters() throws ECException
validateParameters
method.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 interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- Raised if the message is not sent.public void setRequestProperties(TypedProperty requestProperties)
setRequestProperties
in interface BusinessPolicyCommand
setRequestProperties
in class BusinessPolicyCommandImpl
requestProperties
- The request properties.
collabSpace
: The collaboration space name.
backOrders
: Boolean indicating whether the partner accepts shop carts with items whose availability is zero.
uomStandard
: The unit of measure standard used to communicate. Usually used in conjunction with QuantityUnitMapping
objects.
authenticationRequired
: Boolean indicating whether the partner requires a userid and password on the request message.
public java.lang.String getCollabSpace()
public void setCollabSpace(java.lang.String newCollabSpace)
newCollabSpace
- The collaboration name to setpublic java.lang.String getName()
public void setName(java.lang.String newName)
newName
- The name of the partner to setpublic java.lang.String getPolicy()
public void setPolicy(java.lang.String newPolicy)
newPolicy
- The policy to setpublic java.lang.String getUomStandard()
public void setUomStandard(java.lang.String newUomStandard)
newUomStandard
- The uomStandard
to setpublic boolean getBackOrders()
backOrders
.public void setBackOrders(boolean newBackOrders)
backOrders
newBackOrders
- true if the partner accepts shop carts with items whose availability is zero; false otherwise.public long getTimeout()
public void setTimeout(long newTimeout)
newTimeout
- The timeout to setpublic boolean getEnabled()
public void setEnabled(boolean isEnabled)
isEnabled
- true if the partner accept this request (quote/shop cart/order); false otherwise.public boolean getAuthenticationRequired()
authenticationRequired
flag.public void setAuthenticationRequired(boolean isAuthenticationRequired)
authenticationRequired
flag.isAuthenticationRequired
- true if the partner require a userid and password on the request message; false otherwise.public void setBatchAvailabilityRequest(com.ibm.commerce.domain.order.BatchAvailabilityRequest requestObj) throws ECSystemException
batchAvailabilityRequest
bean.setBatchAvailabilityRequest
in interface RequestBatchAvailabilityPolicyCmd
requestObj
- The bean set by the caller.ECSystemException
- Raised with message _ERR_UNSUPPORTED_ENCODING whenever an invalid encoding is used.