use of com.sun.identity.console.delegation.model.DelegationConfig in project OpenAM by OpenRock.
the class EntityDiscoveryDescriptionEditViewBean 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/propertySMDiscoveryDescription.xml" : "com/sun/identity/console/propertySMDiscoveryDescription_Readonly.xml";
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xmlFile));
propertySheetModel.clear();
}
use of com.sun.identity.console.delegation.model.DelegationConfig in project OpenAM by OpenRock.
the class EntityMembersViewBean method createPropertySheetModel.
protected AMPropertySheetModel createPropertySheetModel(String type) {
String realmName = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
DelegationConfig dConfig = DelegationConfig.getInstance();
canModify = dConfig.hasPermission(realmName, null, AMAdminConstants.PERMISSION_MODIFY, getModel(), getClass().getName());
String xmlFile = (!canModify) ? "com/sun/identity/console/propertyEntityMembers_Readonly.xml" : "com/sun/identity/console/propertyEntityMembers.xml";
AMPropertySheetModel psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xmlFile));
if (canModify) {
psModel.setModel(ADD_REMOVE_MEMBERS, createAddRemoveModel());
}
return psModel;
}
use of com.sun.identity.console.delegation.model.DelegationConfig in project OpenAM by OpenRock.
the class EntityMembershipViewBean method createPropertySheetModel.
protected AMPropertySheetModel createPropertySheetModel(String type) {
String realmName = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
DelegationConfig dConfig = DelegationConfig.getInstance();
canModify = dConfig.hasPermission(realmName, null, AMAdminConstants.PERMISSION_MODIFY, getModel(), getClass().getName());
String xmlFile = (!canModify) ? "com/sun/identity/console/propertyEntityMembership_Readonly.xml" : "com/sun/identity/console/propertyEntityMembership.xml";
AMPropertySheetModel psModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(xmlFile));
if (canModify) {
psModel.setModel(ADD_REMOVE_MEMBERS, createAddRemoveModel());
}
return psModel;
}
use of com.sun.identity.console.delegation.model.DelegationConfig in project OpenAM by OpenRock.
the class PolicyOpViewBeanBase method createPropertyModel.
protected void createPropertyModel(String realmName) {
DelegationConfig dConfig = DelegationConfig.getInstance();
boolean canModify = dConfig.hasPermission(realmName, null, AMAdminConstants.PERMISSION_MODIFY, getModel(), getClass().getName());
propertySheetModel = new AMPropertySheetModel(getClass().getClassLoader().getResourceAsStream(getPropertyXMLFileName(!canModify)));
propertySheetModel.clear();
}
use of com.sun.identity.console.delegation.model.DelegationConfig in project OpenAM by OpenRock.
the class RuleOpViewBeanBase method createPropertyModel.
protected void createPropertyModel() {
String realmName = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
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();
}
Aggregations