@Repository(value="localisationDao") public class LocalisationDaoImpl extends Object implements LocalisationDao
LocalisationDao
Constructor and Description |
---|
LocalisationDaoImpl() |
Modifier and Type | Method and Description |
---|---|
LocalisedString |
getLocalisedString(String code,
String locale)
Gets a localised String.
|
void |
saveLocalisedString(String code,
String locale,
String content)
Saves a localised string with the specified code, locale and content.
|
public LocalisationDaoImpl()
@Cacheable(value="l10nCache", key="#locale.concat(\'-\').concat(#code)") public LocalisedString getLocalisedString(String code, String locale)
LocalisationDao
getLocalisedString
in interface LocalisationDao
code
- Code of the string to getlocale
- The locale to get the String for.@Transactional public void saveLocalisedString(String code, String locale, String content)
LocalisationDao
saveLocalisedString
in interface LocalisationDao
code
- Code used to retrieve the string again.locale
- Locale for the stringcontent
- Content of the String.Copyright © 2011–2015 The Kuali Foundation. All rights reserved.