|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AdminTaxMgrIf
AdminTaxMgrIf
Method Summary | |
---|---|
int |
deleteCountry(int id)
Delete a Country |
int |
deleteGeoZone(int id)
Delete a Tax Area - and all it's mappings |
int |
deleteSubZone(int id)
Delete a Zone |
int |
deleteTaxClass(int id)
Delete a TaxClass |
int |
deleteTaxRate(int id)
Delete a TaxRate |
int |
deleteZone(int id)
Delete a Zone |
boolean |
doesCountryExist(int id)
Checks to see whether a country already exists with this id |
boolean |
doesGeoZoneExist(int id)
Return true if the zone exists. |
boolean |
doesSubZoneExist(int id)
Return true if the zone exists. |
boolean |
doesTaxClassExist(int taxClassId)
Return true if the tax class exists. |
boolean |
doesTaxRateExist(int id)
Return true if the zone exists. |
boolean |
doesZoneExist(int id)
Return true if the zone exists. |
AdminCountry[] |
getAllCountriesFull()
Returns an array of fully populated countries. |
AdminGeoZone[] |
getAllGeoZones()
Get an array of AdminGeoZones from the DB. |
AdminTaxClass[] |
getAllTaxClassesFull()
Returns an array of all tax class objects. |
AdminTaxRateSearchResult |
getAllTaxRates()
This returns an AdminTaxRateSearchResult object. |
int |
getAllTaxRatesCount()
Returns a count of the number of TaxRates |
AdminCountrySearchResult |
getCountries(AdminCountrySearch search,
int offset,
int size)
This returns an AdminCountrySearchResult object. |
int |
getCountriesCount(AdminCountrySearch search)
Returns a count of the number of Countries |
AdminCountry |
getCountryById(int countryId)
Returns the country object for the country id, or Null if the country doesn't exist in the DB. |
AdminCountry |
getCountryByName(java.lang.String countryName)
Returns the country object for the country name, or Null if the country doesn't exist in the DB. |
AdminGeoZoneSearchResult |
getGeoZones(AdminGeoZoneSearch search,
int offset,
int size)
This returns an AdminGeoZoneSearchResult object. |
int |
getGeoZonesCount(AdminGeoZoneSearch search)
Returns a count of the number of Zones with the specified search criteria |
AdminSubZoneSearchResult |
getSubZones(AdminSubZoneSearch search,
int offset,
int size)
This returns an AdminSubZoneSearchResult object. |
int |
getSubZonesCount(AdminSubZoneSearch search)
Returns a count of the number of Zones with the specified search criteria |
AdminTaxClassSearchResult |
getTaxClasses(AdminTaxClassSearch search)
This returns an AdminTaxClassSearchResult object. |
int |
getTaxQuantityRule()
Returns the rule used to calculate tax for products with multiple quantities. |
AdminTaxRateSearchResult |
getTaxRates(AdminTaxRateSearch search,
int offset,
int size)
This returns an AdminTaxRateSearchResult object. |
int |
getTaxRatesCount(AdminTaxRateSearch search)
Returns a count of the number of TaxRates with the specified search criteria |
int |
getTaxScale()
Returns the precision use for calculating tax that matches the ADMIN_CURRENCY_DECIMAL_PLACES configuration variable. |
AdminZone |
getZonePerCountryAndCode(int countryId,
java.lang.String zoneDesc)
The zone name and zone code is compared with the zoneDesc parameter in order to determine whether a zone exists in the DB matching zoneDesc for the country defined by countryId. |
AdminZone |
getZonePerId(int zoneId)
Returns the zone if it exists, otherwise null |
AdminZoneSearchResult |
getZones(AdminZoneSearch search,
int offset,
int size)
This returns an AdminZoneSearchResult object. |
AdminZone[] |
getZonesById(int countryId)
Returns an array of AdminZones in the specified country - fully-populated |
int |
getZonesCount(AdminZoneSearch search)
Returns a count of the number of Zones with the specified search criteria |
int |
insertCountry(AdminCountry country)
Insert an AdminCountry object |
int |
insertGeoZone(AdminGeoZone insertObj)
Insert an AdminGeoZone object |
int |
insertSubZone(AdminSubZone insertObj)
Insert an AdminSubZone object |
int |
insertTaxClass(AdminTaxClass taxClass)
Insert an AdminTaxClass object |
int |
insertTaxRate(AdminTaxRate insertObj)
Insert an AdminTaxRate object |
int |
insertZone(AdminZone insertObj)
Insert an AdminZone object |
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager |
int |
updateCountry(AdminCountry country)
Update an AdminCountry object |
int |
updateGeoZone(AdminGeoZone updateObj)
Update an AdminGeoZone object |
int |
updateSubZone(AdminSubZone updateObj)
Update an AdminSubZone object |
int |
updateTaxClass(AdminTaxClass taxClass)
Update an AdminTaxClass object |
int |
updateTaxRate(AdminTaxRate updateObj)
Update an AdminTaxRate object |
int |
updateZone(AdminZone updateObj)
Update an AdminZone object |
Method Detail |
---|
AdminCountry[] getAllCountriesFull() throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
AdminCountry getCountryByName(java.lang.String countryName) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
countryName
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminCountry getCountryById(int countryId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
countryId
-
KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
AdminTaxClass[] getAllTaxClassesFull() throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
AdminTaxClassSearchResult getTaxClasses(AdminTaxClassSearch search) throws KKAdminException
search
-
KKAdminException
int deleteTaxClass(int id) throws KKAdminException
id
- A TaxClass id
KKAdminException
int insertTaxClass(AdminTaxClass taxClass) throws KKAdminException
taxClass
- An AdminTaxClass object
KKAdminException
int updateTaxClass(AdminTaxClass taxClass) throws KKAdminException
taxClass
- An AdminTaxClass object
KKAdminException
boolean doesTaxClassExist(int taxClassId) throws org.apache.torque.TorqueException, KKAdminException
taxClassId
-
org.apache.torque.TorqueException
KKAdminException
AdminZone[] getZonesById(int countryId) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, KKAdminException
countryId
-
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKAdminException
AdminZone getZonePerCountryAndCode(int countryId, java.lang.String zoneDesc) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
countryId
- zoneDesc
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
AdminZone getZonePerId(int zoneId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
zoneId
-
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
AdminZoneSearchResult getZones(AdminZoneSearch search, int offset, int size) throws KKAdminException
search
- the definition of the search - can be nulloffset
- the offset in the dbsize
- the number of records from the specified offset
KKAdminException
int deleteZone(int id) throws KKAdminException
id
- A Zone id
KKAdminException
int insertZone(AdminZone insertObj) throws KKAdminException
insertObj
- An AdminZone object
KKAdminException
int updateZone(AdminZone updateObj) throws KKAdminException
updateObj
- An AdminZone object
KKAdminException
boolean doesZoneExist(int id) throws org.apache.torque.TorqueException, KKAdminException
id
- zone id
org.apache.torque.TorqueException
KKAdminException
int getZonesCount(AdminZoneSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
AdminGeoZone[] getAllGeoZones() throws java.lang.Exception
java.lang.Exception
AdminGeoZoneSearchResult getGeoZones(AdminGeoZoneSearch search, int offset, int size) throws KKAdminException
search
- the definition of the search - can be nulloffset
- the offset in the dbsize
- the number of records from the specified offset
KKAdminException
int deleteGeoZone(int id) throws KKAdminException
id
- A Tax Area id
KKAdminException
int insertGeoZone(AdminGeoZone insertObj) throws KKAdminException
insertObj
- An AdminGeoZone object
KKAdminException
int updateGeoZone(AdminGeoZone updateObj) throws KKAdminException
updateObj
- An AdminGeoZone object
KKAdminException
boolean doesGeoZoneExist(int id) throws org.apache.torque.TorqueException, KKAdminException
id
- zone id
org.apache.torque.TorqueException
KKAdminException
int getGeoZonesCount(AdminGeoZoneSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
AdminSubZoneSearchResult getSubZones(AdminSubZoneSearch search, int offset, int size) throws KKAdminException
search
- the definition of the search - can be nulloffset
- the offset in the dbsize
- the number of records from the specified offset
KKAdminException
int deleteSubZone(int id) throws KKAdminException
id
- A Zone id
KKAdminException
int insertSubZone(AdminSubZone insertObj) throws KKAdminException
insertObj
- An AdminSubZone object
KKAdminException
int updateSubZone(AdminSubZone updateObj) throws KKAdminException
updateObj
- An AdminSubZone object
KKAdminException
boolean doesSubZoneExist(int id) throws org.apache.torque.TorqueException, KKAdminException
id
- zone id
org.apache.torque.TorqueException
KKAdminException
int getSubZonesCount(AdminSubZoneSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
int getCountriesCount(AdminCountrySearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
AdminCountrySearchResult getCountries(AdminCountrySearch search, int offset, int size) throws KKAdminException
search
- offset
- the offset in the dbsize
- the number of records from the specified offset
KKAdminException
int deleteCountry(int id) throws KKAdminException
id
- A Country id
KKAdminException
int insertCountry(AdminCountry country) throws KKAdminException
country
- An AdminCountry object
KKAdminException
int updateCountry(AdminCountry country) throws KKAdminException
country
- An AdminCountry object
KKAdminException
boolean doesCountryExist(int id) throws org.apache.torque.TorqueException, KKAdminException
id
- the country Id
org.apache.torque.TorqueException
KKAdminException
AdminTaxRateSearchResult getAllTaxRates() throws KKAdminException
KKAdminException
AdminTaxRateSearchResult getTaxRates(AdminTaxRateSearch search, int offset, int size) throws KKAdminException
search
- the definition of the search - can be nulloffset
- the offset in the dbsize
- the number of records from the specified offset
KKAdminException
int deleteTaxRate(int id) throws KKAdminException
id
- A TaxRate id
KKAdminException
int insertTaxRate(AdminTaxRate insertObj) throws KKAdminException
insertObj
- An AdminTaxRate object
KKAdminException
int updateTaxRate(AdminTaxRate updateObj) throws KKAdminException
updateObj
- An AdminTaxRate object
KKAdminException
boolean doesTaxRateExist(int id) throws org.apache.torque.TorqueException, KKAdminException
id
- zone id
org.apache.torque.TorqueException
KKAdminException
int getTaxRatesCount(AdminTaxRateSearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
search
- Search criteria
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
int getAllTaxRatesCount() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKAdminException
void refreshConfigs() throws java.lang.Exception
java.lang.Exception
int getTaxQuantityRule() throws KKAdminException
KKAdminException
int getTaxScale() throws KKAdminException
KKAdminException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |