|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.inventory.commands.MakeReceiptAvailableCmdImpl
Make a receipt available to the distribution arrangement.
Field Summary | |
static java.lang.String |
COPYRIGHT
The internal copyright field. |
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.inventory.commands.MakeReceiptAvailableCmd |
defaultCommandClassName, NAME |
Constructor Summary | |
MakeReceiptAvailableCmdImpl()
|
Method Summary | |
java.lang.Long |
getDistArrangId()
Return distribution arrangement identifier. |
java.lang.Long |
getItemspcId()
Return item identifier. |
java.lang.Long |
getRcptAvailId()
Return available receipt identifier. |
java.lang.Long |
getReceiptId()
Return the receipt identifier. |
boolean |
isReadyToCallExecute()
This command is ready to be executed. |
void |
performExecute()
This method will make a receipt available to the distribution arrangement. |
void |
reset()
This method resets the command local variable. |
void |
setDistArrangId(java.lang.Long newDistArrangId)
Set distribution arrangement identifier. |
void |
setItemspcId(java.lang.Long newItemspcId)
Set item identifier. |
void |
setRcptAvailId(java.lang.Long newRcptAvailId)
Set available receipt identifier. |
void |
setReceiptId(java.lang.Long newReceiptId)
Set the receipt identifier. |
void |
setRequestProperties(TypedProperty newRequestProperties)
Set request properties. |
void |
validateParameters()
This method checks the information needed for making a receipt available. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Field Detail |
public static final java.lang.String COPYRIGHT
Constructor Detail |
public MakeReceiptAvailableCmdImpl()
Method Detail |
public java.lang.Long getDistArrangId()
getDistArrangId
in interface MakeReceiptAvailableCmd
public java.lang.Long getItemspcId()
getItemspcId
in interface MakeReceiptAvailableCmd
public java.lang.Long getRcptAvailId()
getRcptAvailId
in interface MakeReceiptAvailableCmd
public java.lang.Long getReceiptId()
getReceiptId
in interface MakeReceiptAvailableCmd
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class AbstractECCommand
com.ibm.commerce.command.AbstractECCommand
public void performExecute() throws ECException
This is done by inserting a row into rcptavail table associating the receipt with the distribution arrangement.
The distribution arrangement will have a picking method of either LIFO or FIFO. If the picking method of the distribution arrangment is FIFO, the precedence of the rcptavail row will be MAX(precedence)+1. If the picking method of the distribution arrangment is LIFO, the precedence of the rcptavail row will be MIN(precedence)-1. If there are no rows in the rcptavail table, the precedence of the rcptavail row will be 1.
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
ECException
- public void reset()
reset
in class AbstractECCommand
public void setDistArrangId(java.lang.Long newDistArrangId)
setDistArrangId
in interface MakeReceiptAvailableCmd
newDistArrangId
- java.lang.Longpublic void setItemspcId(java.lang.Long newItemspcId)
setItemspcId
in interface MakeReceiptAvailableCmd
newItemspcId
- java.lang.Longpublic void setRcptAvailId(java.lang.Long newRcptAvailId)
setRcptAvailId
in interface MakeReceiptAvailableCmd
newRcptAvailId
- java.lang.Longpublic void setReceiptId(java.lang.Long newReceiptId)
setReceiptId
in interface MakeReceiptAvailableCmd
newReceiptId
- java.lang.Longpublic void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
setRequestProperties
in interface MakeReceiptAvailableCmd
reqParms
- com.ibm.commerce.datatype.TypedPropertypublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
com.ibm.commerce.exception.ECApplicationException.
- If mandatory
parameters are not passed in, throw ECApplicationException.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |