public class ProductAvailabilityDataBeanCmdImpl extends DataBeanCommandImpl implements ProductAvailabilityDataBeanCmd
ProductAvailabilityDataBeanCmd
task command.
| Name | Description |
|---|---|
ProductAvailabilityDataBean |
a databean represents the productAvailability |
| Name | Description |
|---|---|
AvailableDate |
available date |
FormattedTotalQuantityOnHand |
total quantity of the product |
ExpectedInventory |
expected inventory |
GetProductAvailability outbound service request emptyString, EURO_CODEdefaultCommandClassName, NAME| Constructor and Description |
|---|
ProductAvailabilityDataBeanCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkExternalInventory()
Check external inventory.
|
void |
checkLocalExpectedInventory()
This method checks the local expected inventory cache
|
void |
checkLocalOnHandInventory()
This method checks the local onhand inventory cache
|
java.sql.Timestamp |
getAvailableDate()
This method gets the available date
|
java.util.List |
getExpectedInventory()
This method gets the expected inventory
|
FormattedQuantityAmountDataBean |
getFormattedTotalQuantityOnHand()
This method gets the formatted total on hand quantity
|
java.util.List |
getFulfillmentCenterInventory()
This method gets the fulfillment center inventory
|
InventoryClientFacadeImpl |
getInventoryClientFacade()
This method gets the inventory client facade.
|
java.lang.String |
getInventoryStatus()
This method gets the inventory status
|
QuantityAmount |
getTotalQuantityOnHand()
This method gets the total onhand quantity
|
void |
performExecute()
This method performs the main logic of the task command
|
void |
reset()
This method resets the command fields.
|
void |
setFulfillmentCenterIds(java.lang.Integer[] argFulfillmentCenterIds)
This method sets the fulfillment center Ids
|
void |
setRequestProperties(TypedProperty val)
This method sets the request properties
|
void |
setSKU(java.lang.String argSku)
This method sets the sku
|
void |
validateParameters()
Validate the parameters for the command.
|
getDataBean, populateDataBeanCommand, setDataBeanaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataBean, setDataBeangetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic InventoryClientFacadeImpl getInventoryClientFacade()
public void checkLocalExpectedInventory()
throws ECException,
java.lang.NumberFormatException,
javax.naming.NamingException,
java.sql.SQLException
foundCatEntryAB - the catentry to checkECExceptionjava.lang.NumberFormatExceptionjavax.naming.NamingExceptionjava.sql.SQLExceptionpublic void checkLocalOnHandInventory()
throws ECSystemException,
ECApplicationException,
java.lang.NumberFormatException,
javax.naming.NamingException,
java.sql.SQLException
ECSystemExceptionECApplicationExceptionjava.lang.NumberFormatExceptionjavax.naming.NamingExceptionjava.sql.SQLExceptionpublic java.lang.String getInventoryStatus()
public void setSKU(java.lang.String argSku)
argSku - Sku to setpublic void setFulfillmentCenterIds(java.lang.Integer[] argFulfillmentCenterIds)
argFulfillmentCenterIds - FulfillmentCenterIds to checkpublic java.util.List getFulfillmentCenterInventory()
public QuantityAmount getTotalQuantityOnHand()
public java.sql.Timestamp getAvailableDate()
public java.util.List getExpectedInventory()
public FormattedQuantityAmountDataBean getFormattedTotalQuantityOnHand()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - com.ibm.commerce.exception.ECException
In case of any ECExceptionpublic void checkExternalInventory()
throws ECApplicationException
ECApplicationExceptionpublic void setRequestProperties(TypedProperty val)
setRequestProperties in interface DataBeanCommandsetRequestProperties in class DataBeanCommandImplval - TypedPropertypublic void reset()
This method resets the command fields.
After this method is invoked, and proper attributes are set, the command can be executed again.
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException