public class GetUOMCodePolicyCmdImpl extends BusinessPolicyCommandImpl implements GetUOMCodePolicyCmd
defaultCommandClassName, NAME| Constructor and Description |
|---|
GetUOMCodePolicyCmdImpl()
Constructor for GetUOMCodePolicyCmdImpl
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMappedUOMCode()
Get the mapped UOM code.
|
void |
performExecute()
Execute the command.
|
void |
reset()
Resets the command.
|
void |
setMappingDirection(boolean theMappingDirection)
(Optional) Set the mapping direction.
|
void |
setRequestProperties(TypedProperty requestProperties)
Set the request properties for the policy.
|
void |
setUOMCode(java.lang.String theUOMCode)
Set the UOM code to be mapped.
|
void |
setUOMStandard(java.lang.String theUOMStandard)
(Optional) Set the external UOM standard.
|
void |
validateParameters()
Check mandatory parameters.
|
getPolicyId, getRequestProperties, setPolicyIdaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPolicyId, getRequestProperties, setPolicyIdexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic GetUOMCodePolicyCmdImpl()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - Raised with message _ERR_CREATE_EXCEPTION if there is a javax.ejb.CreateException,
_ERR_FINDER_EXCEPTION if there is a javax.ejb.FinderException, _ERR_NAMING_EXCEPTION if there is a javax.naming.NamingException,
_ERR_REMOTE_EXCEPTION if there is a java.rmi.RemoteException.EXSystemException - with message _ERR_QTYUNITMAP_RECORD_MISSING_FOR_WC_QTY if there is no QTYUNITMAP record
for the mapping from WC units to the external standard, _ERR_QTYUNITMAP_RECORD_MISSING_FOR_EXTERNAL_QTY if there is no
QTYUNITMAP record for the mapping from external units to WC units.public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - Raised with message _ERR_BAD_MISSING_CMD_PARAMETER if the uomStandard
or UOMCode is not specified.ECExceptionpublic void setRequestProperties(TypedProperty requestProperties)
setRequestProperties in interface BusinessPolicyCommandsetRequestProperties in class BusinessPolicyCommandImplrequestProperties - The request properties.public void setUOMStandard(java.lang.String theUOMStandard)
setUOMStandard in interface GetUOMCodePolicyCmdtheUOMStandard - The external UOM standard.public void setUOMCode(java.lang.String theUOMCode)
setUOMCode in interface GetUOMCodePolicyCmdtheUOMCode - The UOM code to be mapped.public void setMappingDirection(boolean theMappingDirection)
setMappingDirection in interface GetUOMCodePolicyCmdtheMappingDirection - true if the mapping is from WC to the external UOM standard; false if the
mapping if from the external UOM standard to WC.public java.lang.String getMappedUOMCode()
getMappedUOMCode in interface GetUOMCodePolicyCmd