public class EditVoidCmdImpl extends AEDPPaymentTaskCmdImpl implements EditCmd
This task command should be called when payment instructions are modified. This applies to amount changes or payment protocol data changes. This void implementation will do nothing.
defaultCommandClassName, NAME
Constructor and Description |
---|
EditVoidCmdImpl() |
Modifier and Type | Method and Description |
---|---|
AccountAccessBean |
getAccount()
This method returns the AccountAccessBean representing the business account if an
account ID is present.
|
java.lang.Long |
getAccountId()
This method returns the business account ID if one is specified by the trading agreements used by the
order items of the order being processed.
|
EDPEditResults |
getEditResults()
This method obtains the edit results.
|
OrderAccessBean |
getOrderAccessBean()
This method returns the order access bean associated with this command.
|
java.math.BigDecimal |
getOrderAmount()
This method returns the total order amount.
|
boolean |
isReadyToCallExecute()
This method is called by the Command Framework to check if all basic mandatory parameters
have been set for this command.
|
void |
performExecute()
This method executes the business logic of this command implementation.Does nothing.
|
void |
reset()
This method resets the command fields.
|
void |
setAccountId(java.lang.Long n)
This method sets the business account ID.
|
void |
setEditResults(EDPEditResults localEditResults)
This method sets the edit results.
|
void |
setForcedPaymentInstructionChangeFlag(boolean forcedChange)
Void implementation
|
void |
setOrderAmount(java.math.BigDecimal paramOrderAmount)
This method sets the total order amount.
|
void |
setPaymentInstructions(java.util.ArrayList pis)
Void implementation
|
void |
setPONumber(java.lang.String aPONumber)
Void implementation
|
void |
systemEditableAddOrderAmount(java.lang.Long edpOrderId,
java.math.BigDecimal addToPIAmount)
Void implementation
|
getErrorMessageMap, getStoreId, insertActionListToActionDetailHash, insertActionListToEditActionDetailHash, isBgJobInWorking, isProcessBGExecutableInFG, setBgJobStatusInDb, setErrorMessageMap, setStoreId, toString, validateInsideProcessFG
getCurrency, getEdpException, getEDPOrderId, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, getStatus, isIdempotent, isProcessBGTasksRequired, resetServices, setBGProcessFinished, setEdpException, setEDPOrderId, setEDPResults, setOrderChannel, setOrderId, setProcessBGTasksRequired, setStatus
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, 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, wait, wait, wait
getCurrency, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, setEDPResults, setOrderId
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 AccountAccessBean getAccount()
This method returns the AccountAccessBean representing the business account if an
account ID is present. null
otherwise.
This method will first check if the local variable iabAccount
is set.
If not set, it will attempt to retrieve the AccountAccessBean
using the specified business account ID.
AccountAccessBean
if it can be retrieved; null
otherwise.public void setAccountId(java.lang.Long n)
This method sets the business account ID.
This is the common account ID if one is specified by the trading agreements used by the order items of the order being processed. If there is no common account ID, this method should not be called at all.
n
- A Long that specifies the Account ID.public java.lang.Long getAccountId()
This method returns the business account ID if one is specified by the trading agreements used by the order items of the order being processed.
If there is no business account associated with any of the trading agreements,
null
is returned.
null
otherwise.public final void setEditResults(EDPEditResults localEditResults)
setEditResults
in interface EditCmd
localEditResults
- An EDPEditResults that represents the edit results to be setpublic final EDPEditResults getEditResults()
getEditResults
in interface EditCmd
public OrderAccessBean getOrderAccessBean()
This method returns the order access bean associated with this command.
It checks if the local variable is set. If not, it will attempt to get it by creating a new access bean.
OrderAccessBean
that corresponds to the order associated with this
requestpublic void setOrderAmount(java.math.BigDecimal paramOrderAmount)
setOrderAmount
in interface EditCmd
paramOrderAmount
- A BigDecimal that specifies the total order amount.public java.math.BigDecimal getOrderAmount()
null
may be returned.public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
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 void reset()
This method resets the command fields.
After this method is invoked, and proper attributes are set, the command can be executed again.
reset
in interface com.ibm.websphere.command.Command
reset
in class AEDPPaymentTaskCmdImpl
public void setForcedPaymentInstructionChangeFlag(boolean forcedChange)
setForcedPaymentInstructionChangeFlag
in interface EditCmd
forcedChange
- A boolean that indicates if the if the payment instruction edit operation
is forced or not.public void setPONumber(java.lang.String aPONumber)
setPONumber
in interface EditCmd
aPONumber
- A String specifies the purchase order number specified by the buyer.public void setPaymentInstructions(java.util.ArrayList pis)
setPaymentInstructions
in interface EditCmd
pis
- An ArrayList that represents the pis.public void systemEditableAddOrderAmount(java.lang.Long edpOrderId, java.math.BigDecimal addToPIAmount) throws EDPException, ECException
systemEditableAddOrderAmount
in interface EditCmd
edpOrderId
- A Long that specifies the edpOrderId.addToPIAmount
- A Long that specifies the amount that will be added to the pi.EDPException
ECException