public class ServiceAdjustShippingChargesCmdImpl extends OrderBaseCmdImpl implements ServiceAdjustShippingChargesCmd
Name | Description |
---|---|
AdjustmentPercentageValue | Contains a list of AdjustmentPercentage values. [Optional]. |
orderId | The Order id. [Mandatory]. |
overrideReasonCode | Contains a list of overrideReasonCode. [Optional]. |
processFlag | Contains a list of processFlag ids. [Mandatory]. |
remark | Contains a list of remark values. [Mandatory]. |
shipModeId | Contains a list of shipMode ids. [Mandatory]. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The IBM copyright.
|
static java.lang.Integer | PROCESS_FLAG_CREATE
Constant that indicates to this command to create an adjustment
|
static java.lang.Integer | PROCESS_FLAG_DELETE
Constant that indicates to this command to delete an adjustment
|
static java.lang.Integer | PROCESS_FLAG_UPDATE
Constant that indicates to this command to update an adjustment
|
Constructor and Description |
---|
ServiceAdjustShippingChargesCmdImpl() |
Modifier and Type | Method and Description |
---|---|
protected void | checkBlockOrUnblock()
Check if the order need to do block or unblock operation
|
protected java.lang.String | getAdjustmentPercentageValue(java.lang.Integer i)
Gets the input parameter adjustmentPercentageValue with enumeration group i.
|
protected java.lang.String | getOverrideReasonCode(java.lang.Integer i)
Gets the input parameter overrideReasonCode with enumeration group i.
|
protected java.lang.String | getProcessFlag(java.lang.Integer i)
Gets the input parameter processFlag with enumeration group i.
|
protected java.lang.String | getRemark(java.lang.Integer i)
Gets the input parameter remark with enumeration group i.
|
AccessVector | getResources()
Gets the access vector accessed by this command.
|
protected java.lang.String | getShipModeId(java.lang.Integer i)
Gets the input parameter shipModeId with enumeration group i.
|
protected boolean | isRoleLimitExceed(java.lang.Long aServiceRepId, java.lang.Integer aShipModeId, java.math.BigDecimal aAdjustmentPercentageRange)
To see if the TSR/CSR exceeds his/her role limits on specific shipMode.
|
void | performExecute()
Creates/Updates/Deletes Shipping Adjustments for a shipping mode.
|
void | prepareOrder(java.lang.Long orderId)
Prepare the order specified.
|
void | setAdjustmentPercentageValue(java.util.Hashtable ahshAdjustmentPercentageValue)
Set the adjustmentPercentageValue parameter This parameter is optional, if it is not provided, then delete an existing adjustment.
|
void | setOrderId(java.lang.String astrOrderId)
Set the orderId parameter
|
void | setOverrideReasonCode(java.util.Hashtable ahshOverrideReasonCode)
Set the overrideReasonCode parameter This parameter is optional.
|
void | setProcessFlag(java.util.Hashtable ahshProcessFlag)
Set the processFlag parameter
|
void | setRemark(java.util.Hashtable ahshRemark)
Set the remark parameter This parameter is optional.
|
void | setRequestProperties(TypedProperty aRequestProperties)
Extracts input parameters from the specified request properties.
|
void | setShipModeId(java.util.Hashtable ahshShipModeId)
Set the shipModeId parameter
|
void | validateParameters()
Performs server side parameter checking.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.Integer PROCESS_FLAG_CREATE
public static final java.lang.Integer PROCESS_FLAG_UPDATE
public static final java.lang.Integer PROCESS_FLAG_DELETE
public void setRequestProperties(TypedProperty aRequestProperties) throws ECApplicationException
public void validateParameters() throws ECException
public void performExecute() throws ECException
public void prepareOrder(java.lang.Long orderId) throws ECException
protected boolean isRoleLimitExceed(java.lang.Long aServiceRepId, java.lang.Integer aShipModeId, java.math.BigDecimal aAdjustmentPercentageRange) throws ECException
protected void checkBlockOrUnblock() throws ECException
protected java.lang.String getShipModeId(java.lang.Integer i)
protected java.lang.String getProcessFlag(java.lang.Integer i)
protected java.lang.String getAdjustmentPercentageValue(java.lang.Integer i)
protected java.lang.String getOverrideReasonCode(java.lang.Integer i)
protected java.lang.String getRemark(java.lang.Integer i)
public void setOrderId(java.lang.String astrOrderId)
public void setShipModeId(java.util.Hashtable ahshShipModeId)
ahshShipModeId.put(new Integer(1), new String("123")); ahshShipModeId.put(new Integer(2), new String("234")); ahshShipModeId.put(new Integer(3), new String("345"));
public void setProcessFlag(java.util.Hashtable ahshProcessFlag)
ahshProcessFlag.put(new Integer(1), new String("1")); ahshProcessFlag.put(new Integer(2), new String("2")); ahshProcessFlag.put(new Integer(3), new String("3"));
public void setAdjustmentPercentageValue(java.util.Hashtable ahshAdjustmentPercentageValue)
ahshAdjustmentPercentageValue(new Integer(1), new String("123")); ahshAdjustmentPercentageValue(new Integer(2), new String("234"));
public void setOverrideReasonCode(java.util.Hashtable ahshOverrideReasonCode)
ahshOverrideReasonCode(new Integer(1), new String("123")); ahshOverrideReasonCode(new Integer(2), new String("234"));
public void setRemark(java.util.Hashtable ahshRemark)
ahshRemark(new Integer(1), new String("123")); ahshRemark(new Integer(2), new String("234"));
public AccessVector getResources() throws ECException