public class ISResourceBundle extends ListResourceBundle
This class is a subclass of java.util.ListResourceBundle
. The
method (shown below) returns an instance of ISResourceBundle, which can be
used to obtain the key and values as any other ResourceBundle.
ResourceBundle rb = ISResourceBundle.getBundle(token, "test", "en_US");
ResourceBundle.Control
Modifier and Type | Field and Description |
---|---|
static ResourceBundle |
_bundle |
parent
Modifier | Constructor and Description |
---|---|
protected |
ISResourceBundle(Map keyValues)
Non-default construtor used to create a new ISResourceBundle object This
constructor takes a Map of key-value pairs (both Strings) and uses that
Map to construct an ISResourceBundle object
|
Modifier and Type | Method and Description |
---|---|
static void |
deleteResourceBundle(SSOToken token,
String rbName,
String locale)
Deletes the specified ResourceBundle from the directory.
|
protected Object[][] |
getContents() |
static ResourceBundle |
getResourceBundle(SSOToken token,
String rbName,
Locale locale)
Returns a ResourceBundle.
|
static ResourceBundle |
getResourceBundle(SSOToken token,
String rbName,
String locale)
Returns a ResourceBundle.
|
static void |
storeResourceBundle(SSOToken token,
String rbName,
String locale,
Map attributes)
Stores or creates the ResourceBundle in the directory.
|
getKeys, handleGetObject, handleKeySet
clearCache, clearCache, containsKey, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, keySet, setParent
public static ResourceBundle _bundle
protected ISResourceBundle(Map keyValues)
keyValues
- Map of key-value pairs.public static ResourceBundle getResourceBundle(SSOToken token, String rbName, Locale locale) throws SSOException
java.util.ResourceManager
first. But if
it doesn't find the ResourceBundle in the local file system, then look
for it in the directory (data store). In the directory, it follows the
same protocol as the default ResourceManager. It looks for the specific
locale first (language and country) and if not found than language
locale, and if that is not found then the default locale.token
- Single sign-on token of the userrbName
- Name of the ResourceBundlelocale
- Specific locale of ResourceBundleSSOException
public static ResourceBundle getResourceBundle(SSOToken token, String rbName, String locale) throws SSOException
java.util.ResourceManager
first. But if
it doesn't find the ResourceBundle in the local file system, then look
for it in the directory (data store). In the directory, it follows the
same protocol as the default ResourceManager. It looks for the specific
locale first (language and country) and if not found than language
locale, and if that is not found then the default locale.token
- Single sign-on token of the userrbName
- Name of the ResourceBundlelocale
- String identifying the language and country (for example:
en_US). If this is null, then the default ResourceBundle is
returned.SSOException
- If user does not have read access to read the ResourceBundles
from directory.public static void deleteResourceBundle(SSOToken token, String rbName, String locale) throws SMSException, SSOException
token
- Single sign-on token of userrbName
- Name of ResourceBundlelocale
- String defining the locale. If null, then all the locales of
this ResourceBundle, including the default one, are deleted.SMSException
- If there is an error trying to modify the datastoreSSOException
- If this user's token has expired.public static void storeResourceBundle(SSOToken token, String rbName, String locale, Map attributes) throws SMSException, SSOException
token
- Single sign-on token of userrbName
- Name of ResourceBundlelocale
- Locale of ResourceBundle. If null, the default ResourceBundle
is updated.attributes
- Map of key-value pairs defining the ResourceBundle.SMSException
- If there is an error trying to modify the datastoreSSOException
- If this user's token has expired.protected Object[][] getContents()
getContents
in class ListResourceBundle
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.