public class AdminCurrencyMgr extends AdminBaseMgr implements AdminCurrencyMgrIf
| Modifier and Type | Class and Description |
|---|---|
protected class |
AdminCurrencyMgr.StaticData
Used to store the static data of this manager
|
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
protected static java.lang.String |
mutex |
protected static java.util.Map<java.lang.String,AdminCurrencyMgr.StaticData> |
staticDataHM
Hash Map that contains the static data
|
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, debugStackTraceExclusions, kkAdminPropsFilePath, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir| Constructor and Description |
|---|
AdminCurrencyMgr(KKAdminIf eng)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
addCurrencySearchCriteria(com.konakart.db.KKCriteria c,
AdminCurrencySearch search) |
protected void |
addOrderBy(com.konakart.db.KKCriteria c,
AdminCurrencySearch search) |
int |
deleteCurrency(int currId)
Delete a Currency
|
boolean |
doesCurrencyExistForId(int currId)
Checks to see whether a currency already exists with this id
|
protected AdminCurrency |
fetchDefaultCurrency()
The default currency is referenced by a configuration variable called DEFAULT_CURRENCY.
|
java.lang.String |
formatPrice(java.math.BigDecimal number)
Calls formatPrice with the default currency
|
java.lang.String |
formatPrice(java.math.BigDecimal number,
java.lang.String currencyCode)
Used to create a string in order to visualize a price.
|
AdminCurrencySearchResult |
getCurrencies(AdminCurrencySearch search)
This returns an array of currencies for all of the currencies in the currency table.
|
AdminCurrency |
getCurrency(int currencyId)
Returns the currency referenced by the currencyId.
|
AdminCurrency |
getCurrency(java.lang.String currencyCode)
Returns the currency referenced by the currencyCode.
|
AdminCurrency |
getDefaultCurrency()
The default currency is referenced by a configuration variable called DEFAULT_CURRENCY.
|
java.text.DecimalFormat |
getDefaultCurrencyFormatter()
Gets the formatter for the default currency
|
protected java.text.DecimalFormat |
getFormatter(AdminCurrency currency)
Get a DecimalFormat object for a currency
|
int |
insertCurrency(AdminCurrency curr)
Insert a Currency
|
void |
refreshConfigs()
Refresh the configuration of the Admin Currency Manager
|
void |
setDefaultCurrency(java.lang.String currCode)
Sets the default currency.
|
int |
updateCurrency(AdminCurrency curr)
Update a Currency
|
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, updateStaticVariablesNowprotected static org.apache.commons.logging.Log log
protected static java.lang.String mutex
protected static java.util.Map<java.lang.String,AdminCurrencyMgr.StaticData> staticDataHM
public AdminCurrencyMgr(KKAdminIf eng) throws java.lang.Exception
eng - the engjava.lang.Exception - an unexpected exceptionpublic void setDefaultCurrency(java.lang.String currCode)
throws java.lang.Exception
setDefaultCurrency in interface AdminCurrencyMgrIfcurrCode - the currCodejava.lang.Exception - an unexpected exceptionpublic AdminCurrency getDefaultCurrency() throws java.lang.Exception
getDefaultCurrency in interface AdminCurrencyMgrIfjava.lang.Exception - an unexpected exceptionprotected AdminCurrency fetchDefaultCurrency() throws java.lang.Exception
java.lang.Exception - an unexpected exceptionpublic java.text.DecimalFormat getDefaultCurrencyFormatter()
throws KKAdminException
getDefaultCurrencyFormatter in interface AdminCurrencyMgrIfKKAdminException - unexpected exception in the KonaKart Admin Enginepublic AdminCurrency getCurrency(java.lang.String currencyCode) throws KKAdminException, org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getCurrency in interface AdminCurrencyMgrIfcurrencyCode - the currencyCodeKKAdminException - 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 AdminCurrency getCurrency(int currencyId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getCurrency in interface AdminCurrencyMgrIfcurrencyId - the currencyIdorg.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 AdminCurrencySearchResult getCurrencies(AdminCurrencySearch search) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException
getCurrencies in interface AdminCurrencyMgrIfsearch - the searchorg.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 int addCurrencySearchCriteria(com.konakart.db.KKCriteria c,
AdminCurrencySearch search)
protected void addOrderBy(com.konakart.db.KKCriteria c,
AdminCurrencySearch search)
public java.lang.String formatPrice(java.math.BigDecimal number)
throws java.lang.Exception
formatPrice in interface AdminCurrencyMgrIfnumber - the numberjava.lang.Exception - an unexpected exceptionpublic java.lang.String formatPrice(java.math.BigDecimal number,
java.lang.String currencyCode)
throws java.lang.Exception
formatPrice in interface AdminCurrencyMgrIfnumber - the numbercurrencyCode - the currencyCodejava.lang.Exception - an unexpected exceptionprotected java.text.DecimalFormat getFormatter(AdminCurrency currency)
currency - the currencypublic int deleteCurrency(int currId)
throws KKAdminException
deleteCurrency in interface AdminCurrencyMgrIfcurrId - A currency idKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int insertCurrency(AdminCurrency curr) throws KKAdminException
insertCurrency in interface AdminCurrencyMgrIfcurr - A currency objectKKAdminException - unexpected exception in the KonaKart Admin Enginepublic int updateCurrency(AdminCurrency curr) throws java.lang.Exception
updateCurrency in interface AdminCurrencyMgrIfcurr - A currrency objectjava.lang.Exception - an unexpected exceptionpublic boolean doesCurrencyExistForId(int currId)
throws org.apache.torque.TorqueException
doesCurrencyExistForId in interface AdminCurrencyMgrIfcurrId - the currIdorg.apache.torque.TorqueException - an unexpected exception in Torque (the database layer)public void refreshConfigs()
throws java.lang.Exception
refreshConfigs in interface AdminCurrencyMgrIfrefreshConfigs in class AdminBaseMgrjava.lang.Exception - an unexpected exceptionCopyright © 2018 DS Data Systems UK Ltd.