public interface LanguageMgrIf
Modifier and Type | Method and Description |
---|---|
Language[] |
getAllLanguages()
Returns an array of language objects for all languages that have been defined in the system.
|
Language |
getDefaultLanguage()
Returns the default language object
|
int |
getDefaultLanguageId()
Returns the default language id
|
java.lang.String |
getDefaultLocale() |
Language |
getLanguagePerCode(java.lang.String code)
Retrieves the language object referenced by the code (i.e.
|
Language |
getLanguagePerId(int languageId)
Returns the language object with id = languageId.
|
Language[] |
getLanguages(LanguageSearchIf languageSearchOptions)
Returns an array of language objects for all languages that have been defined in the system that meet the defined search criteria.
|
NameValue[] |
getMessages(int type,
java.lang.String localeString)
Used to fetch a message catalog for a locale and message type.
|
java.lang.String |
getMsgValue(java.lang.String key,
int type,
java.lang.String localeString)
Get an Application Message Value.
|
void |
refreshConfigs()
Refresh the configuration of the language manager
|
Language[] getLanguages(LanguageSearchIf languageSearchOptions) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
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)com.konakart.app.KKException
- an unexpected KKException exceptionLanguage[] getAllLanguages() throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
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)com.konakart.app.KKException
- an unexpected KKException exceptionint getDefaultLanguageId() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected KKException exceptionLanguage getDefaultLanguage() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected KKException exceptionjava.lang.String getDefaultLocale() throws com.konakart.app.KKException
com.konakart.app.KKException
- an unexpected KKException exceptionLanguage getLanguagePerId(int languageId) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
languageId
- the languageIdorg.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)com.konakart.app.KKException
- an unexpected KKException exceptionLanguage getLanguagePerCode(java.lang.String code) throws com.workingdogs.village.DataSetException, org.apache.torque.TorqueException, com.konakart.app.KKException
code
- the codecom.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)com.konakart.app.KKException
- an unexpected KKException exceptionvoid refreshConfigs() throws java.lang.Exception
java.lang.Exception
- an unexpected exceptionjava.lang.String getMsgValue(java.lang.String key, int type, java.lang.String localeString) throws org.apache.torque.TorqueException, com.workingdogs.village.DataSetException, com.konakart.app.KKException
key
- the message keytype
- the message type (should use KKConstants.MSG_TYP_APPLICATION for application
messages)localeString
- the message locale (eg. "en_GB"). Default is used if left null.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)com.konakart.app.KKException
- an unexpected KKException exceptionNameValue[] getMessages(int type, java.lang.String localeString) throws com.konakart.app.KKException, com.workingdogs.village.DataSetException, org.apache.torque.TorqueException
type
- the message type (should use KKConstants.MSG_TYP_APPLICATION for application
messages)localeString
- the message locale (eg. "en_GB"). Default is used if left null.com.konakart.app.KKException
- an unexpected KKException exceptioncom.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)Copyright © 2018 DS Data Systems UK Ltd.