|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
com.elasticpath.service.tax.impl.TaxJurisdictionServiceImpl
public class TaxJurisdictionServiceImpl
The default implementation of TaxJurisdictionService.
| Constructor Summary | |
|---|---|
TaxJurisdictionServiceImpl()
|
|
| Method Summary | |
|---|---|
TaxJurisdiction |
add(TaxJurisdiction taxJurisdiction)
Adds the given taxJurisdiction. |
TaxJurisdiction |
get(long taxJurisdictionUid)
Get the taxJurisdiction with the given UID. |
java.lang.Object |
getObject(long uid)
Generic load method for all persistable domain models. |
java.util.List |
getTaxJurisdictionChildren(TaxJurisdiction taxJurisdiction)
Get all the child tax jurisidction belong to the given taxJurisdiction. |
Utility |
getUtility()
Returns the utility instance. |
java.util.List |
list()
List all taxJurisdictions stored in the database. |
java.util.List |
listRootTaxJurisdictions()
Retrieve all root tax jurisdictions (the country level ones). |
TaxJurisdiction |
load(long taxJurisdictionUid)
Load the taxJurisdiction with the given UID. |
void |
remove(TaxJurisdiction taxJurisdiction)
Delete the taxJurisdiction. |
TaxJurisdiction |
retrieveTaxJurisdiction(Address address)
Matches shipping address to the most specific matching Tax Jurisdiction level. |
void |
setUtility(Utility utility)
Sets the utility. |
void |
update(TaxJurisdiction taxJurisdiction)
Updates the given taxJurisdiction. |
| Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl |
|---|
getPersistenceEngine, setPersistenceEngine |
| Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl |
|---|
getElasticPath, setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.service.EpPersistenceService |
|---|
getPersistenceEngine, setPersistenceEngine |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Constructor Detail |
|---|
public TaxJurisdictionServiceImpl()
| Method Detail |
|---|
public TaxJurisdiction add(TaxJurisdiction taxJurisdiction)
throws TaxJurisdictionExistException
add in interface TaxJurisdictionServicetaxJurisdiction - the taxJurisdiction to add
TaxJurisdictionExistException - - if a taxJurisdiction associated with the given region already exists.
public TaxJurisdiction get(long taxJurisdictionUid)
throws EpServiceException
get in interface TaxJurisdictionServicetaxJurisdictionUid - the taxJurisdiction UID
EpServiceException - - in case of any errors
public java.lang.Object getObject(long uid)
throws EpServiceException
getObject in interface EpPersistenceServiceuid - the persisted instance uid
EpServiceException - - in case of any errorspublic java.util.List getTaxJurisdictionChildren(TaxJurisdiction taxJurisdiction)
getTaxJurisdictionChildren in interface TaxJurisdictionServicetaxJurisdiction - - the taxJurisdiction to find children for.
public Utility getUtility()
public java.util.List list()
throws EpServiceException
list in interface TaxJurisdictionServiceEpServiceException - - in case of any errorspublic java.util.List listRootTaxJurisdictions()
listRootTaxJurisdictions in interface TaxJurisdictionService
public TaxJurisdiction load(long taxJurisdictionUid)
throws EpServiceException
load in interface TaxJurisdictionServicetaxJurisdictionUid - the taxJurisdiction UID
EpServiceException - - in case of any errors
public void remove(TaxJurisdiction taxJurisdiction)
throws EpServiceException
remove in interface TaxJurisdictionServicetaxJurisdiction - the taxJurisdiction to remove
EpServiceException - - in case of any errors
public TaxJurisdiction retrieveTaxJurisdiction(Address address)
throws EpServiceException
retrieveTaxJurisdiction in interface TaxJurisdictionServiceaddress - - the address used to retrieve the matching jurisdiction.
EpServiceException - - in case of any errorspublic void setUtility(Utility utility)
utility - the utility to set
public void update(TaxJurisdiction taxJurisdiction)
throws TaxJurisdictionExistException
update in interface TaxJurisdictionServicetaxJurisdiction - the taxJurisdiction to update
TaxJurisdictionExistException - - if a taxJurisdiction associated with the given region already exists.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||