public class PIEditVoidCmdImpl extends AEDPPIEditCtrlCmdImpl implements PIEditCmd
PIEditCmd
controller command.
The void implementation of commands is used when anyone is intended to disable the command while keeping the single code base. Note that please use the void implementation of all commands once you decide to disable the command implementation.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM Copyright notice field.
|
BILLING_ADDRESS_ID_PROPERTY_NAME, EDP_EDIT_FORCEFLAG, POLICY_ID, PURCHASEORDER_ID_PROPERTY_NAME
defaultCommandClassName, NAME, PAYMENT_INSTRUCTION_ERROR_VIEW
Constructor and Description |
---|
PIEditVoidCmdImpl()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getForcedPaymentInstructionChangeFlag()
This method gets the forced flag that indicates if this request will be forced or not.
|
java.lang.Long |
getPIID()
This method gets the payment instruction ID.
|
boolean |
isAmountEditable()
This method returns the amount editable flag indicating if the amount is dirty or not.
|
boolean |
isPaymentDataEditable()
This method returns the payment data editable flag indicating if the payment data is dirty or not.
|
void |
performExecute()
This method removes the old payment instruction and add a new payment instruction with all new protocol data and/or amount/currency.
|
void |
reset()
This method resets the command fields.
|
void |
setAmountEditable(boolean amountEditable)
This method sets the amount editable flag indicating if the amount is dirty or not.
|
void |
setForcedPaymentInstructionChangeFlag(boolean forcedChange)
This method sets the forced flag indicating if the request will be forced or not.
|
void |
setPaymentDataEditable(boolean paymentDataEditable)
This method sets the payment data editable flag indicating if the payment data is dirty or not.
|
void |
setPIId(java.lang.Long aPIId)
This method sets the payment instruction ID.
|
void |
setRequestProperties(TypedProperty reqProperties)
This method sets the input parameters from the request, which does nothing here.
|
void |
validateParameters()
This method verifies that required input parameters are present and correct, which does nothing here.
|
getAmount, getPaymentMethodID, getPiIdNull, getPolicyId, getProtocolData, getResources, getURL, setAmount, setPaymentMethodID, setPolicyId, setProtocolData, setURL
getLocale, getOrderId, getStoreId, setOrderId
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
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
setProtocolData, setURL
getLocale, getOrderId, setOrderId
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public void setForcedPaymentInstructionChangeFlag(boolean forcedChange)
This method sets the forced flag indicating if the request will be forced or not.
It is up to the caller to set the forceFlag
whether they want to do the a
forced request or not.
setForcedPaymentInstructionChangeFlag
in interface PIEditCmd
forcedChange
- indicates if the request is forced or notpublic boolean getForcedPaymentInstructionChangeFlag()
public java.lang.Long getPIID()
public void setPIId(java.lang.Long aPIId)
public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqProperties
- the input parameters from the requestECException
- if something failspublic void performExecute() throws ECException
Actually it does nothing here.
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- if something failspublic 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 AEDPPIEditCtrlCmdImpl
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- if something input is invalid or missingpublic boolean isAmountEditable()
public boolean isPaymentDataEditable()
public void setAmountEditable(boolean amountEditable)
setAmountEditable
in interface PIEditCmd
amountEditable
- indicates if the amount is dirty or notpublic void setPaymentDataEditable(boolean paymentDataEditable)
setPaymentDataEditable
in interface PIEditCmd
paymentDataEditable
- indicates if the payment data is dirty or not