public interface AdminAddressMgrIf
Modifier and Type | Method and Description |
---|---|
void |
addAddressesToProduct(AdminAddress[] addresses,
int productId)
Associate an array of addresses to a product.
|
void |
deleteAddress(int addressId)
Deletes an AdminAddress.
|
int |
deleteAddressFormat(int id)
Delete an AddressFormat
|
boolean |
doesAddressExistForId(int addrId)
Checks to see whether an address already exists with this id
|
boolean |
doesAddressFormatExist(int addressFormatId)
Return true if the AddressFormat exists.
|
AdminAddress |
getAddressById(int addressId)
Get Addresses defined by the search criteria
|
AdminAddressSearchResult |
getAddresses(AdminAddressSearch search,
int offset,
int size)
Get Addresses defined by the search criteria
|
AdminAddressFormatSearchResult |
getAddressFormats(AdminAddressFormatSearch search)
This returns an AdminAddressFormatSearchResult object.
|
int |
getProductCountPerAddress(int addressId)
Returns the number of products using the address
|
int |
insertAddress(AdminAddress address)
Insert an AdminAddress.
KonaKart supports addresses for customers, products, manufacturers and stores. |
int |
insertAddressFormat(AdminAddressFormat taxClass)
Insert an AdminAddressFormat object
|
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager
|
void |
removeAddressFromProduct(int addressId,
int productId)
Remove the relationship between the address and the product.
|
void |
setAddressCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
Sets address criteria
|
void |
updateAddress(AdminAddress address)
Updates an AdminAddress.
|
int |
updateAddressFormat(AdminAddressFormat taxClass)
Update an AdminAddressFormat object
|
AdminAddressFormatSearchResult getAddressFormats(AdminAddressFormatSearch search) throws KKAdminException
search
- the searchKKAdminException
- an unexpected exception in the KonaKart Admin engineint deleteAddressFormat(int id) throws KKAdminException
id
- An AddressFormat idKKAdminException
- an unexpected exception in the KonaKart Admin engineint insertAddressFormat(AdminAddressFormat taxClass) throws KKAdminException
taxClass
- An AdminAddressFormat objectKKAdminException
- an unexpected exception in the KonaKart Admin engineint updateAddressFormat(AdminAddressFormat taxClass) throws KKAdminException
taxClass
- An AdminAddressFormat objectKKAdminException
- an unexpected exception in the KonaKart Admin engineboolean doesAddressExistForId(int addrId) throws org.apache.torque.TorqueException, KKAdminException
addrId
- the addrIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineboolean doesAddressFormatExist(int addressFormatId) throws org.apache.torque.TorqueException, KKAdminException
addressFormatId
- the addressFormatIdorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin enginevoid refreshConfigs() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionAdminAddressSearchResult getAddresses(AdminAddressSearch search, int offset, int size) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
search
- the search criteriaoffset
- the offset in the record set to start fromsize
- the maximum number of records to returnKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)AdminAddress getAddressById(int addressId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
addressId
- the id of the address to retrieveKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)int insertAddress(AdminAddress address) throws java.lang.Exception
address
- an AdminAddress objectjava.lang.Exception
- an unexpected exceptionvoid updateAddress(AdminAddress address) throws KKAdminException
address
- the AdminAddress object to updateKKAdminException
- an unexpected exception in the KonaKart Admin enginevoid deleteAddress(int addressId) throws KKAdminException
addressId
- the id of the address to deleteKKAdminException
- an unexpected exception in the KonaKart Admin enginevoid addAddressesToProduct(AdminAddress[] addresses, int productId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
addresses
- the addressesproductId
- the productIdKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)void removeAddressFromProduct(int addressId, int productId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
addressId
- the addressIdproductId
- the productIdKKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)com.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)int getProductCountPerAddress(int addressId) throws com.workingdogs.village.DataSetException, KKAdminException, org.apache.torque.TorqueException
addressId
- the addressIdcom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)KKAdminException
- an unexpected exception in the KonaKart Admin engineorg.apache.torque.TorqueException
- an unexpected exception in Torque (the database layer)void setAddressCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
c
- the cCopyright © 2018 DS Data Systems UK Ltd.