com.raritantechnologies.prefs
Class InitPrefsUserInfoReader

java.lang.Object
  extended bycom.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>
 


Constructor Summary
InitPrefsUserInfoReader()
           
 
Method Summary
 ILoginInfo[] getAllUserInfo()
           
 void initialize(org.w3c.dom.Element elem)
          Initializes the object from an XML tag or element.
 void readUserInfo(ILoginInfo userInfo)
          Adds user attributes to a userInfo object.
 void setSessionCacheMap(java.util.Map sessionCacheMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitPrefsUserInfoReader

public InitPrefsUserInfoReader()
Method Detail

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