com.raritantechnologies.prefs
Class InitPrefsUserInfoReader
java.lang.Object
com.raritantechnologies.prefs.InitPrefsUserInfoReader
- All Implemented Interfaces:
- IConfigurable, IUserInfoReader
- public class InitPrefsUserInfoReader
- extends java.lang.Object
- implements IUserInfoReader
Loads default source map selections into userInfo and/or session data cache.
XML Configuration Template:
<UserInfoReader class="com.raritantechnologies.prefs.InitPrefsUserInfoReader" >
<!-- One or more Preference Elements: -->
<Preference sessionCacheKey="[ name of session data cache key ]"
userAttribute = "[ name of user Attribute ]"
value="[ initial or default value ]" />
</UserInfoReader>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InitPrefsUserInfoReader
public InitPrefsUserInfoReader()
readUserInfo
public void readUserInfo(ILoginInfo userInfo)
- Adds user attributes to a userInfo object.
- Specified by:
readUserInfo in interface IUserInfoReader
getAllUserInfo
public ILoginInfo[] getAllUserInfo()
- Specified by:
getAllUserInfo in interface IUserInfoReader
setSessionCacheMap
public void setSessionCacheMap(java.util.Map sessionCacheMap)
- Specified by:
setSessionCacheMap in interface IUserInfoReader
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from interface:
IConfigurable
- Initializes the object from an XML tag or element.
This method is called by the Framework as part of the application initializtion.
see ConfigurationManager, XMLConfigurationManager, XMLSearchFieldMapFactory, XMLSearchSourceFactory.
Configurable objects that are owned or contained by other configurable objects will be initialized
in by the parent object.
- Specified by:
initialize in interface IConfigurable