java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.utf.commands.CreateShippingChargeTCCmdImpl
Creates terms and conditions of type "ShippingCharge".
Behaviour
Exception conditions
StoreEntityAccessBean
TradingAgreementAccessBean
Field Summary | |
---|---|
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. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.utf.commands. CreateShippingChargeTCCmd |
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 | |
---|---|
CreateShippingChargeTCCmdImpl() Default Constructor. |
Method Summary | |
---|---|
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 ShippingCharge TC.
This method does the following:
Verfies the existence of the specified ShippingCharge policy. Composes an XML
element for the ShippingCharge TC that conforms to the Trading DTD. Creates the
ShippingCharge TC using the XML element and the supplied trading agreement
ID. |
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 "ShippingCharge". |
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.String policyName
public java.lang.String policyType
public java.lang.String storeEntity
public java.lang.Long tradingId
public java.lang.Long policyReference
Constructor Detail |
---|
public CreateShippingChargeTCCmdImpl()
Method Detail |
---|
public void reset()
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 class
AbstractECTargetableCommand
ECApplicationException
- If the specified ShippingCharge 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 setPolicyName(java.lang.String newPolicyName)
setPolicyName
in interface
CreateShippingChargeTCCmd
newPolicyName
- The name of the policy.public void setPolicyReference(java.lang.Long newPolicyReference)
public void setPolicyType(java.lang.String newPolicyType)
setPolicyType
in interface
CreateShippingChargeTCCmd
newPolicyType
- The type of the policy.public void setStoreEntity(java.lang.String newStoreEntity)
setStoreEntity
in interface
CreateShippingChargeTCCmd
newStoreEntity
- The Store or StoreGroup ID of the
policy.public void setTradingId(java.lang.Long newTradingId)
setTradingId
in interface
CreateShippingChargeTCCmd
newTradingId
- The trading agreement ID.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
-
ECException
ECCommand#validateParameters()