public class CreateReturnChargeTCCmdImpl extends TaskCommandImpl implements CreateReturnChargeTCCmd
Behaviour
Exception conditions
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
java.lang.String |
returnApprovalPolicyName
return approval policy name.
|
java.lang.String |
returnApprovalPolicyType
return approval policy type.
|
java.lang.String |
returnApprovalStoreEntity
return approval store entity.
|
java.lang.String |
returnChargePolicyName
return charge policy name.
|
java.lang.String |
returnChargePolicyType
return charge policy type.
|
java.lang.String |
returnChargeStoreEntity
return charge store entity.
|
java.lang.Long |
tradingId
Trading ID.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
CreateReturnChargeTCCmdImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getReturnApprovalPolicyName()
Retrieves the ReturnApproval policy name.
|
java.lang.String |
getReturnApprovalPolicyType()
Retrieves the ReturnApproval policy type.
|
java.lang.String |
getReturnApprovalStoreEntity()
Retrieves the store or storegroup ID for the ReturnApproval policy.
|
java.lang.String |
getReturnChargePolicyName()
Retrieves the ReturnCharge policy name.
|
java.lang.String |
getReturnChargePolicyType()
Retrieves the ReturnCharge policy type.
|
java.lang.String |
getReturnChargeStoreEntity()
Retrieves the store or storegroup ID for the ReturnCharge policy.
|
java.lang.Long |
getTradingId()
Retrieves the trading agreement ID.
|
void |
performExecute()
Creates the ReturnCharge TC.
|
void |
reset()
Reset the command.
|
void |
setReturnApprovalPolicyName(java.lang.String newReturnApprovalPolicyName)
Stores the incoming value for the ReturnApproval policy name.
|
void |
setReturnApprovalPolicyType(java.lang.String newReturnApprovalPolicyType)
Stores the incoming value for the ReturnApproval policy type.
|
void |
setReturnApprovalStoreEntity(java.lang.String newReturnApprovalStoreEntity)
Stores the store entity for which the ReturnApproval policy has been specified.
|
void |
setReturnChargePolicyName(java.lang.String newReturnChargePolicyName)
Stores the incoming value for the ReturnCharge policy name.
|
void |
setReturnChargePolicyType(java.lang.String newReturnChargePolicyType)
Stores the incoming value for the ReturnCharge policy type.
|
void |
setReturnChargeStoreEntity(java.lang.String newReturnChargeStoreEntity)
Stores the store entity for which the ReturnCharge 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 ReturnCharge policy name has been provided. Verifies that a ReturnCharge policy type has been provided. Verifies that a store entity ID has been provided for the ReturnCharge policy. Verifies that a ReturnApproval policy name has been provided. Verifies that a ReturnApproval policy type has been provided. Verifies that a store entity ID has been provided for the ReturnApproval policy. |
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.Long tradingId
public java.lang.String returnApprovalPolicyName
public java.lang.String returnApprovalPolicyType
public java.lang.String returnApprovalStoreEntity
public java.lang.String returnChargePolicyName
public java.lang.String returnChargePolicyType
public java.lang.String returnChargeStoreEntity
public CreateReturnChargeTCCmdImpl()
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public java.lang.String getReturnApprovalPolicyName()
public java.lang.String getReturnApprovalPolicyType()
public java.lang.String getReturnApprovalStoreEntity()
public java.lang.String getReturnChargePolicyName()
public java.lang.String getReturnChargePolicyType()
public java.lang.String getReturnChargeStoreEntity()
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 ReturnCharge 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 setReturnApprovalPolicyName(java.lang.String newReturnApprovalPolicyName)
setReturnApprovalPolicyName
in interface CreateReturnChargeTCCmd
newPolicyName
- The name of the ReturnApproval policy.public void setReturnApprovalPolicyType(java.lang.String newReturnApprovalPolicyType)
setReturnApprovalPolicyType
in interface CreateReturnChargeTCCmd
newPolicyType
- The type of the ReturnApproval policy.public void setReturnApprovalStoreEntity(java.lang.String newReturnApprovalStoreEntity)
setReturnApprovalStoreEntity
in interface CreateReturnChargeTCCmd
newStoreEntity
- The Store or StoreGroup ID of the ReturnApproval policy.public void setReturnChargePolicyName(java.lang.String newReturnChargePolicyName)
setReturnChargePolicyName
in interface CreateReturnChargeTCCmd
newPolicyName
- The name of the ReturnCharge policy.public void setReturnChargePolicyType(java.lang.String newReturnChargePolicyType)
setReturnChargePolicyType
in interface CreateReturnChargeTCCmd
newPolicyType
- The type of the ReturnCharge policy.public void setReturnChargeStoreEntity(java.lang.String newReturnChargeStoreEntity)
setReturnChargeStoreEntity
in interface CreateReturnChargeTCCmd
newStoreEntity
- The Store or StoreGroup ID of the ReturnCharge policy.public void setTradingId(java.lang.Long newTradingId)
setTradingId
in interface CreateReturnChargeTCCmd
newTradingId
- The trading agreement ID.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- ECException
ECCommand#validateParameters()