Portlet Factory, Version 6.1.2
UserInfo handlers
UserInfo handlers provide a common API for retrieving user information even when external security is used instead of the default J2EE-based security. The default UserInfo handler is configured by a property in the bowstreet.properties file. This property is:
bowstreet.webapp.UserInfoHandler=com.bowstreet.webapp.util.WebAppUserInfoHandlerThis default handler is based on J2EE servlet security and it provides access to only the logged in user's id/username. To get more information about a user, you can provide a custom implementation of a UserInfo handler that integrates with an external user store to retrieve additional user attributes.
If you supply your own UserInfoHandler, you can change this property to use your implementation by default, or you can specify that a particular UserInfoHandler (and its associated UserInfo implementation) be used for the lifetime of a particular session. You do this by setting this same property in the session instead of installation-wide in the property file. For example, a session-specific setting might look as follows:
session.setAttribute("p.webapp.UserInfoHandler", "com.acme.MyRDBMSbasedUserInfoHandler");Parent topic: Gathering user information
Library | Support |