public interface AdminLanguageMgrIf
| Modifier and Type | Method and Description |
|---|---|
int |
deleteLanguage(int langId)
Delete a Language
|
boolean |
doesLanguageExistForId(int langId)
Checks to see whether a language already exists with this id
|
AdminLanguage[] |
getAllLanguages()
Returns an array of language objects for all languages that have been defined in the system.
|
AdminLanguage |
getDefaultLanguage()
Returns the default language
|
java.lang.String |
getDefaultLanguageCode() |
int |
getDefaultLanguageId()
Returns the default language id
|
java.lang.String |
getDefaultLocale() |
AdminLanguage |
getLanguageByCode(java.lang.String code)
Retrieves the language object referenced by the code (i.e.
|
AdminLanguage |
getLanguageById(int languageId)
Returns the language referenced by the language id
|
AdminLanguage |
getLanguageById(int languageId,
java.sql.Connection con)
Returns the language referenced by the language id
|
AdminLanguage |
getLanguageForLocale(java.lang.String locale)
Retrieves the language for the locale
|
int |
getLanguageIdForLocale(java.lang.String locale)
Retrieves the language Id for the locale
|
AdminLanguageSearchResult |
getLanguages(AdminLanguageSearch languageSearchOptions)
This returns an AdminLanguageSearchResult object.
|
int |
getNumLanguages()
Returns the total number of languages defined for the store - it does not include the
display-only languages
|
int |
insertLanguage(AdminLanguage lang)
Insert a Language
|
void |
refreshConfigs()
Retrieve some commonly-used properties and set the velocity log file location
|
void |
setDefaultLanguage(java.lang.String langCode)
Sets the default language.
|
int |
updateLanguage(AdminLanguage lang)
Update a Language
|
AdminLanguage[] getAllLanguages() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
org.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)KKAdminException - an unexpected exception in the KonaKart Admin engineAdminLanguageSearchResult getLanguages(AdminLanguageSearch languageSearchOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, KKAdminException
languageSearchOptions - the languageSearchOptionsorg.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)KKAdminException - an unexpected exception in the KonaKart Admin engineint getDefaultLanguageId()
throws java.lang.Exception
java.lang.Exception - an unexpected exceptionAdminLanguage getDefaultLanguage() throws java.lang.Exception
java.lang.Exception - an unexpected exceptionint getNumLanguages()
throws java.lang.Exception
java.lang.Exception - an unexpected exceptionAdminLanguage getLanguageById(int languageId) throws java.lang.Exception
languageId - the languageIdjava.lang.Exception - an unexpected exceptionAdminLanguage getLanguageById(int languageId, java.sql.Connection con) throws java.lang.Exception
languageId - the languageIdcon - Connection for transactionjava.lang.Exception - an unexpected exceptionAdminLanguage getLanguageByCode(java.lang.String code) throws java.lang.Exception
code - the codejava.lang.Exception - an unexpected exceptionint getLanguageIdForLocale(java.lang.String locale)
throws java.lang.Exception
locale - a 2 or 4 character locale (eg. en, de, es)java.lang.Exception - an unexpected exceptionAdminLanguage getLanguageForLocale(java.lang.String locale) throws java.lang.Exception
locale - a 2 or 4 character locale (eg. en, de, es)java.lang.Exception - an unexpected exceptionvoid setDefaultLanguage(java.lang.String langCode)
throws java.lang.Exception
langCode - the langCodejava.lang.Exception - an unexpected exceptionjava.lang.String getDefaultLocale()
throws KKAdminException
KKAdminException - an unexpected exception in the KonaKart Admin enginejava.lang.String getDefaultLanguageCode()
throws KKAdminException
KKAdminException - an unexpected exception in the KonaKart Admin engineint deleteLanguage(int langId)
throws KKAdminException
langId - A language idKKAdminException - an unexpected exception in the KonaKart Admin engineint insertLanguage(AdminLanguage lang) throws KKAdminException
lang - A language objectKKAdminException - an unexpected exception in the KonaKart Admin engineint updateLanguage(AdminLanguage lang) throws java.lang.Exception
lang - A language objectjava.lang.Exception - an unexpected exceptionboolean doesLanguageExistForId(int langId)
throws org.apache.torque.TorqueException,
KKAdminException
langId - the langIdorg.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 exceptionCopyright © 2018 DS Data Systems UK Ltd.