use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.
the class SAMLv2AttrAuthorityViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTIES);
ps.init();
SAMLv2Model model = (SAMLv2Model) getModel();
ps.setAttributeValues(getStandardAttriAuthorityValues(), model);
ps.setAttributeValues(getExtendedAttriAuthorityValues(), model);
}
use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.
the class SAMLv2AttrAuthorityViewBean method handleButton1Request.
public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
try {
SAMLv2Model model = (SAMLv2Model) getModel();
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTES);
//retrieve the standard metadata values from the property sheet
Map attrAuthValues = ps.getAttributeValues(model.getStandardAttributeAuthorityAttributes(realm, entityName), false, model);
//save the standard metadata values for attribute authority
model.setStdAttributeAuthorityValues(realm, entityName, attrAuthValues);
//retrieve the extended metadata values from the property sheet
Map attrAuthExtValues = ps.getAttributeValues(model.getattrAuthEXDataMap(), false, model);
//save the extended metadata values for attribute authority
model.setExtAttributeAuthorityValues(realm, entityName, attrAuthExtValues, location);
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "samlv2.attrauth.property.updated");
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
forwardTo();
}
use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.
the class SAMLv2AuthnAuthorityViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTIES);
ps.init();
SAMLv2Model model = (SAMLv2Model) getModel();
ps.setAttributeValues(getStandardAuthnAuthorityValues(), model);
ps.setAttributeValues(getExtendedAuthnAuthorityValues(), model);
}
use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.
the class IDFFGeneralViewBean method handleButton1Request.
/**
* Handles save
*
* @param event Request invocation event
*/
public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
retrieveCommonProperties();
IDFFModel model = (IDFFModel) getModel();
try {
Map orig = model.getCommonAttributeValues(realm, entityName);
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTES);
Map values = ps.getAttributeValues(orig, false, model);
model.modifyEntityProfile(realm, entityName, values);
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "idff.entityDescriptor.provider.general.updated");
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
forwardTo();
}
use of com.sun.identity.console.base.AMPropertySheet in project OpenAM by OpenRock.
the class FSSAMLServiceViewBean method getValues.
private Map getValues(boolean modified, boolean matchPassword) throws ModelControlException, AMConsoleException {
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTE);
FSSAMLServiceModel model = (FSSAMLServiceModel) getModel();
Map origValues = model.getAttributeValues();
Map origNonTableValues = new HashMap();
origNonTableValues.putAll(origValues);
AMAdminUtils.removeMapEntries(origNonTableValues, tabledAttributes);
Map mapAttrValues = ps.getAttributeValues(origNonTableValues, modified, matchPassword, model);
Map cachedValues = (Map) getPageSessionAttribute(PROPERTY_ATTRIBUTE);
for (Iterator i = cachedValues.keySet().iterator(); i.hasNext(); ) {
String attrName = (String) i.next();
Set values = (Set) cachedValues.get(attrName);
if (tabledAttributes.contains(attrName)) {
mapAttrValues.put(attrName, values);
}
}
return mapAttrValues;
}
Aggregations