com.ibm.commerce.payment.commands
Interface ValidatePONumberCmd

All Superinterfaces:
ECCommand, TaskCommand
All Known Implementing Classes:
ValidatePONumberCmdImpl

public interface ValidatePONumberCmd
extends TaskCommand

Perform the checks on the specified buyerPONumber.

Parameter:
Parameter Name Type Descriptions
order OrderAccessBean The Order Access Bean
account AccountAccessBean The Account AccessBean representing the common account object of all the Trading Agreements specified by the OrderItems of the Order.
buyerPONumber String The Buyer Purchase Order Number
errorViewName String Optional error view name passed in by the Caller.
createFlag boolean Flag to indicate if the command may create BuyerPurchaseOrder object as a by-product of the validation. By default, this flag is set to true.


Behavior:

Returned Parameters: Error View Name: ErrorCodes:


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String defaultCommandClassName
          The default implementation class.
static java.lang.String ERRTASK_NAME
          Name of the Error View for this command.
static java.lang.String NAME
           
 
Method Summary
 java.lang.Long getBuyerPOId()
          Returns Buyer Purchase Order reference number
 java.lang.Integer getBuyerPOType()
          Returns Buyer Purchase Order Type
 void setAccount(AccountAccessBean abAccount)
          Sets the abAccount property of the command.
 void setBuyerPONumber(java.lang.String sBPONum)
          Sets the sBPONum property of the command.
 void setCreateFlag(boolean createFlag)
          Sets the createFlag property of the command.
 void setErrorViewName(java.lang.String sEVN)
          Optional error view name passed in by the Caller.
 void setOrder(OrderAccessBean abOrder)
          Sets the order property of the command.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class.

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME
Name of the Error View for this command. The constant value of this field is "ValidatePONumberErrorView".

NAME

public static final java.lang.String NAME
Method Detail

getBuyerPOId

public java.lang.Long getBuyerPOId()
Returns Buyer Purchase Order reference number
Returns:
a Long containing reference number of the Buyer Purchase Order, return null if unknown

getBuyerPOType

public java.lang.Integer getBuyerPOType()
Returns Buyer Purchase Order Type
Returns:
a Integer containing type of the Buyer Purchase Order, return null if unknown

setAccount

public void setAccount(AccountAccessBean abAccount)
Sets the abAccount property of the command.
Parameters:
abAccount - the AccountAccessBean of the Order is associated with

setBuyerPONumber

public void setBuyerPONumber(java.lang.String sBPONum)
Sets the sBPONum property of the command.
Parameters:
sBPONum - the actual Buyer Purchase Order Number input from controller command.

setCreateFlag

public void setCreateFlag(boolean createFlag)
Sets the createFlag property of the command. By default, the flag is set to true and the command will create new BuyerPurchaseOrder object for a new Individual PO after verifying that an Individual PO is allowed. Set the flag to false if you do not want the command to create any BuyerPurchaseOrder object as a by-product of the Validation.

setErrorViewName

public void setErrorViewName(java.lang.String sEVN)
Optional error view name passed in by the Caller.

setOrder

public void setOrder(OrderAccessBean abOrder)
Sets the order property of the command.
Parameters:
abOrder - the OrderAccessBean of the Order.