use of com.sun.identity.console.policy.model.PolicyModel in project OpenAM by OpenRock.
the class RuleAddViewBean method beginDisplay.
public void beginDisplay(DisplayEvent event) throws ModelControlException {
super.beginDisplay(event);
if (ruleName != null) {
propertySheetModel.setValue(RULE_NAME, ruleName);
}
if (serviceType != null) {
propertySheetModel.setValue(SERVICE_TYPE, serviceType);
PolicyModel model = (PolicyModel) getModel();
Map map = model.getServiceTypeNames();
String i18nName = (String) map.get(serviceType);
propertySheetModel.setValue(SERVICE_TYPE_NAME_LBL, i18nName);
propertySheetModel.setValue(SERVICE_TYPE_NAME, i18nName);
} else {
String i18nName = (String) propertySheetModel.getValue(SERVICE_TYPE_NAME);
propertySheetModel.setValue(SERVICE_TYPE_NAME_LBL, i18nName);
}
try {
populateActionsTable(true);
} catch (AMConsoleException e) {
debug.warning("RuleAddViewBean.beginDisplay", e);
//NO-OP
}
}
use of com.sun.identity.console.policy.model.PolicyModel in project OpenAM by OpenRock.
the class RuleOpViewBeanBase method getManagedResources.
protected void getManagedResources() {
if (canModify) {
PolicyModel model = (PolicyModel) getModel();
String realmName = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
String serviceType = (String) propertySheetModel.getValue(SERVICE_TYPE);
CCSelectableList cb = (CCSelectableList) getChild(MANAGED_RESOURCES);
cb.setOptions(createOptionList(model.getManagedResources(realmName, serviceType)));
}
}
use of com.sun.identity.console.policy.model.PolicyModel in project OpenAM by OpenRock.
the class SelectConditionTypeViewBean method getTypeOptions.
protected OptionList getTypeOptions() {
PolicyModel model = (PolicyModel) getModel();
String curRealm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
return createOptionList(model.getActiveConditionTypes(curRealm), model.getUserLocale());
}
use of com.sun.identity.console.policy.model.PolicyModel in project OpenAM by OpenRock.
the class SelectReferralTypeViewBean method getTypeOptions.
protected OptionList getTypeOptions() {
PolicyModel model = (PolicyModel) getModel();
String curRealm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
return createOptionList(model.getActiveReferralTypes(curRealm), model.getUserLocale());
}
use of com.sun.identity.console.policy.model.PolicyModel in project OpenAM by OpenRock.
the class SelectResponseProviderTypeViewBean method getTypeOptions.
protected OptionList getTypeOptions() {
PolicyModel model = (PolicyModel) getModel();
String curRealm = (String) getPageSessionAttribute(AMAdminConstants.CURRENT_REALM);
return createOptionList(model.getActiveResponseProviderTypes(curRealm), model.getUserLocale());
}
Aggregations