use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2PEPViewBean method populateValue.
private void populateValue() {
SAMLv2Model model = (SAMLv2Model) getModelInternal();
try {
Map values = model.getPEPDescriptor(realm, entityName);
values.putAll(model.getPEPConfig(realm, entityName, location));
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTES);
ps.setAttributeValues(values, model);
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2PEPViewBean method handleButton1Request.
public void handleButton1Request(RequestInvocationEvent event) throws ModelControlException {
retrieveCommonProperties();
try {
SAMLv2Model model = (SAMLv2Model) getModel();
AMPropertySheet ps = (AMPropertySheet) getChild(PROPERTY_ATTRIBUTES);
// update standard metadata
Map origStdMeta = model.getPEPDescriptor(realm, entityName);
Map stdValues = ps.getAttributeValues(origStdMeta, false, model);
model.updatePEPDescriptor(realm, entityName, stdValues);
//update extended metadata
Map origExtMeta = model.getPEPConfig(realm, entityName, location);
Map extValues = ps.getAttributeValues(model.getXacmlPEPExtendedMetaMap(), false, model);
origExtMeta.putAll(extValues);
model.updatePEPConfig(realm, entityName, location, origExtMeta);
setInlineAlertMessage(CCAlert.TYPE_INFO, "message.information", "samlv2.entityDescriptor.provider.pep.updated");
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
forwardTo();
}
use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2GeneralViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
SAMLv2Model samlModel = (SAMLv2Model) getModel();
super.beginDisplay(event);
setDisplayFieldValue(samlModel.TF_NAME, entityName);
}
Aggregations