Try OpenEdge Now
skip to main content
BP Server Developer's Guide
Dynamic user profile : Working with the UserProfile object

Working with the UserProfile object

The BP Server Session object supports the following services to specify the user profile for a session user at runtime.
*public void setUserProfile (UserProfile userprofile)
*public UserProfile getUserProfile()
The UserProfile object contains attributes which are saved as name-value pairs in a Map. These attributes must be defined and their values must be provided by the external application. BP Server provides the following methods to access attributes through a Session object:
*public void setUserAttribute(String key, Object value)
*public Object getUserAttribute(String key)
Any change to the UserProfile object that is already associated with a session is effective only when one of the server side methods is invoked.