Class SimpleResourceBundleService
java.lang.Object
org.exoplatform.services.resources.impl.BaseResourceBundleService
org.exoplatform.services.resources.impl.SimpleResourceBundleService
- All Implemented Interfaces:
org.exoplatform.services.resources.ResourceBundleService,org.picocontainer.Startable
Created by The eXo Platform SARL Author : Tung Pham thanhtungty@gmail.com Dec
1, 2007
-
Field Summary
FieldsFields inherited from class org.exoplatform.services.resources.impl.BaseResourceBundleService
cache_, cl, classpathResources_, localeList_, localeService_, LOG, portalContainer_, portalResourceBundleNames_Fields inherited from interface org.exoplatform.services.resources.ResourceBundleService
DEFAULT_CROWDIN_LANGUAGE, DEFAULT_CROWDIN_LOCALE -
Constructor Summary
ConstructorsConstructorDescriptionSimpleResourceBundleService(org.exoplatform.container.PortalContainer portalContainer, org.exoplatform.container.xml.InitParams params, org.exoplatform.services.cache.CacheService cService, org.exoplatform.services.resources.LocaleConfigService localeService) -
Method Summary
Modifier and TypeMethodDescriptionorg.exoplatform.commons.utils.PageList<org.exoplatform.services.resources.ResourceBundleData> findResourceDescriptions(org.exoplatform.services.resources.Query q) getResourceBundleContent(String resourceBundleName, Locale locale) org.exoplatform.services.resources.ResourceBundleDataprotected ResourceBundlegetResourceBundleFromDb(String id, ResourceBundle parent, Locale locale) org.exoplatform.services.resources.ResourceBundleDatavoidsaveResourceBundle(org.exoplatform.services.resources.ResourceBundleData resourceData) Methods inherited from class org.exoplatform.services.resources.impl.BaseResourceBundleService
addResourceBundle, createResourceBundleDataInstance, getFutureCache, getInitResources_, getResourceBundle, getResourceBundle, getResourceBundle, getResourceBundle, getResourceBundleContent, getResourceBundleContent, getSharedResourceBundleNames, getSharedString, initParams, initResources, invalidate, isClasspathResource, loadResourcesForLocale, startMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.picocontainer.Startable
stop
-
Field Details
-
DEFAULT_I18N_LOCALE
-
-
Constructor Details
-
SimpleResourceBundleService
public SimpleResourceBundleService(org.exoplatform.container.PortalContainer portalContainer, org.exoplatform.container.xml.InitParams params, org.exoplatform.services.cache.CacheService cService, org.exoplatform.services.resources.LocaleConfigService localeService)
-
-
Method Details
-
getResourceBundleData
-
removeResourceBundleData
-
saveResourceBundle
public void saveResourceBundle(org.exoplatform.services.resources.ResourceBundleData resourceData) -
findResourceDescriptions
public org.exoplatform.commons.utils.PageList<org.exoplatform.services.resources.ResourceBundleData> findResourceDescriptions(org.exoplatform.services.resources.Query q) -
getResourceBundleFromDb
protected ResourceBundle getResourceBundleFromDb(String id, ResourceBundle parent, Locale locale) throws Exception - Specified by:
getResourceBundleFromDbin classBaseResourceBundleService- Throws:
Exception
-
getResourceBundleContent
-