use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class SAMLv2PEPViewBean method createPropertyModel.
protected void createPropertyModel() {
retrieveCommonProperties();
if (isHosted()) {
psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySAMLv2PEPHosted.xml"));
} else {
psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream("com/sun/identity/console/propertySAMLv2PEPRemote.xml"));
}
psModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class SubConfigEditViewBean method createPropertyModel.
private void createPropertyModel() {
try {
SubConfigModel model = (SubConfigModel) getModel();
propertySheetModel = new AMPropertySheetModel(model.getEditConfigPropertyXML(getClass().getName()));
propertySheetModel.clear();
} catch (AMConsoleException e) {
setInlineAlertMessage(CCAlert.TYPE_ERROR, "message.error", e.getMessage());
}
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class FSAuthDomainsEditViewBean method createPropertyModel.
private void createPropertyModel() {
DelegationConfig dConfig = DelegationConfig.getInstance();
String startDN = AMModelBase.getStartDN(getRequestContext().getRequest());
boolean canModify = dConfig.hasPermission(startDN, null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
// TBD: need to have one propertysheet which is read_only
String xmlFile = (canModify) ? "com/sun/identity/console/propertyCOTEdit.xml" : "com/sun/identity/console/propertyCOTEdit.xml";
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xmlFile));
if (addRemoveModel == null)
addRemoveModel = new CCAddRemoveModel();
propertySheetModel.setModel(ADD_REMOVE_PROVIDERS, addRemoveModel);
propertySheetModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class FSSAMLSiteIDEditViewBean method createPropertyModel.
protected void createPropertyModel() {
DelegationConfig dConfig = DelegationConfig.getInstance();
String startDN = AMModelBase.getStartDN(getRequestContext().getRequest());
boolean canModify = dConfig.hasPermission(startDN, null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
// TBD : add readonly xml back
// "com/sun/identity/console/propertyFSSAMLSiteIDProfile_Readonly.xml";
String xmlFile = (canModify) ? "com/sun/identity/console/propertyFSSAMLSiteIDProfile.xml" : "com/sun/identity/console/propertyFSSAMLSiteIDProfile.xml";
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xmlFile));
propertySheetModel.clear();
}
use of com.sun.identity.console.base.model.AMPropertySheetModel in project OpenAM by OpenRock.
the class FSSAMLServiceViewBean method createPropertyModel.
private void createPropertyModel() {
DelegationConfig dConfig = DelegationConfig.getInstance();
String startDN = AMModelBase.getStartDN(getRequestContext().getRequest());
boolean canModify = dConfig.hasPermission(startDN, null, AMAdminConstants.PERMISSION_MODIFY, getRequestContext().getRequest(), getClass().getName());
// TBD: add readonly xml back
//"com/sun/identity/console/propertyFSSAMLProfile_Readonly.xml";
String xmlFile = (canModify) ? "com/sun/identity/console/propertyFSSAMLProfile.xml" : "com/sun/identity/console/propertyFSSAMLProfile.xml";
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xmlFile));
propertySheetModel.setModel(TABLE_SITE_ID, tblSiteIdModel);
propertySheetModel.setModel(TABLE_TARGET_URLS, tblTargetURLsModel);
propertySheetModel.clear();
}
Aggregations