java.lang.Object | +--CacheableCommandImpl | +--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. ECTargetableCommand |
COPYRIGHT |
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
address
- the access bean of the address.jurisdiction1
- the access bean of the first jurisdiction
address.jurisdiction2
- the access bean of the second jurisdiction
address.
CreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException
public JurisdictionAccessBean getJurisdiction()
getJurisdiction
in interface
ResolveTaxJurisdictionCmd
public java.lang.Integer getJurisdictionId()
getJurisdictionId
in interface
ResolveTaxJurisdictionCmd
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void setAddress(AddressAccessBean aAddressAB)
setAddress
in interface
ResolveTaxJurisdictionCmd
aAddressAB
- the access bean of the
address.public void setAddressId(java.lang.Long aAddressId)
setAddressId
in interface
ResolveTaxJurisdictionCmd
aAddressId
- the reference number of the
address.public void setDisplayOnly(boolean aDisplayOnly)
setDisplayOnly
in interface
ResolveTaxJurisdictionCmd
aDisplayOnly
- the product display flag.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException