public class CreateReturnPaymentTCCmdImpl extends TaskCommandImpl implements CreateReturnPaymentTCCmd
Behaviour
Exception conditions
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
java.lang.String |
policyName
Policy name.
|
java.lang.Long |
policyReference
Policy reference.
|
java.lang.String |
policyType
Policy type.
|
java.lang.String |
storeEntity
Store entity.
|
java.lang.Long |
tradingId
Trading ID.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
CreateReturnPaymentTCCmdImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPolicyName()
Retrieves the policy name.
|
java.lang.Long |
getPolicyReference()
Retrieves the policy ID.
|
java.lang.String |
getPolicyType()
Retrieves the policy type.
|
java.lang.String |
getStoreEntity()
Retrieves the store or storegroup ID.
|
java.lang.Long |
getTradingId()
Retrieves the trading agreement ID.
|
void |
performExecute()
Creates the RefundPaymentMethod TC.
|
void |
reset()
Reset the command.
|
void |
setPolicyName(java.lang.String newPolicyName)
Stores the incoming value for the policy name.
|
void |
setPolicyReference(java.lang.Long newPolicyReference)
Stores the ID of the policy.
|
void |
setPolicyType(java.lang.String newPolicyType)
Stores the incoming value for the policy type.
|
void |
setStoreEntity(java.lang.String newStoreEntity)
Stores the store entity for which the policy has been specified.
|
void |
setTradingId(java.lang.Long newTradingId)
Stores the trading agreement ID.
|
void |
validateParameters()
This method does the following:
Verifies that a trading agreement ID has been provided. Verifies that a policy name has been provided. Verifies that a policy type has been provided. Verifies that a store entity ID has been provided for the policy. Verifies that the specified policy type is "ReturnPayment". |
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
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
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
public static final java.lang.String COPYRIGHT
public java.lang.String policyName
public java.lang.String policyType
public java.lang.String storeEntity
public java.lang.Long tradingId
public java.lang.Long policyReference
public CreateReturnPaymentTCCmdImpl()
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public java.lang.String getPolicyName()
public java.lang.Long getPolicyReference()
public java.lang.String getPolicyType()
public java.lang.String getStoreEntity()
public java.lang.Long getTradingId()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECApplicationException
- If the specified ReturnPayment policy does not exist for the specified store entity or its store group(in case the store entity is a store).ECSystemException
- If a system error occurs while creating the TC.ECException
ECCommand#performExecute()
public void setPolicyName(java.lang.String newPolicyName)
setPolicyName
in interface CreateReturnPaymentTCCmd
newPolicyName
- The name of the policy.public void setPolicyReference(java.lang.Long newPolicyReference)
newPolicyType
- The ID of the policy.public void setPolicyType(java.lang.String newPolicyType)
setPolicyType
in interface CreateReturnPaymentTCCmd
newPolicyType
- The type of the policy.public void setStoreEntity(java.lang.String newStoreEntity)
setStoreEntity
in interface CreateReturnPaymentTCCmd
newStoreEntity
- The Store or StoreGroup ID of the policy.public void setTradingId(java.lang.Long newTradingId)
setTradingId
in interface CreateReturnPaymentTCCmd
newTradingId
- The trading agreement ID.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- ECException
ECCommand#validateParameters()