com.ibm.commerce.orderquotation.commands
Class GetUOMCodePolicyCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.command.BusinessPolicyCommandImpl
com.ibm.commerce.orderquotation.commands.GetUOMCodePolicyCmdImpl
- All Implemented Interfaces:
- BusinessPolicyCommand, ECCommand, ECTargetableCommand, GetUOMCodePolicyCmd, TaskCommand
- public class GetUOMCodePolicyCmdImpl
- extends BusinessPolicyCommandImpl
- implements GetUOMCodePolicyCmd
Maps the unit of measure code under the UN/CEFACT (United Nations Centre for Trade Facilitation and Electronic Business) standard, used by Websphere Commerce, from/to the unit of measurement code under specified external standard.
- See Also:
- Serialized Form
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GetUOMCodePolicyCmdImpl
public GetUOMCodePolicyCmdImpl()
- Constructor for GetUOMCodePolicyCmdImpl
performExecute
public void performExecute()
throws ECException
- Execute the command.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- 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.
reset
public void reset()
- Resets the command.
-
- Overrides:
- reset in class AbstractECTargetableCommand
validateParameters
public void validateParameters()
throws ECException
- Check mandatory parameters.
-
- Specified by:
- validateParameters in interface ECCommand
- Overrides:
- validateParameters in class AbstractECTargetableCommand
-
- Throws:
- ECApplicationException - Raised with message _ERR_BAD_MISSING_CMD_PARAMETER if the uomStandard or UOMCode is not specified.
- ECException
setRequestProperties
public void setRequestProperties(TypedProperty requestProperties)
- Set the request properties for the policy.
-
- Specified by:
- setRequestProperties in interface BusinessPolicyCommand
- Overrides:
- setRequestProperties in class BusinessPolicyCommandImpl
-
- Parameters:
- requestProperties - The request properties.
setUOMStandard
public void setUOMStandard(java.lang.String theUOMStandard)
- (Optional) Set the external UOM standard.
-
- Specified by:
- setUOMStandard in interface GetUOMCodePolicyCmd
-
- Parameters:
- theUOMStandard - The external UOM standard.
setUOMCode
public void setUOMCode(java.lang.String theUOMCode)
- Set the UOM code to be mapped.
-
- Specified by:
- setUOMCode in interface GetUOMCodePolicyCmd
-
- Parameters:
- theUOMCode - The UOM code to be mapped.
setMappingDirection
public void setMappingDirection(boolean theMappingDirection)
- (Optional) Set the mapping direction. Default, if not specified, is true.
-
- Specified by:
- setMappingDirection in interface GetUOMCodePolicyCmd
-
- Parameters:
- 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.
getMappedUOMCode
public java.lang.String getMappedUOMCode()
- Get the mapped UOM code.
-
- Specified by:
- getMappedUOMCode in interface GetUOMCodePolicyCmd
-
- Returns:
- The mapped UOM code.
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.