use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class SCPolicyResourceComparatorViewBeanBase method createPropertyModel.
protected void createPropertyModel() {
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySCPolicyResourceComparator.xml"));
propertySheetModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class MAPCreateDeviceTwoViewBean method createPropertyModel.
private boolean createPropertyModel() {
boolean init = false;
HttpServletRequest req = RequestManager.getRequestContext().getRequest();
if ((attrParentId == null) || (attrParentId.trim().length() == 0)) {
attrParentId = req.getParameter("MAPCreateDeviceTwo." + TF_PARENTID);
}
if ((attrClientType == null) || (attrClientType.trim().length() == 0)) {
attrClientType = req.getParameter("MAPCreateDeviceTwo." + TF_CLIENT_TYPE);
}
init = (attrParentId != null) && (attrParentId.trim().length() > 0) && (attrClientType != null) && (attrClientType.trim().length() > 0);
if (init) {
MAPCreateDeviceModel model = (MAPCreateDeviceModel) getModel();
try {
propertySheetModel = new AMPropertySheetModel(model.getCreateDevicePropertyXML(attrClientType, attrParentId));
propertySheetModel.clear();
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
return init;
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class MAPDuplicationDeviceViewBean method createPropertyModel.
private void createPropertyModel() {
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyMAPDuplicationDevice.xml"));
propertySheetModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class WSAuthNServicesHandlersViewBeanBase method createPropertyModel.
protected void createPropertyModel() {
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertyWSAuthNServicesHandlers.xml"));
propertySheetModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class WSPPServiceDSAttributeMapListEditViewBean method createPropertyModel.
protected void createPropertyModel() {
DelegationConfig dConfig = DelegationConfig.getInstance();
boolean canModify = dConfig.hasPermission("/", null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
String xmlFile = (canModify) ? "com/sun/identity/console/propertyWSPersonalProfileDSAttributeMapList.xml" : "com/sun/identity/console/propertyWSPersonalProfileDSAttributeMapList_Readonly.xml";
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xmlFile));
propertySheetModel.clear();
}
Aggregations