com.bowstreet.webapp.util
Interface UserInfoHandler


public interface UserInfoHandler

The engine has no knowledge of where users come from, and relies on the AppServers to support flexible/extensible user registry integration. But, WebApp Model developers would like a common way to retrieve user information (eg, username) no matter where it comes from. This interface allows custom handlers to be written which may obtain any number of user attributes from an external user registry via an associated implementation of the UserInfo interface.


Method Summary
 UserInfo getUserInfo(javax.servlet.http.HttpServletRequest request)
          getUserInfo Custom handler based method to return a UserInfo for the specified request.
 

Method Detail

getUserInfo

UserInfo getUserInfo(javax.servlet.http.HttpServletRequest request)
getUserInfo Custom handler based method to return a UserInfo for the specified request. UserInfoHandlers know which UserInfo implementation class they are associated with, for instantiating/retrieving the UserInfo.

Returns:
UserInfo - a reference to a custom UserInfo implementation associated with the custom UserInfoHandler implementing this interface.


Copyright © 2009 IBM. All Rights Reserved.