public class AdminAddressMgr extends AdminBaseMgr implements AdminAddressMgrIf
AdminBaseMgr.StaticData| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir| Constructor and Description |
|---|
AdminAddressMgr(KKAdminIf eng)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAddressesToProduct(AdminAddress[] addresses,
int productId)
Associate an array of addresses to a product.
|
protected void |
addAddressFormatOrderBy(com.konakart.db.KKCriteria c,
AdminAddressFormatSearch search)
addAddressFormatOrderBy
|
protected int |
addAddressFormatSearchCriteria(com.konakart.db.KKCriteria c,
AdminAddressFormatSearch search)
addAddressFormatSearchCriteria
|
protected void |
addAddressOrderBy(com.konakart.db.KKCriteria c,
AdminAddressSearch search)
addAddressOrderBy
|
protected void |
addAddressSearchCriteria(com.konakart.db.KKCriteria c,
AdminAddressSearch search)
addAddressSearchCriteria
|
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.
|
private int |
getCount(com.konakart.db.KKCriteria c,
org.apache.torque.map.ColumnMap colMap) |
protected int |
getCount(com.konakart.db.KKCriteria c,
java.lang.String key)
This method is mainly used for paging.
|
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 addressFormat)
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)
Common code to avoid duplication
|
protected void |
setAddressInsertCriteriaWithStandardAttributes(com.konakart.db.KKCriteria insertC,
AdminAddress address)
Common code to avoid duplication
|
void |
updateAddress(AdminAddress address)
Updates an AdminAddress.
|
int |
updateAddressFormat(AdminAddressFormat addressFormat)
Update an AdminAddressFormat object
|
addInsertAttr, addInsertAttr, addStringRuleConstraint, addStringRuleConstraint, checkAPICallEnabled, checkIntInRange, checkIntIsSet, checkRequired, executeQuery, executeQuery, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminContentMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustPwdHistMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminEngineCacheMgr, getAdminEventMgr, getAdminExecuteMgr, getAdminFileMgr, getAdminFilterMgr, getAdminHtmlMgr, getAdminImportMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminMiscPriceMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminServletMgr, getAdminShipmentMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminSuggestionMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getDebugStackTraceExclusions, getEmailThreadGracefulShutdownTimeout, getExportMgr, getExportMgr, getExportXMLData, getIntFromString, getKkAdminPropsFilePath, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getNewCriteria, getNewCriteria, getOtherModuleByName, getPostSearchText, getPreSearchText, getProductsToCategoresCriteria, getPropertyValue, getPropertyValue, getPropertyValueAsBool, getPropertyValueAsInt, getPropertyValueAsLong, getRecordCount, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, insertKKEvent, insertKKEvent, isBusiness, isBusinessOrEnterprise, isCommunity, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareCustomersOrProducts, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, isUnix, isWindows, manageException, manageThrowable, removeCData, sendMQMessages, setAdminEng, setDebugStackTraceExclusions, setKkAdminPropsFilePath, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr, updateStaticVariablesNowpublic AdminAddressMgr(KKAdminIf eng) throws java.lang.Exception
eng - the engjava.lang.Exception - an unexpected exceptionpublic AdminAddressFormatSearchResult getAddressFormats(AdminAddressFormatSearch search) throws KKAdminException
getAddressFormats in interface AdminAddressMgrIfsearch - the searchKKAdminException - an unexpected exception in the KonaKart Admin enginepublic int deleteAddressFormat(int id)
throws KKAdminException
deleteAddressFormat in interface AdminAddressMgrIfid - An AddressFormat idKKAdminException - an unexpected exception in the KonaKart Admin enginepublic int insertAddressFormat(AdminAddressFormat addressFormat) throws KKAdminException
insertAddressFormat in interface AdminAddressMgrIfaddressFormat - An AdminAddressFormat objectKKAdminException - an unexpected exception in the KonaKart Admin enginepublic int updateAddressFormat(AdminAddressFormat addressFormat) throws KKAdminException
updateAddressFormat in interface AdminAddressMgrIfaddressFormat - An AdminAddressFormat objectKKAdminException - an unexpected exception in the KonaKart Admin engineprotected void addAddressFormatOrderBy(com.konakart.db.KKCriteria c,
AdminAddressFormatSearch search)
c - the csearch - the searchprotected int addAddressFormatSearchCriteria(com.konakart.db.KKCriteria c,
AdminAddressFormatSearch search)
c - the csearch - the searchpublic boolean doesAddressFormatExist(int addressFormatId)
throws org.apache.torque.TorqueException,
KKAdminException
doesAddressFormatExist in interface AdminAddressMgrIfaddressFormatId - the addressFormatIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - an unexpected exception in the KonaKart Admin enginepublic void refreshConfigs()
throws java.lang.Exception
refreshConfigs in interface AdminAddressMgrIfrefreshConfigs in class AdminBaseMgrjava.lang.Exception - an unexpected exceptionpublic boolean doesAddressExistForId(int addrId)
throws org.apache.torque.TorqueException,
KKAdminException
doesAddressExistForId in interface AdminAddressMgrIfaddrId - the addrIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)KKAdminException - an unexpected exception in the KonaKart Admin enginepublic AdminAddress getAddressById(int addressId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
AdminAddressMgrIfgetAddressById in interface AdminAddressMgrIfaddressId - 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)public AdminAddressSearchResult getAddresses(AdminAddressSearch search, int offset, int size) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
AdminAddressMgrIfgetAddresses in interface AdminAddressMgrIfsearch - 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)protected void addAddressSearchCriteria(com.konakart.db.KKCriteria c,
AdminAddressSearch search)
throws KKAdminException
c - the csearch - the searchKKAdminException - an unexpected exception in the KonaKart Admin engineprotected void addAddressOrderBy(com.konakart.db.KKCriteria c,
AdminAddressSearch search)
c - the csearch - the searchprotected int getCount(com.konakart.db.KKCriteria c,
java.lang.String key)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
c - the ckey - we have to use a key instead of just a * when there are no search criteriaorg.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)private int getCount(com.konakart.db.KKCriteria c,
org.apache.torque.map.ColumnMap colMap)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
org.apache.torque.TorqueExceptioncom.workingdogs.village.DataSetExceptionpublic void setAddressCriteriaWithStandardAttributes(com.konakart.db.KKCriteria c)
setAddressCriteriaWithStandardAttributes in interface AdminAddressMgrIfc - the cprotected void setAddressInsertCriteriaWithStandardAttributes(com.konakart.db.KKCriteria insertC,
AdminAddress address)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKAdminException,
java.lang.Exception
insertC - the insertCaddress - the addressjava.lang.Exception - an unexpected exceptionKKAdminException - an unexpected exception in the KonaKart Admin enginecom.workingdogs.village.DataSetException - an unexpected exception due to data in Torque (the database layer)org.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)public void deleteAddress(int addressId)
throws KKAdminException
AdminAddressMgrIfdeleteAddress in interface AdminAddressMgrIfaddressId - the id of the address to deleteKKAdminException - an unexpected exception in the KonaKart Admin enginepublic int insertAddress(AdminAddress address) throws java.lang.Exception
AdminAddressMgrIfinsertAddress in interface AdminAddressMgrIfaddress - an AdminAddress objectjava.lang.Exception - an unexpected exceptionpublic void updateAddress(AdminAddress address) throws KKAdminException
AdminAddressMgrIfupdateAddress in interface AdminAddressMgrIfaddress - the AdminAddress object to updateKKAdminException - an unexpected exception in the KonaKart Admin enginepublic void addAddressesToProduct(AdminAddress[] addresses, int productId) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
addAddressesToProduct in interface AdminAddressMgrIfaddresses - 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)public void removeAddressFromProduct(int addressId,
int productId)
throws KKAdminException,
org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException
removeAddressFromProduct in interface AdminAddressMgrIfaddressId - 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)public int getProductCountPerAddress(int addressId)
throws com.workingdogs.village.DataSetException,
KKAdminException,
org.apache.torque.TorqueException
getProductCountPerAddress in interface AdminAddressMgrIfaddressId - 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)Copyright © 2018 DS Data Systems UK Ltd.