public class SimpleResourceBundleService extends BaseResourceBundleService
cache_, cl, classpathResources_, localeList_, localeService_, log_, portalContainer_, portalResourceBundleNames_| Constructor and Description |
|---|
SimpleResourceBundleService(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.cache.CacheService cService,
LocaleConfigService localeService) |
| Modifier and Type | Method and Description |
|---|---|
PageList<ResourceBundleData> |
findResourceDescriptions(Query q)
This method search and return a page description iterator
|
ResourceBundleData |
getResourceBundleData(String id)
This method should look for a resource bundle in the database that match the given id.
|
protected ResourceBundle |
getResourceBundleFromDb(String id,
ResourceBundle parent,
Locale locale) |
ResourceBundleData |
removeResourceBundleData(String id)
This method remove the data record in the databas and return the data instance after it has been removed
|
void |
saveResourceBundle(ResourceBundleData resourceData)
This method shoudl create or update a ResourceBundleData instance
|
addResourceBundle, createResourceBundleDataInstance, getFutureCache, getInitResources_, getResourceBundle, getResourceBundle, getResourceBundle, getResourceBundle, getResourceBundleContent, getResourceBundleContent, getSharedResourceBundleNames, initParams, initResources, invalidate, isClasspathResource, loadResourcesForLocale, start, stoppublic SimpleResourceBundleService(org.exoplatform.container.PortalContainer portalContainer,
org.exoplatform.container.xml.InitParams params,
org.exoplatform.services.cache.CacheService cService,
LocaleConfigService localeService)
throws Exception
Exceptionpublic ResourceBundleData getResourceBundleData(String id)
ResourceBundleServiceid - The id of the resource bundle datapublic ResourceBundleData removeResourceBundleData(String id)
ResourceBundleServiceid - The id of the data recordpublic void saveResourceBundle(ResourceBundleData resourceData)
ResourceBundleServiceresourceData - the ResourceBundleData instance to update or createpublic PageList<ResourceBundleData> findResourceDescriptions(Query q)
ResourceBundleServiceq - The search criteriaprotected ResourceBundle getResourceBundleFromDb(String id, ResourceBundle parent, Locale locale) throws Exception
getResourceBundleFromDb in class BaseResourceBundleServiceExceptionCopyright © 2017 JBoss by Red Hat. All Rights Reserved.