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, validateParametersexecuteFromCache, 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, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameterspublic java.lang.Long getBuyerPOId()
getBuyerPOId in interface ValidatePONumberCmdpublic 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 ValidatePONumberCmdpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECExceptionpublic 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.Commandreset in class AbstractECTargetableCommandpublic void setAccount(AccountAccessBean abAccount)
setAccount in interface ValidatePONumberCmdabAccount - The AccountAccessBean of the order is associated with.public void setBuyerPONumber(java.lang.String sBPONum)
setBuyerPONumber in interface ValidatePONumberCmdsBPONum - 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 ValidatePONumberCmdcreateFlag - 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 ValidatePONumberCmdsEVN - A String that specifies the Error View name.ValidatePONumberCmd.ERRTASK_NAMEpublic void setOrder(OrderAccessBean ab)
setOrder in interface ValidatePONumberCmdab - The OrderAccessBean of the Order.