use of org.pentaho.platform.repository2.unified.webservices.LocaleMapDto in project pentaho-platform by pentaho.
the class ZipExportProcessor method getAvailableLocales.
/**
* lookup the list of available locale values
*
* @param fileId
* @return
*/
private List<LocaleMapDto> getAvailableLocales(Serializable fileId) {
List<LocaleMapDto> availableLocales = new ArrayList<LocaleMapDto>();
List<Locale> locales = getUnifiedRepository().getAvailableLocalesForFileById(fileId);
if (locales != null && !locales.isEmpty()) {
for (Locale locale : locales) {
availableLocales.add(new LocaleMapDto(locale.toString(), null));
}
}
return availableLocales;
}
Aggregations