use of com.sun.identity.console.base.model.SMSubConfigComparator in project OpenAM by OpenRock.
the class AbstractAuditModel method getEventHandlerConfigurations.
/**
* Get the configuration properties of all the audit event handlers.
*
* @return A list of config objects.
*/
public List<SMSubConfig> getEventHandlerConfigurations() throws AMConsoleException {
List<SMSubConfig> subConfigModelList = new ArrayList<>();
try {
ServiceConfig serviceConfig = getServiceConfig();
if (serviceConfig == null) {
return subConfigModelList;
}
Set<String> auditHandlerNames = serviceConfig.getSubConfigNames();
for (String name : auditHandlerNames) {
ServiceConfig conf = serviceConfig.getSubConfig(name);
subConfigModelList.add(new SMSubConfig(conf.getComponentName(), name, conf.getSchemaID()));
}
sort(subConfigModelList, new SMSubConfigComparator(Collator.getInstance(getUserLocale())));
} catch (SMSException | SSOException e) {
throw new AMConsoleException(getErrorString(e));
}
return subConfigModelList;
}
Aggregations