use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2AffiliateViewBean method getExtendedAffiliationValues.
private Map getExtendedAffiliationValues() {
Map extendedValues = new HashMap();
try {
SAMLv2Model model = (SAMLv2Model) getModel();
Map attr = model.getExtendedAffiliationyAttributes(realm, entityName);
Set entries = attr.entrySet();
Iterator iterator = entries.iterator();
while (iterator.hasNext()) {
Map.Entry entry = (Map.Entry) iterator.next();
String tmp = (String) entry.getKey();
extendedValues.put((String) entry.getKey(), convertListToSet((List) entry.getValue()));
}
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
return extendedValues;
}
use of com.sun.identity.console.federation.model.SAMLv2Model 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.federation.model.SAMLv2Model 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.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2AttrAuthorityViewBean method getExtendedAttriAuthorityValues.
private Map getExtendedAttriAuthorityValues() {
Map extendedValues = new HashMap();
try {
SAMLv2Model model = (SAMLv2Model) getModel();
Map attr = model.getExtendedAttributeAuthorityAttributes(realm, entityName);
Set entries = attr.entrySet();
Iterator iterator = entries.iterator();
while (iterator.hasNext()) {
Map.Entry entry = (Map.Entry) iterator.next();
extendedValues.put((String) entry.getKey(), convertListToSet((List) entry.getValue()));
}
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
return extendedValues;
}
use of com.sun.identity.console.federation.model.SAMLv2Model in project OpenAM by OpenRock.
the class SAMLv2AttrQueryViewBean method getStandardAttrQueryValues.
private Map getStandardAttrQueryValues() {
Map map = new HashMap();
try {
SAMLv2Model model = (SAMLv2Model) getModel();
map = model.getStandardAttrQueryAttributes(realm, entityName);
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
return map;
}
Aggregations