public class GeneratePackSlipCmdImpl extends TaskCommandImpl implements GeneratePackSlipCmd
GeneratePackSlipCmd
task command.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM Copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
GeneratePackSlipCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
generatePackslip()
This method generates the pack slip xml.
|
java.lang.String |
generatePackslip(java.lang.String argPickBatchId,
java.lang.String argStoreName,
java.lang.String argFfmcenterName,
java.lang.String argOrderNumber,
java.lang.String argReleaseNumber,
java.lang.String argCustomerNumber,
java.lang.String argOrderDate)
This method generates the pack slip XML for an order release.
|
void |
generateXMLForKitComponent(com.ibm.commerce.order.utils.DynamicKitComponent component,
int treeLevel,
java.io.PrintWriter output)
This method generates the XML for a specified KitComponent node in the Nested Kit tree
|
void |
generateXMLForNestedKit(com.ibm.commerce.order.utils.NestedKitNode rootNode,
java.io.PrintWriter output)
This method is top-level call to generate XML for the NestedKit tree
|
void |
generateXMLToCloseSubTree(int treeLevel,
java.io.PrintWriter output)
The method generates XML to close the subtree tags
|
java.lang.Long |
getBaseItemID()
This method returns the baseItemID.
|
java.lang.String |
getCustomerNumber()
This method returns the customerNumber.
|
java.lang.Integer |
getFfmcenterId()
This method returns fulfillment center identifier.
|
java.lang.String |
getFfmcenterName()
This method returns the ffmcenterName.
|
java.lang.Integer |
getLanguageId()
This method returns language identifier.
|
java.lang.String |
getLongDescription()
This method returns the longDescription.
|
java.lang.String |
getOrderDate()
This method returns the orderDate.
|
java.lang.Double |
getOrderedQuantity()
This method returns the orderedQuantity.
|
java.lang.String |
getOrderItemId()
This method returns the orderItemId
|
java.lang.String |
getOrderNumber()
This method returns the orderNumber.
|
java.util.Vector |
getOrderReleases()
This method returns the Order Releases vector.
|
java.lang.String |
getPackSlipXml()
This method returns the packSlipXml.
|
java.lang.String |
getPickBatchId()
This method returns the pick batch identifier.
|
java.util.HashMap |
getPickSlipData()
This method returns the pack slip data
|
java.lang.String |
getReleaseNumber()
This method returns the releaseNumber.
|
TypedProperty |
getRequestProperties()
This method returns the ihshRequestProperties.
|
java.lang.String |
getShortDescription()
This method returns the shortDescription.
|
java.lang.String |
getSKU()
This method returns the sKU.
|
java.lang.Integer |
getStoreentId()
This method returns the store entity identifier.
|
java.lang.String |
getStoreName()
This method returns the storeName.
|
void |
performExecute()
This method performs the main business logic of the command.
|
void |
reset()
This method resets command state
|
void |
setBaseItemID(java.lang.Long abaseItemID)
This method sets the baseItemID.
|
void |
setCustomerNumber(java.lang.String acustomerNumber)
This method sets the customerNumber.
|
void |
setFfmcenterId(java.lang.Integer newFfmcenterId)
This method sets fulfillment center identifier.
|
void |
setFfmcenterName(java.lang.String affmcenterName)
This method sets the ffmcenterName.
|
void |
setLanguageId(java.lang.Integer newLanguageId)
This method sets language identifier.
|
void |
setLongDescription(java.lang.String alongDescription)
This method sets the longDescription.
|
void |
setOrderDate(java.lang.String anorderDate)
This method sets the orderDate.
|
void |
setOrderedQuantity(java.lang.Double anorderedQuantity)
This method sets the orderedQuantity.
|
void |
setOrderNumber(java.lang.String anorderNumber)
This method sets the orderNumber.
|
void |
setOrderReleases(java.util.Vector anOrderReleases)
This method sets the Vector of Order releases.
|
void |
setPackSlipXml(java.lang.String apackSlipXml)
This method sets the packSlipXml.
|
void |
setPickBatchId(java.lang.String newPickBatchId)
This method sets the pick batch identifier.
|
void |
setReleaseNumber(java.lang.String areleaseNumber)
This method sets the releaseNumber.
|
void |
setRequestProperties(TypedProperty newRequestProperties)
This method sets request properties.
|
void |
setShortDescription(java.lang.String ashortDescription)
This method sets the shortDescription.
|
void |
setSKU(java.lang.String asKU)
This method sets the sKU.
|
void |
setStoreentId(java.lang.Integer newStoreentId)
This method sets the store entity identifier.
|
void |
setStoreName(java.lang.String astoreName)
This method sets the storeName.
|
void |
traverseNestedKit(com.ibm.commerce.order.utils.NestedKitNode node,
int treeLevel,
java.io.PrintWriter output)
This method is recursive call that traverses through the nodes of the NestedKit tree
|
void |
validateParameters()
This method checks the information needed for pick slip generation.
|
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
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 java.lang.Integer getFfmcenterId()
getFfmcenterId
in interface GeneratePackSlipCmd
setFfmcenterId(java.lang.Integer)
public java.lang.Integer getLanguageId()
getLanguageId
in interface GeneratePackSlipCmd
setLanguageId(java.lang.Integer)
public java.lang.String getPickBatchId()
getPickBatchId
in interface GeneratePackSlipCmd
setPickBatchId(java.lang.String)
public java.lang.Integer getStoreentId()
getStoreentId
in interface GeneratePackSlipCmd
setStoreentId(java.lang.Integer)
public void setFfmcenterId(java.lang.Integer newFfmcenterId)
setFfmcenterId
in interface GeneratePackSlipCmd
newFfmcenterId
- fulfillment center idgetFfmcenterId()
public void setLanguageId(java.lang.Integer newLanguageId)
setLanguageId
in interface GeneratePackSlipCmd
newLanguageId
- language idgetLanguageId()
public void setPickBatchId(java.lang.String newPickBatchId)
setPickBatchId
in interface GeneratePackSlipCmd
newPickBatchId
- pick batch idgetPickBatchId()
public void setStoreentId(java.lang.Integer newStoreentId)
setStoreentId
in interface GeneratePackSlipCmd
newStoreentId
- store idgetStoreentId()
public java.util.HashMap getPickSlipData()
getPickSlipData
in interface GeneratePackSlipCmd
public void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
setRequestProperties
in interface GeneratePackSlipCmd
newRequestProperties
- request propertiesECApplicationException
public void validateParameters() throws ECException
StoreId and language id must be set in the command context.
Also checking that fulfillment center id is not null.
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- If mandatory parameters are not set, throw ECApplicationException.public java.util.Vector getOrderReleases()
getOrderReleases
in interface GeneratePackSlipCmd
setOrderReleases(java.util.Vector)
public void setOrderReleases(java.util.Vector anOrderReleases)
setOrderReleases
in interface GeneratePackSlipCmd
vecOrderReleases
- getOrderReleases()
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public java.lang.String generatePackslip(java.lang.String argPickBatchId, java.lang.String argStoreName, java.lang.String argFfmcenterName, java.lang.String argOrderNumber, java.lang.String argReleaseNumber, java.lang.String argCustomerNumber, java.lang.String argOrderDate) throws ECException
InventoryJDBCHelperAccessBean()
.findReleaseShipmodeIdByOrdersIdAndOrdreleaseNum
to get the ship mode id.
InventoryJDBCHelperAccessBean()
.findReleaseAddressIdByOrdersIdAndOrdreleaseNum
.
InventoryJDBCHelperAccessBean()
.findPackslipItemsListByOrdersIdAndOrdreleaseNum
.
InventoryJDBCHelperAccessBean()
.findPackslipComponentsListByOrderItemsId
.
argPickBatchId
- pick batch identifierargStoreName
- store entity nameargFfmcenterName
- fulfillment center nameargOrderNumber
- order numberargReleaseNumber
- release numberargCustomerNumber
- customer numberargOrderDate
- order dateECException
- public java.lang.String generatePackslip() throws ECException
ECException
- for failurespublic java.lang.String getFfmcenterName()
public java.lang.String getStoreName()
public void setFfmcenterName(java.lang.String affmcenterName)
affmcenterName
- the ffmcenterName to setpublic void setStoreName(java.lang.String astoreName)
astoreName
- the storeName to setpublic TypedProperty getRequestProperties()
public java.lang.String getCustomerNumber()
public java.lang.String getOrderDate()
public java.lang.String getOrderNumber()
getOrderNumber
in interface GeneratePackSlipCmd
GeneratePackSlipCmd.setOrderNumber(java.lang.String)
public java.lang.String getPackSlipXml()
getPackSlipXml
in interface GeneratePackSlipCmd
GeneratePackSlipCmd.setPackSlipXml(java.lang.String)
public java.lang.String getReleaseNumber()
getReleaseNumber
in interface GeneratePackSlipCmd
public void setCustomerNumber(java.lang.String acustomerNumber)
acustomerNumber
- the customerNumber to setpublic void setOrderDate(java.lang.String anorderDate)
anorderDate
- the orderDate to setpublic void setOrderNumber(java.lang.String anorderNumber)
setOrderNumber
in interface GeneratePackSlipCmd
anorderNumber
- the orderNumber to setGeneratePackSlipCmd.getOrderNumber()
public void setPackSlipXml(java.lang.String apackSlipXml)
setPackSlipXml
in interface GeneratePackSlipCmd
apackSlipXml
- the packSlipXml to setGeneratePackSlipCmd.getPackSlipXml()
public void setReleaseNumber(java.lang.String areleaseNumber)
areleaseNumber
- the releaseNumber to setpublic java.lang.Long getBaseItemID()
getBaseItemID
in interface GeneratePackSlipCmd
public java.lang.Double getOrderedQuantity()
getOrderedQuantity
in interface GeneratePackSlipCmd
public void setBaseItemID(java.lang.Long abaseItemID)
abaseItemID
- the baseItemID to setpublic void setOrderedQuantity(java.lang.Double anorderedQuantity)
anorderedQuantity
- the orderedQuantity to setpublic java.lang.String getSKU()
getSKU
in interface GeneratePackSlipCmd
GeneratePackSlipCmd.setSKU(java.lang.String)
public void setSKU(java.lang.String asKU)
setSKU
in interface GeneratePackSlipCmd
asKU
- the sKU to setGeneratePackSlipCmd.getSKU()
public java.lang.String getLongDescription()
getLongDescription
in interface GeneratePackSlipCmd
public java.lang.String getShortDescription()
getShortDescription
in interface GeneratePackSlipCmd
public java.lang.String getOrderItemId()
public void setLongDescription(java.lang.String alongDescription)
alongDescription
- the longDescription to setpublic void setShortDescription(java.lang.String ashortDescription)
ashortDescription
- the shortDescription to setpublic void generateXMLForNestedKit(com.ibm.commerce.order.utils.NestedKitNode rootNode, java.io.PrintWriter output) throws ECException
rootNode
- instance of NestedKitNode classoutput
- instance of PrintWriter classECException
public void traverseNestedKit(com.ibm.commerce.order.utils.NestedKitNode node, int treeLevel, java.io.PrintWriter output) throws ECException
node
- instance of NestedKitNode classtreeLevel
- the Integer numberoutput
- instance of PrintWriter classECException
public void generateXMLForKitComponent(com.ibm.commerce.order.utils.DynamicKitComponent component, int treeLevel, java.io.PrintWriter output) throws ECException
component
- instance of DynamicKitComponent classtreeLevel
- the Integer numberoutput
- instance of PrintWriter classECException
public void generateXMLToCloseSubTree(int treeLevel, java.io.PrintWriter output)
treeLevel
- the Integer numberoutput
- instance of PrintWriter class