use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class EntityOpViewBeanBase method createPropertyModel.
protected boolean createPropertyModel() {
boolean created = false;
String type = (String) getPageSessionAttribute(ENTITY_TYPE);
if ((type != null) && (type.trim().length() > 0)) {
AMPropertySheetModel psModel = createPropertySheetModel(type);
if (psModel != null) {
propertySheetModel = psModel;
propertySheetModel.clear();
}
created = true;
}
return created;
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class EntityResourceOfferingEditViewBean method createPropertyModel.
protected void createPropertyModel() {
DelegationConfig dConfig = DelegationConfig.getInstance();
canModify = dConfig.hasPermission("/", null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
String xmlFile = (canModify) ? "com/sun/identity/console/propertyEntityResOffering.xml" : "com/sun/identity/console/propertyEntityResOffering_Readonly.xml";
InputStream is = getClass().getClassLoader().getResourceAsStream(xmlFile);
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 IDRepoSelectTypeViewBean method createPropertyModel.
private void createPropertyModel() {
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyRMIDRepoSelectType.xml"));
propertySheetModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class UMUserResourceOfferingEditViewBean method createPropertyModel.
protected void createPropertyModel() {
DelegationConfig dConfig = DelegationConfig.getInstance();
canModify = dConfig.hasPermission("/", null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
String xmlFile = (canModify) ? "com/sun/identity/console/propertyUserResOffering.xml" : "com/sun/identity/console/propertyUserResOffering_Readonly.xml";
InputStream is = getClass().getClassLoader().getResourceAsStream(xmlFile);
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 UMUserResourceOfferingViewBeanBase method createPropertyModel.
protected void createPropertyModel() {
InputStream is = getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyUserResOffering.xml");
String xml = AMAdminUtils.getStringFromInputStream(is);
propertySheetModel = new AMPropertySheetModel(xml);
propertySheetModel.clear();
createSecurityMechIDTable();
}
Aggregations