public class CreateShippingChargeTCCmdImpl extends TaskCommandImpl implements CreateShippingChargeTCCmd
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.
|
Constructor and Description |
---|
CreateShippingChargeTCCmdImpl()
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 ShippingCharge TC.
This method does the following: Verifies 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". |
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 CreateShippingChargeTCCmdImpl()
public void reset()
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
public void setPolicyName(java.lang.String newPolicyName)
public void setPolicyReference(java.lang.Long newPolicyReference)
public void setPolicyType(java.lang.String newPolicyType)
public void setStoreEntity(java.lang.String newStoreEntity)
public void setTradingId(java.lang.Long newTradingId)
public void validateParameters() throws ECException