* This should be the bundle base path * eg, alfresco/messages/errors * or, workspace://SpaceStore/app:company_home/app:dictionary/app:labels/cm:errors *
* Once registered the messages will be available via getMessage, assuming the * bundle resource exists at the given path location. * * @param bundleBaseName the bundle base path */ public void registerResourceBundle(String bundleBasePath); /** * Get message from registered resource bundle. * * @param messageKey message key * @return localised message string, null if not found */ public String getMessage(String messageKey); /** * Get a localised message string * * @param messageKey the message key * @param locale override the current locale * @return the localised message string, null if not found */ public String getMessage(final String messageKey, final Locale locale); /** * Get a localised message string, parameterized using standard MessageFormatter. * * @param messageKey message key * @param params format parameters * @return the localised string, null if not found */ public String getMessage(String messageKey, Object ... params); /** * Get a localised message string, parameterized using standard MessageFormatter. * * @param messageKey the message key * @param locale override current locale * @param params the localised message string * @return the localised string, null if not found */ public String getMessage(String messageKey, Locale locale, Object ... params); /** * Unregister a resource bundle *
* This should be the bundle base path * eg alfresco/messages/errors * or workspace://SpaceStore/app:company_home/app:dictionary/app:labels/cm:errors *
* Once unregistered the messages will no longer be available via getMessage
*
* @param bundleBaseName the bundle base path
*/
public void unregisterResourceBundle(String resBundlePath);
/**
* Get message resource bundle from the repository
*
* note: also used by Web Client (ResourceBundleWrapper)
*
* @param storeRef store ref
* @param path repository path (XPath)
* @param locale locale
* @return input stream
*/
public InputStream getRepoResourceBundle(StoreRef storeRef, String path, Locale locale);
/**
* Get set of registered message resource bundles
*
* @return set of registered bundles
*/
public Set