java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.taxation.commands.ResolveTaxJurisdictionCmdImpl
This is the default implementation of the ResolveTaxJurisdiction task commands. An address is said to fall in a jurisdiction if its zipcode falls in the zipcode range of the jurisdiction and the two have the same city, state, and country. Geocode too!
A NULL jurisdiction field is wildcard.
Field Summary |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.taxation.commands.ResolveTaxJurisdictionCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
ResolveTaxJurisdictionCmdImpl() |
Method Summary | |
protected JurisdictionAccessBean | betterMatch(AddressAccessBean address, JurisdictionAccessBean jurisdiction1, JurisdictionAccessBean jurisdiction2) Searches for the appropriate jurisdiction address. |
JurisdictionAccessBean | getJurisdiction() Returns the jurisdiction access bean. |
java.lang.Integer | getJurisdictionId() Returns the reference number of the jurisdiction. |
void | performExecute() Executes main business logic of the command. |
void | setAddress(AddressAccessBean aAddressAB) Sets the address access bean. |
void | setAddressId(java.lang.Long aAddressId) Sets the address id. |
void | setDisplayOnly(boolean aDisplayOnly) Sets the display flag to indicate that it is for product display. |
void | validateParameters() Checks mandatory parameters. |
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, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResolveTaxJurisdictionCmdImpl()
Method Detail |
protected JurisdictionAccessBean betterMatch(AddressAccessBean address, JurisdictionAccessBean jurisdiction1, JurisdictionAccessBean jurisdiction2) throws CreateException, FinderException, javax.naming.NamingException, java.rmi.RemoteException
public JurisdictionAccessBean getJurisdiction()
public java.lang.Integer getJurisdictionId()
public void performExecute() throws ECException
public void setAddress(AddressAccessBean aAddressAB)
public void setAddressId(java.lang.Long aAddressId)
public void setDisplayOnly(boolean aDisplayOnly)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.