use of com.sun.identity.console.authentication.model.CoreAttributesModel in project OpenAM by OpenRock.
the class CoreAttributesViewBean method getValues.
protected Map getValues() throws ModelControlException, AMConsoleException {
Map values = null;
CoreAttributesModel model = (CoreAttributesModel) getModelInternal();
if (model != null) {
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
values = ps.getAttributeValues(model.getAttributeValues(), model);
}
return values;
}
use of com.sun.identity.console.authentication.model.CoreAttributesModel in project OpenAM by OpenRock.
the class CoreAttributesViewBean method handleButton1Request.
/**
* Handles cancel request.
*
* @param event Request invocation event.
*/
public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
try {
CoreAttributesModel model = (CoreAttributesModel) getModel();
Map original = model.getAttributeValues();
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
model.setAttributeValues(ps.getAttributeValues(original, true, model));
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "message.updated");
forwardTo();
} catch (AMConsoleException a) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", a.getMessage());
forwardTo();
}
}
Aggregations