|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface LanguageMgrIf
LanguageMgrIf Interface which an implementation of this manager must adhere to.
| Method Summary | |
|---|---|
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 |
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. |
NameValue[] |
getMessages(int type,
java.lang.String locale)
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 locale)
Get an Application Message Value. |
void |
refreshConfigs()
Refresh the configuration of the language manager |
| Method Detail |
|---|
Language[] getAllLanguages()
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
int getDefaultLanguageId()
throws KKException
KKException
Language getDefaultLanguage()
throws KKException
KKException
Language getLanguagePerId(int languageId)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
languageId -
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
Language getLanguagePerCode(java.lang.String code)
throws com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException,
KKException
code -
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
KKException
void refreshConfigs()
throws java.lang.Exception
java.lang.Exception
java.lang.String getMsgValue(java.lang.String key,
int type,
java.lang.String locale)
throws org.apache.torque.TorqueException,
com.workingdogs.village.DataSetException,
KKException
key - the message keytype - the message type (should use KKConstants.MSG_TYP_APPLICATION for application
messages)locale - the message locale (eg. "en_GB"). Default is used if left null.
org.apache.torque.TorqueException
com.workingdogs.village.DataSetException
KKException
NameValue[] getMessages(int type,
java.lang.String locale)
throws KKException,
com.workingdogs.village.DataSetException,
org.apache.torque.TorqueException
type - the message type (should use KKConstants.MSG_TYP_APPLICATION for application
messages)locale - the message locale (eg. "en_GB"). Default is used if left null.
KKException
com.workingdogs.village.DataSetException
org.apache.torque.TorqueException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||