Sun Java System Portal Server 6 2005Q4 Developer's Guide |
Chapter 30
Localization Support in PAPIThe ProviderContext contains localization-aware methods such as:
- getCollectionProperty(java.lang.String Channel,java.lang.String name, boolean localized) and getCollectionProperty(java.lang.String channel, java.lang.String name, java.util.Map def, boolean localized) which gets the localized version of a collection property
- getStringProperty(java.lang.String channel, java.lang.String name, boolean localized) and getStringProperty(java.lang.String Channel,java.lang.String name, java.lang.String def, boolean localized) which gets the localized version of a String property
- getCollectionProperty(String channel, String name, List pflist), getCollectionProperty(String channel, String name, Map def, List pflist), getStringProperty(String channel, String name, List pflist), getStringProperty(String channel, String name, String def, List pflist) to support conditional properties
The ProfileProviderAdapter contains localization-aware methods such as:
- getMapProperty(java.lang.String key, boolean localized) and getMapProperty(java.lang.String key, java.lang.String def, boolean localized) which gets the localized version of a map property for the channel
- getStringProperty(java.lang.String key, boolean localized) and getStringProperty(java.lang.String key, java.lang.String def, boolean localized) which gets a localized string property for the channel
See the Javadocs for more information on these methods.