Package org.exoplatform.services.resources

Examples of org.exoplatform.services.resources.ResourceBundleData


            String language = localeConfig.getLanguage();
            String content = getResourceBundleContent(name, language, defaultLang, cl);
            if (content != null)
            {
               // save the content
               ResourceBundleData data = new ResourceBundleData();
               data.setId(baseName + "_" + language);
               data.setName(baseName);
               data.setLanguage(language);
               data.setData(content);
               saveResourceBundle(data);
            }
         }
      }
      catch (Exception ex)
View Full Code Here


   {
      if (id == null)
      {
         return null;
      }
      ResourceBundleData data = bundles.remove(id);
      invalidate(id);
      return data;
   }
View Full Code Here

   }

   @Override
   protected ResourceBundle getResourceBundleFromDb(String id, ResourceBundle parent, Locale locale) throws Exception
   {
      ResourceBundleData data = getResourceBundleData(id);
      if (data == null)
      {
         return null;
      }
      return new MapResourceBundle(new ExoResourceBundle(data.getData(), parent), locale);
   }
View Full Code Here

      return portalResourceBundleNames_;
   }

   public ResourceBundleData createResourceBundleDataInstance()
   {
      return new ResourceBundleData();
   }
View Full Code Here

            String content = getResourceBundleContent(name, locale, defaultLocale, cl);
            if (content != null)
            {
               // save the content
               ResourceBundleData data = new ResourceBundleData();
               if (country != null && country.length() > 0)
               {
                  data.setId(baseName + "_" + language + "_" + country);
               }
               else
               {
                  data.setId(baseName + "_" + language);
               }
               data.setName(baseName);
               data.setLanguage(language);
               data.setData(content);
               saveResourceBundle(data);
            }
         }
      }
      catch (Exception ex)
View Full Code Here

   {
      if (id == null)
      {
         return null;
      }
      ResourceBundleData data = bundles.remove(id);
      invalidate(id);
      return data;
   }
View Full Code Here

   }

   @Override
   protected ResourceBundle getResourceBundleFromDb(String id, ResourceBundle parent, Locale locale) throws Exception
   {
      ResourceBundleData data = getResourceBundleData(id);
      if (data == null)
      {
         return null;
      }
      return new MapResourceBundle(new ExoResourceBundle(data, parent), locale);
View Full Code Here

TOP

Related Classes of org.exoplatform.services.resources.ResourceBundleData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.