use of com.sun.identity.console.task.model.OAuth2Model in project OpenAM by OpenRock.
the class ConfigureOAuth2ViewBean method beginDisplay.
public void beginDisplay(DisplayEvent e) {
try {
OAuth2Model model = (OAuth2Model) getModel();
Set realms = model.getRealms();
CCDropDownMenu menuRealm = (CCDropDownMenu) getChild(REALM);
menuRealm.setOptions(createOptionList(realms));
String realm = getRequestContext().getRequest().getParameter("realm");
if (realm != null && !realm.trim().isEmpty()) {
setDisplayFieldValue(REALM, realm);
}
final String titleMessage = model.getLocalizedString(TITLE_MESSAGE);
ptModel.setPageTitleText(MessageFormat.format(titleMessage, model.getDisplayName()));
ptModel.setPageTitleHelpMessage(model.getLocalizedHelpMessage());
} catch (AMConsoleException ex) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", ex.getMessage());
}
}
Aggregations