use of com.sun.identity.console.agentconfig.model.AgentDumpModel in project OpenAM by OpenRock.
the class AgentDumpViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
try {
super.beginDisplay(event);
setTitle();
String universalId = (String) getPageSessionAttribute(AgentProfileViewBean.UNIVERSAL_ID);
AgentDumpModel model = (AgentDumpModel) getModel();
Map values = model.getAttributeValues(universalId);
CCStaticTextField valuesText = (CCStaticTextField) getChild(STATICTEXT_VALUES);
valuesText.setValue(getFormattedAttributes(values));
} catch (AMConsoleException amce) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", amce.getMessage());
}
}
use of com.sun.identity.console.agentconfig.model.AgentDumpModel in project OpenAM by OpenRock.
the class AgentDumpViewBean method setTitle.
protected void setTitle() {
AgentDumpModel model = (AgentDumpModel) getModel();
String universalId = (String) getPageSessionAttribute(AgentProfileViewBean.UNIVERSAL_ID);
try {
String title = model.getLocalizedString("page.title.agent.dump");
String displayName = model.getDisplayName(universalId);
Object[] param = { displayName };
ptModel.setPageTitleText(MessageFormat.format(title, param));
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
Aggregations