public class PIRemoveCmdImpl extends AEDPPIEditCtrlCmdImpl implements PIRemoveCmd
This is the default implementation of the PIRemoveCmd
controller
command.
Name | XPath | Description |
---|---|---|
orderId |
/XML/orderId |
The identifier of the order for which the payment method is to be changed. Mandatory. |
URL |
/XML/URL |
The URL to be called when the command completes successfully. Mandatory. |
piId |
/XML/piId |
The numeric identifier (big integer) of the payment instruction to remove. The piId can be obtained from the EDPPaymentInstructionsDataBean data bean and represents the combination of the payment method, payment amount, and any protocol data. This parameter can be repeated if there are more payment instructions to be removed in this request. |
errorViewName |
/XML/errorViewName |
The view name which is redirected to when the execution fails. If this parameter is provided, the default error view name is PaymentInstructionErrorView. |
EDPPaymentInstruction
for each PI to be removed with the ID to cancel attribute settings, and adds it to a list of PIs to delete. EditCmd
task command with the orderId, the list of PIs to delete, and the total order amount. EditCmd
,
Serialized FormModifier 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 |
---|
PIRemoveCmdImpl()
The default Constructor.
|
Modifier and Type | Method and Description |
---|---|
AccessVector |
getResources()
This method returns the vector of resources accessed by this command, which uses the order access bean for resource access control.
|
void |
performExecute()
This method contains the actual business logic of the command.
|
void |
reset()
This method resets the command fields.
|
void |
setPIIDs(java.lang.Long[] aPIIDs)
This method sets the list of IDs of payment instructions to be canceled.
|
void |
setRequestProperties(TypedProperty reqProperties)
This method sets the input parameters from the request.
|
void |
validateParameters()
This method verifies input parameters.
|
getAmount, getPaymentMethodID, getPiIdNull, getPolicyId, getProtocolData, 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
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, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public void setPIIDs(java.lang.Long[] aPIIDs)
This method sets the list of IDs of payment instructions to be canceled.
setPIIDs
in interface PIRemoveCmd
aPIIDs
- the list of payment instruction IDs to be canceled.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
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- for error conditionspublic 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 some required parameters are missing or invalidpublic AccessVector getResources() throws ECException
This method returns the vector of resources accessed by this command, which uses the order access bean for resource access control.
getResources
in interface ECCommand
getResources
in class AEDPPIEditCtrlCmdImpl
ECException
- in the case of a failure