java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.utf.commands.CreateReturnChargeTCCmdImpl
Creates terms and conditions of type "ReturnCharge".
Behaviour
Exception conditions
BusinessPolicyAccessBean
StoreEntityAccessBean
TradingAgreementAccessBean
Field Summary | |
---|---|
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. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.utf.commands. CreateReturnChargeTCCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CreateReturnChargeTCCmdImpl() Default Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public CreateReturnChargeTCCmdImpl()
Method Detail |
---|
public void reset()
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 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).
If the specified ReturnApproval policy does not exist for the specified store
entity or its store group(in case the store entity is a store).
If an application error occurs while creating the TC.
ECSystemException
- If a system error occurs while creating the
TC.ECException
ECCommand#performExecute()
public void setReturnApprovalPolicyName(java.lang.String newReturnApprovalPolicyName)
setReturnApprovalPolicyName
in interface
CreateReturnChargeTCCmd
newReturnApprovalPolicyName
- The name of the ReturnApproval
policy.public void setReturnApprovalPolicyType(java.lang.String newReturnApprovalPolicyType)
setReturnApprovalPolicyType
in interface
CreateReturnChargeTCCmd
newReturnApprovalPolicyType
- The type of the ReturnApproval
policy.public void setReturnApprovalStoreEntity(java.lang.String newReturnApprovalStoreEntity)
setReturnApprovalStoreEntity
in interface
CreateReturnChargeTCCmd
newReturnApprovalStoreEntity
- The Store or StoreGroup ID of
the ReturnApproval policy.public void setReturnChargePolicyName(java.lang.String newReturnChargePolicyName)
setReturnChargePolicyName
in interface
CreateReturnChargeTCCmd
newReturnChargePolicyName
- The name of the ReturnCharge
policy.public void setReturnChargePolicyType(java.lang.String newReturnChargePolicyType)
setReturnChargePolicyType
in interface
CreateReturnChargeTCCmd
newReturnChargePolicyType
- The type of the ReturnCharge
policy.public void setReturnChargeStoreEntity(java.lang.String newReturnChargeStoreEntity)
setReturnChargeStoreEntity
in interface
CreateReturnChargeTCCmd
newReturnChargeStoreEntity
- 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()