use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class SMDiscoveryBootstrapRefOffViewBeanBase method createPropertyModel.
protected void createPropertyModel() {
InputStream is = getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySMDiscoveryBootstrapResOff.xml");
String xml = AMAdminUtils.getStringFromInputStream(is);
propertySheetModel = new AMPropertySheetModel(processPropertiesXML(xml));
propertySheetModel.clear();
createSecurityMechIDTable();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class AbstractEventHandlerEditViewBean method createPropertyModel.
private void createPropertyModel() {
try {
AbstractAuditModel model = (AbstractAuditModel) getModel();
String subConfigName = (String) getPageSessionAttribute(AUDIT_HANDLER_NAME);
String realm = isGlobalService() ? "/" : (String) getPageSessionAttribute(CURRENT_REALM);
propertySheetModel = new AMPropertySheetModel(model.getEditEventHandlerPropertyXML(realm, subConfigName, getClass().getName()));
propertySheetModel.clear();
} catch (AMConsoleException e) {
setInlineAlertMessage(TYPE_ERROR, ERROR_MESSAGE, e.getMessage());
}
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class FSSAMLTrustedPartnersViewBeanBase method createPropertyModel.
private boolean createPropertyModel() {
List profiles = (List) getPageSessionAttribute(PROFILES);
if (profiles != null) {
SAMLPropertyXMLBuilder builder = SAMLPropertyXMLBuilder.getInstance();
propertySheetModel = new AMPropertySheetModel(builder.getXML(profiles, !isCreateViewBean()));
propertySheetModel.clear();
return true;
}
return false;
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class FSSAMLTargetURLsViewBeanBase method createPropertyModel.
protected void createPropertyModel() {
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyFSSAMLTargetURLsProfile.xml"));
propertySheetModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel 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