*/
public void restoreDefaults()
{
for (String eventType : new Vector<String>(notificationsTable.keySet()))
{
EventNotification notification = notificationsTable.get(eventType);
for (String actionType
: new Vector<String>(notification.getActions().keySet()))
removeEventNotificationAction(eventType, actionType);
removeEventNotification(eventType);
}
for (Map.Entry<String, EventNotification> entry
: defaultNotificationsTable.entrySet())
{
String eventType = entry.getKey();
EventNotification notification = entry.getValue();
for (String actionType : notification.getActions().keySet())
registerNotificationForEvent(
eventType,
actionType,
notification.getAction(actionType).getActionHandler());
}
}