|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TaxCodeService
Provide TaxCode-related business service.
| Method Summary | |
|---|---|
TaxCode |
add(TaxCode taxCode)
Adds the given taxCode. |
TaxCode |
get(long taxCodeUid)
Get the taxCode with the given UID. |
java.util.List |
getTaxCodesInUse()
Get the list of tax code (String) in use (being used to define tax value associated with a TaxJurisdiction). |
java.util.List |
list()
List all taxCodes stored in the database. |
TaxCode |
load(long taxCodeUid)
Load the taxCode with the given UID. |
void |
remove(TaxCode taxCode)
Delete the current taxCode and all its direct/indirect children. |
boolean |
taxCodeExists(java.lang.String code)
Checks the given taxCode exists or not. |
void |
update(TaxCode taxCode)
Updates the given taxCode. |
| Methods inherited from interface com.elasticpath.service.EpPersistenceService |
|---|
getObject, getPersistenceEngine, setPersistenceEngine |
| Methods inherited from interface com.elasticpath.service.EpService |
|---|
getElasticPath, setElasticPath |
| Method Detail |
|---|
TaxCode add(TaxCode taxCode)
throws TaxCodeExistException
taxCode - the taxCode to add
TaxCodeExistException - - if the specified tax code already exists.
TaxCode get(long taxCodeUid)
throws EpServiceException
taxCodeUid - the taxCode UID
EpServiceException - - in case of any errors
java.util.List getTaxCodesInUse()
throws EpServiceException
TaxJurisdiction).
TaxCodes in use.
EpServiceException - - in case of any errors
java.util.List list()
throws EpServiceException
EpServiceException - - in case of any errors
TaxCode load(long taxCodeUid)
throws EpServiceException
taxCodeUid - the taxCode UID
EpServiceException - - in case of any errors
void remove(TaxCode taxCode)
throws EpServiceException
taxCode - the taxCode to remove
EpServiceException - - in case of any errors
boolean taxCodeExists(java.lang.String code)
throws EpServiceException
code - the taxCode
EpServiceException - - in case of any errors
void update(TaxCode taxCode)
throws TaxCodeExistException
taxCode - the taxCode to update
TaxCodeExistException - - if the specified tax code already exists.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||