use of com.sun.identity.console.federation.SAMLPropertyXMLBuilder in project OpenAM by OpenRock.
the class FSSAMLTrustedPartnersEditViewBean method createPropertyModel.
protected boolean createPropertyModel() {
List profiles = (List) getPageSessionAttribute(PROFILES);
if (profiles != null) {
DelegationConfig dConfig = DelegationConfig.getInstance();
String startDN = AMModelBase.getStartDN(getRequestContext().getRequest());
boolean canModify = dConfig.hasPermission(startDN, null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
SAMLPropertyXMLBuilder builder = SAMLPropertyXMLBuilder.getInstance();
// TBD : change to set flag to Readonly (true)
if (!canModify) {
builder.setAllAttributeReadOnly(false);
}
propertySheetModel = new AMPropertySheetModel(builder.getXML(profiles, !isCreateViewBean()));
propertySheetModel.clear();
return true;
}
return false;
}
Aggregations