return adr;
}
private AlertNotificationRest notificationToNotificationRest(AlertNotification notification) {
AlertNotificationRest anr = new AlertNotificationRest();
anr.setId(notification.getId());
anr.setSenderName(notification.getSenderName());
ConfigurationDefinition configDef = notificationMgr.getConfigurationDefinitionForSender(notification
.getSenderName());
anr.setConfig(ConfigurationHelper.configurationToMap(notification.getConfiguration(), configDef, false));
ConfigurationDefinition extraConfigDef = null;
if ("Resource Operations".equals(notification.getSenderName())) {
OperationDefinition opDef = operationMgr.getOperationDefinition(caller,
Integer.valueOf(notification.getConfiguration().getSimpleValue("operation-definition-id", "0")));
extraConfigDef = opDef.getParametersConfigurationDefinition();
}
anr.setExtraConfig(ConfigurationHelper.configurationToMap(notification.getExtraConfiguration(), extraConfigDef,
false));
return anr;
}