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, setPolicyId
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, 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
getPolicyId, getRequestProperties, setPolicyId
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public GetUOMCodePolicyCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- 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.Command
reset
in class AbstractECTargetableCommand
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- Raised with message _ERR_BAD_MISSING_CMD_PARAMETER if the uomStandard
or UOMCode is not specified.ECException
public void setRequestProperties(TypedProperty requestProperties)
setRequestProperties
in interface BusinessPolicyCommand
setRequestProperties
in class BusinessPolicyCommandImpl
requestProperties
- The request properties.public void setUOMStandard(java.lang.String theUOMStandard)
setUOMStandard
in interface GetUOMCodePolicyCmd
theUOMStandard
- The external UOM standard.public void setUOMCode(java.lang.String theUOMCode)
setUOMCode
in interface GetUOMCodePolicyCmd
theUOMCode
- The UOM code to be mapped.public void setMappingDirection(boolean theMappingDirection)
setMappingDirection
in interface GetUOMCodePolicyCmd
theMappingDirection
- 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