public class ServiceAdjustShippingChargesCmdImpl extends OrderBaseCmdImpl implements ServiceAdjustShippingChargesCmd
ServiceAdjustShippingChargesCmd
controller command.
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
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ServiceAdjustShippingChargesCmdImpl() |
Modifier and Type | Method and Description |
---|---|
AccessVector |
getResources()
Gets the access vector accessed by this command.
|
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.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, 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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
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
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
aRequestProperties
- request properties.ECApplicationException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void prepareOrder(java.lang.Long orderId) throws ECException
orderId
- ECException
public void setOrderId(java.lang.String astrOrderId)
setOrderId
in interface ServiceAdjustShippingChargesCmd
astrOrderId
- public void setShipModeId(java.util.Hashtable ahshShipModeId)
setShipModeId
in interface ServiceAdjustShippingChargesCmd
ahshShipModeId
- Contains a list of shipMode ids. The key is the enumeration group (Integer)
and the value is the shipMode id (String). For example, if you have input parameters: shipModeId_1=123&shipModeId_2=234&shipModeId=345,
the hashtable can be constructed by:
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)
setProcessFlag
in interface ServiceAdjustShippingChargesCmd
ahshProcessFlag
- Contains a list of processFlag ids. The key is the enumeration group (Integer)
and the value is the processFlag id (String). For example, if you have input parameters: processFlag_1=123&processFlag_2=234&processFlag=345,
the hashtable can be constructed by:
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)
setAdjustmentPercentageValue
in interface ServiceAdjustShippingChargesCmd
ahshAdjustmentPercentageValue
- Contains a list of adjustmentPercentage values. The key is the enumeration group (Integer)
and the value is the adjustmentPercentage value (String). For example, if you have input parameters: adjustmentPercentageValue_1=123&adjustmentPercentageValue_2=234,
the hashtable can be constructed by:
ahshAdjustmentPercentageValue(new Integer(1), new String("123")); ahshAdjustmentPercentageValue(new Integer(2), new String("234"));
public void setOverrideReasonCode(java.util.Hashtable ahshOverrideReasonCode)
setOverrideReasonCode
in interface ServiceAdjustShippingChargesCmd
ahshOverrideReasonCode
- Contains a list of overrideReasonCode. The key is the enumeration group (Integer)
and the value is the overrideReasonCode (String). For example, if you have input parameters: overrideReasonCode_1=123&overrideReasonCode_2=234,
the hashtable can be constructed by:
ahshOverrideReasonCode(new Integer(1), new String("123")); ahshOverrideReasonCode(new Integer(2), new String("234"));
public void setRemark(java.util.Hashtable ahshRemark)
setRemark
in interface ServiceAdjustShippingChargesCmd
ahshRemark
- Contains a list of remark values. The key is the enumeration group (Integer)
and the value is the remark (String). For example, if you have input parameters: remark_1=123&remark_2=234,
the hashtable can be constructed by:
ahshRemark(new Integer(1), new String("123")); ahshRemark(new Integer(2), new String("234"));
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
- If the resource can not be retrieved.