public final class ResourceBundles extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JAHIA_INTERNAL_RESOURCES |
static String |
JAHIA_TYPES_RESOURCES |
| Modifier and Type | Method and Description |
|---|---|
static void |
flushCache()
Triggers the clean up of the
ResourceBundle caches. |
static ResourceBundle |
get(JahiaTemplatesPackage pkg,
Locale locale)
Use the resource bundle lookup hierarchy of the provided template package.
|
protected static ResourceBundle |
get(List<String> bundleLookupChain,
Locale locale) |
static ResourceBundle |
get(String primaryBundleName,
JahiaTemplatesPackage pkg,
Locale locale)
Use the resource bundle lookup hierarchy of the provided template package, but first check for the specified bundle name.
|
static ResourceBundle |
get(String bundleName,
Locale locale)
Looks up a resource bundle for the specified locale
|
static ResourceBundle |
getInternal(Locale locale)
Looks up the JahiaInternalResources bundle for the specified locale
|
static String |
getResources(String key,
Locale locale,
JCRSiteNode site,
JahiaUser jahiaUser)
Find resource bundle value regarding the key, locale and site for a given Jahia user.
|
public static final String JAHIA_INTERNAL_RESOURCES
public static final String JAHIA_TYPES_RESOURCES
public static void flushCache()
ResourceBundle caches.public static ResourceBundle get(JahiaTemplatesPackage pkg, Locale locale)
pkg - the template package to use resources bundle lookup forlocale - the target localeprotected static ResourceBundle get(List<String> bundleLookupChain, Locale locale)
public static ResourceBundle get(String primaryBundleName, JahiaTemplatesPackage pkg, Locale locale)
primaryBundleName - the bundle name to peform lookup for in first turnpkg - the template package to use resources bundle lookup forlocale - the target localepublic static ResourceBundle get(String bundleName, Locale locale)
bundleName - the name of the bundle to look uplocale - the locale to look the bundle uppublic static ResourceBundle getInternal(Locale locale)
locale - the locale to look the bundle uppublic static String getResources(String key, Locale locale, JCRSiteNode site, JahiaUser jahiaUser)
key - to lookuplocale - to usesite - to look atjahiaUser - to useCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.