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_CODE
defaultCommandClassName, 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, setDataBean
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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
getDataBean, setDataBean
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 InventoryClientFacadeImpl getInventoryClientFacade()
public void checkLocalExpectedInventory() throws ECException, java.lang.NumberFormatException, javax.naming.NamingException, java.sql.SQLException
foundCatEntryAB
- the catentry to checkECException
java.lang.NumberFormatException
javax.naming.NamingException
java.sql.SQLException
public void checkLocalOnHandInventory() throws ECSystemException, ECApplicationException, java.lang.NumberFormatException, javax.naming.NamingException, java.sql.SQLException
ECSystemException
ECApplicationException
java.lang.NumberFormatException
javax.naming.NamingException
java.sql.SQLException
public 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 ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- com.ibm.commerce.exception.ECException
In case of any ECExceptionpublic void checkExternalInventory() throws ECApplicationException
ECApplicationException
public void setRequestProperties(TypedProperty val)
setRequestProperties
in interface DataBeanCommand
setRequestProperties
in class DataBeanCommandImpl
val
- 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.Command
reset
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException