Examples of ResourceBundleData


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

Examples of org.exoplatform.services.resources.ResourceBundleData

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

Examples of org.exoplatform.services.resources.ResourceBundleData

   }

   @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

Examples of org.exoplatform.services.resources.ResourceBundleData

      return portalResourceBundleNames_;
   }

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

Examples of org.exoplatform.services.resources.ResourceBundleData

            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

Examples of org.exoplatform.services.resources.ResourceBundleData

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

Examples of org.exoplatform.services.resources.ResourceBundleData

   }

   @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

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceBundleData

    if (data == null)
    {
      throw new NullPointerException();
    }

    final ResourceBundleData cdata = CachingResourceBundleData.createCached(data);
    final Object keyObject = data.getBundleKey();
    final Object valueObject = new DefaultResourceBundleDataCacheEntry(cdata, caller);
    final Element element = new Element(keyObject, valueObject);
    if (EHCacheModule.CACHE_MONITOR.isDebugEnabled())
    {
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceBundleData

  {
  }

  public ResourceBundleData put(final ResourceManager caller, final ResourceBundleData datathrows ResourceLoadingException
  {
    final ResourceBundleData retval = CachingResourceBundleData.createCached(data);
    lastEntry = new DefaultResourceBundleDataCacheEntry(retval, caller);
    return retval;
  }
View Full Code Here

Examples of org.pentaho.reporting.libraries.resourceloader.ResourceBundleData

  {
  }

  public ResourceBundleData put(final ResourceManager caller, final ResourceBundleData datathrows ResourceLoadingException
  {
    final ResourceBundleData retval = CachingResourceBundleData.createCached(data);
    lastEntry = new DefaultResourceBundleDataCacheEntry(retval, caller);
    return retval;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.