use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class SubjectOpViewBeanBase method createPropertyModel.
protected void createPropertyModel(String realmName) {
DelegationConfig dConfig = DelegationConfig.getInstance();
canModify = dConfig.hasPermission(realmName, null, AMAdminConstants.PERMISSION_MODIFY, getModel(), getClass().getName());
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(getPropertyXMLFileName(!canModify)));
propertySheetModel.clear();
if (canModify) {
addRemoveModel = new CCAddRemoveModel();
addRemoveModel.setShowMoveUpDownButtons("false");
addRemoveModel.clear();
propertySheetModel.setModel(VALUES_MULTIPLE_CHOICE_VALUE, addRemoveModel);
}
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class RealmResourceOfferingViewBeanBase method createPropertyModel.
protected void createPropertyModel() {
InputStream is = getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyRealmResOffering.xml");
String xml = AMAdminUtils.getStringFromInputStream(is);
propertySheetModel = new AMPropertySheetModel(xml);
propertySheetModel.clear();
createSecurityMechIDTable();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class RealmResourceOfferingEditViewBean 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/propertyRealmResOffering.xml" : "com/sun/identity/console/propertyRealmResOffering_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 MAPCreateDeviceViewBean method createPropertyModel.
private void createPropertyModel() {
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyMAPCreateDevice1.xml"));
propertySheetModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class MAPDeviceProfileViewBean method createPropertyModel.
private void createPropertyModel(String deviceName, String classification) {
MAPDeviceProfileModel model = (MAPDeviceProfileModel) getModel();
try {
propertySheetModel = new AMPropertySheetModel(model.getProfilePropertyXML(deviceName, classification));
propertySheetModel.clear();
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
Aggregations