Search in sources :

Example 6 with UMUserResourceOfferingModel

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());
    }
}
Also used : AMConsoleException(com.sun.identity.console.base.model.AMConsoleException) UMUserResourceOfferingModel(com.sun.identity.console.user.model.UMUserResourceOfferingModel)

Aggregations

UMUserResourceOfferingModel (com.sun.identity.console.user.model.UMUserResourceOfferingModel)6 AMConsoleException (com.sun.identity.console.base.model.AMConsoleException)5 DiscoveryDataCache (com.sun.identity.console.service.model.DiscoveryDataCache)5 SMDiscoveryServiceData (com.sun.identity.console.service.model.SMDiscoveryServiceData)4 SMDiscoEntryData (com.sun.identity.console.service.model.SMDiscoEntryData)1 CCActionTable (com.sun.web.ui.view.table.CCActionTable)1 Iterator (java.util.Iterator)1