*/
private void initialiseEventTypeIds(final EventTypeManager eventTypeManager) {
final Collection eventTypes = eventTypeManager.getEventTypes();
final Iterator eventTypeIterator = eventTypes.iterator();
while (eventTypeIterator.hasNext()) {
EventType eventType = (EventType) eventTypeIterator.next();
final String eventName = eventType.getName();
if (PRIORITY_1_INCIDENT_RAISED.equals(eventName)) {
P1_RAISED_EVENT = eventType.getId();
} else if (_50_RESPONSE_SLA_TIME_ELAPSED.equals(eventName)) {
FIFTY_PERCENT_SLA_EVENT_ID = eventType.getId();
} else if (RESPONSE_SLA_BREACHED.equals(eventName)) {
SLA_BREACHED_EVENT_ID = eventType.getId();
} else if (FIX_KPI_BREACHED.equals(eventName)) {
FIX_KPI_BREACHED_EVENT_ID = eventType.getId();
} else if (_50_FIX_KPI_TIME_ELAPSED.equals(eventName)) {
FIFTY_PERCENT_FIX_KPI_EVENT_ID = eventType.getId();
}
}
if (P1_RAISED_EVENT == null) {
log.warn("Cannot find event named \"" + PRIORITY_1_INCIDENT_RAISED + "\"");
}