org.exoplatform.services.resources.jcr
Class ResourceBundleServiceImpl

java.lang.Object
  extended by org.exoplatform.services.resources.impl.BaseResourceBundleService
      extended by org.exoplatform.services.resources.jcr.ResourceBundleServiceImpl
All Implemented Interfaces:
org.exoplatform.services.resources.ResourceBundleService, org.picocontainer.Startable

public class ResourceBundleServiceImpl
extends org.exoplatform.services.resources.impl.BaseResourceBundleService
implements org.picocontainer.Startable

Created by The eXo Platform SARL Author : Tung Pham thanhtungty@gmail.com Dec 1, 2007


Field Summary
 
Fields inherited from class org.exoplatform.services.resources.impl.BaseResourceBundleService
cache_, classpathResources_, localeService_, log_, portalResourceBundleNames_
 
Constructor Summary
ResourceBundleServiceImpl(org.exoplatform.container.xml.InitParams params, org.exoplatform.services.cache.CacheService cService, org.exoplatform.services.jcr.ext.registry.RegistryService service, org.exoplatform.services.resources.LocaleConfigService localeService)
           
 
Method Summary
 org.exoplatform.commons.utils.PageList findResourceDescriptions(org.exoplatform.services.resources.Query q)
           
 org.exoplatform.services.resources.ResourceBundleData getResourceBundleData(java.lang.String id)
           
protected  java.util.ResourceBundle getResourceBundleFromDb(java.lang.String id, java.util.ResourceBundle parent, java.util.Locale locale)
           
 org.exoplatform.services.resources.ResourceBundleData removeResourceBundleData(java.lang.String id)
           
 void saveResourceBundle(org.exoplatform.services.resources.ResourceBundleData resourceData)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.exoplatform.services.resources.impl.BaseResourceBundleService
createResourceBundleDataInstance, getResourceBundle, getResourceBundle, getResourceBundle, getResourceBundle, getSharedResourceBundleNames, initParams, initResources, isClasspathResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceBundleServiceImpl

public ResourceBundleServiceImpl(org.exoplatform.container.xml.InitParams params,
                                 org.exoplatform.services.cache.CacheService cService,
                                 org.exoplatform.services.jcr.ext.registry.RegistryService service,
                                 org.exoplatform.services.resources.LocaleConfigService localeService)
                          throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable

getResourceBundleData

public org.exoplatform.services.resources.ResourceBundleData getResourceBundleData(java.lang.String id)
                                                                            throws java.lang.Exception
Specified by:
getResourceBundleData in interface org.exoplatform.services.resources.ResourceBundleService
Throws:
java.lang.Exception

removeResourceBundleData

public org.exoplatform.services.resources.ResourceBundleData removeResourceBundleData(java.lang.String id)
                                                                               throws java.lang.Exception
Specified by:
removeResourceBundleData in interface org.exoplatform.services.resources.ResourceBundleService
Throws:
java.lang.Exception

saveResourceBundle

public void saveResourceBundle(org.exoplatform.services.resources.ResourceBundleData resourceData)
                        throws java.lang.Exception
Specified by:
saveResourceBundle in interface org.exoplatform.services.resources.ResourceBundleService
Throws:
java.lang.Exception

findResourceDescriptions

public org.exoplatform.commons.utils.PageList findResourceDescriptions(org.exoplatform.services.resources.Query q)
                                                                throws java.lang.Exception
Specified by:
findResourceDescriptions in interface org.exoplatform.services.resources.ResourceBundleService
Throws:
java.lang.Exception

getResourceBundleFromDb

protected java.util.ResourceBundle getResourceBundleFromDb(java.lang.String id,
                                                           java.util.ResourceBundle parent,
                                                           java.util.Locale locale)
                                                    throws java.lang.Exception
Specified by:
getResourceBundleFromDb in class org.exoplatform.services.resources.impl.BaseResourceBundleService
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.