public class ValidatePONumberCmdImpl extends TaskCommandImpl implements ValidatePONumberCmd
ValidatePONumberCmd
task command.
AccountAccessBean
BuyerPurchaseOrderAccessBean
OrderAccessBean
TermConditionAccessBean
POTCIndividualAccessBean
defaultCommandClassName, ERRTASK_NAME, NAME
Constructor and Description |
---|
ValidatePONumberCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getBuyerPOId()
This method returns the internal ID of the BuyerPO record if the specified buyer purchase order number is valid.
|
java.lang.Integer |
getBuyerPOType()
This method returns the Buyer Purchase Order type referenced by the specified Buyer Purchase Order number.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
reset()
This method resets the instance variables of the command.
|
void |
setAccount(AccountAccessBean abAccount)
This method sets the Account property of the command.
|
void |
setBuyerPONumber(java.lang.String sBPONum)
This method sets the buyerPONumber property of the command.
|
void |
setCreateFlag(boolean createFlag)
This method sets the createFlag property of the command.
|
void |
setErrorViewName(java.lang.String sEVN)
This method sets the error view to be used to report error.
|
void |
setOrder(OrderAccessBean ab)
This method sets the order property of the command.
|
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, validateParameters
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, validateParameters
public java.lang.Long getBuyerPOId()
getBuyerPOId
in interface ValidatePONumberCmd
public java.lang.Integer getBuyerPOType()
The following buyer purchase order types are defined:
PaymentConstants.BUYERPOTYPE_BLANKETPO
- blanket purchase order
PaymentConstants.BUYERPOTYPE_LIMITEDPO
- limited purchase order
PaymentConstants.BUYERPOTYPE_SINGLEUSEPO
- single-use individual purchase order
PaymentConstants.BUYERPOTYPE_MULTIPLEUSEPO
- multi-use individual purchase order
getBuyerPOType
in interface ValidatePONumberCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
This is useful if the command instance is to be called multiple times with different command parameters.
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setAccount(AccountAccessBean abAccount)
setAccount
in interface ValidatePONumberCmd
abAccount
- The AccountAccessBean of the order is associated with.public void setBuyerPONumber(java.lang.String sBPONum)
setBuyerPONumber
in interface ValidatePONumberCmd
sBPONum
- A String that specifies the actual buyer purchase order number specified by the customer for the purchase.public void setCreateFlag(boolean createFlag)
setCreateFlag
in interface ValidatePONumberCmd
createFlag
- A boolean that indicates if the command will create a new BuyerPO record if needed.public void setErrorViewName(java.lang.String sEVN)
setErrorViewName
in interface ValidatePONumberCmd
sEVN
- A String that specifies the Error View name.ValidatePONumberCmd.ERRTASK_NAME
public void setOrder(OrderAccessBean ab)
setOrder
in interface ValidatePONumberCmd
ab
- The OrderAccessBean of the Order.