public class GetPriceAndAvailabilityCmdImpl extends BusinessPolicyCommandImpl implements RequestOrderQuotationPolicyCmd
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 sends it out.
If the command is successful, it will send out the priceAndAvailability
message.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
GetPriceAndAvailabilityCmdImpl()
The constructor for GetPriceAndAvailabilityCmdImpl calls its parents constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAuthenticationRequired()
This method gets whether authentication is required.
|
boolean |
getBackOrders()
This method gets the
backOrders flag. |
java.lang.String |
getCollabSpace()
This method gets the collaboration name.
|
boolean |
getEnabled()
This method gets whether the partner will accept this request.
|
java.lang.String |
getName()
This method gets the name of the partner.
|
java.lang.String |
getPolicy()
This method gets the policy.
|
long |
getTimeout()
This method gets the request timeout.
|
java.lang.String |
getUomStandard()
This method gets the unit of measure standard.
|
void |
performExecute()
This method sends the PriceAndAvailabilityCheck message out.
|
void |
setAuthenticationRequired(boolean isAuthenticationRequired)
This method sets whether authentication is required.
|
void |
setBackOrders(boolean newBackOrders)
This method sets the
backOrders flag. |
void |
setCollabSpace(java.lang.String newCollabSpace)
This method sets the collaboration name.
|
void |
setEnabled(boolean isEnabled)
This method sets whether 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 |
setPriceAvailabilityRequest(com.ibm.commerce.domain.order.PriceAndAvailabilityRequest requestObj)
This method sets the
priceAndAvailabilityRequest bean. |
void |
setRequestProperties(TypedProperty requestProperties)
This method sets the request properties for the policy command.
|
void |
setTimeout(long newTimeout)
This method sets the request timeout.
|
void |
setUomStandard(java.lang.String newUomStandard)
This method sets the unit of measure standard.
|
void |
validateParameters()
This method currently only calls 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 GetPriceAndAvailabilityCmdImpl()
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- Raised 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 fails to send.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)
setCollabSpace
in interface RequestOrderQuotationPolicyCmd
newCollabSpace
- The collaboration name to setpublic java.lang.String getName()
public void setName(java.lang.String newName)
setName
in interface RequestOrderQuotationPolicyCmd
newName
- The name of the partner to setpublic java.lang.String getPolicy()
public void setPolicy(java.lang.String newPolicy)
setPolicy
in interface RequestOrderQuotationPolicyCmd
newPolicy
- The policy to set.public java.lang.String getUomStandard()
public void setUomStandard(java.lang.String newUomStandard)
setUomStandard
in interface RequestOrderQuotationPolicyCmd
newUomStandard
- The Unit of Measure standard to set.public boolean getBackOrders()
backOrders
flag.public void setBackOrders(boolean newBackOrders)
backOrders
flag.setBackOrders
in interface RequestOrderQuotationPolicyCmd
newBackOrders
- The backOrders
to setpublic long getTimeout()
public void setTimeout(long newTimeout)
setTimeout
in interface RequestOrderQuotationPolicyCmd
newTimeout
- The time for waiting on a request.public boolean getEnabled()
public void setEnabled(boolean isEnabled)
setEnabled
in interface RequestOrderQuotationPolicyCmd
isEnabled
- If the policy command is enabled.public boolean getAuthenticationRequired()
public void setAuthenticationRequired(boolean isAuthenticationRequired)
setAuthenticationRequired
in interface RequestOrderQuotationPolicyCmd
isAuthenticationRequired
- If the partner requires a userid and password on the request message.public void setPriceAvailabilityRequest(com.ibm.commerce.domain.order.PriceAndAvailabilityRequest requestObj) throws ECSystemException
priceAndAvailabilityRequest
bean.setPriceAvailabilityRequest
in interface RequestOrderQuotationPolicyCmd
requestObj
- The priceAndAvailabilityRequest
bean set by the caller.ECSystemException
- Raised with message _ERR_UNSUPPORTED_ENCODING whenever an invalid encoding is used.