コード例 #1
0
  protected Map<Locale, String> getAssetVocabularyTitleMap(AssetVocabulary assetVocabulary) {

    Map<Locale, String> titleMap = assetVocabulary.getTitleMap();

    if (titleMap == null) {
      titleMap = new HashMap<Locale, String>();
    }

    Locale locale = LocaleUtil.getDefault();

    String title = titleMap.get(locale);

    if (Validator.isNull(title)) {
      titleMap.put(locale, assetVocabulary.getName());
    }

    return titleMap;
  }