Work with the UserProfile object
The UserProfile object is used to set and retrieve user profile data.
- Client side aggregation of previous portal versions:
- void clone()
- Enabler API:
- Not available
- iWidget API:
- Not available
- Client side aggregation of previous portal versions:
- String getAttribute(String name)
- Enabler API:
var userModel = com.ibm.mashups.enabler.user.Factory.getUserModel(); var user = userModel.findCurrentUser().start(); var result = user.getAttribute(name);
- iWidget API:
var userProfile = iContext.getUserProfile(); var result = userProfile.getItemValue(itemName);
Parent: Comparing the new and the old client-side programming model