use of com.sun.identity.console.user.model.UMUserResourceOfferingModel in project OpenAM by OpenRock.
the class UMUserResourceOfferingViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
setPageSessionAttribute(getTrackingTabIDName(), Integer.toString(TAB_SERVICES));
String userId = (String) getPageSessionAttribute(EntityEditViewBean.UNIVERSAL_ID);
UMUserResourceOfferingModel model = (UMUserResourceOfferingModel) getModel();
String[] arg = { model.getUserName(userId) };
ptModel.setPageTitleText(MessageFormat.format(model.getLocalizedString("title.user.resource.offering"), arg));
try {
populateTableModel(model.getUserDiscoEntry(userId));
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
Aggregations