return (from <= _time && _time <= to);
}
private ESeverity getHighestUnreadSeverity() {
ESeverity maxSeverity = null;
Map<String, Long> readServiceAlerts = _user.getReadServiceAlerts();
for (ServiceAlertBean situation : _situations) {
if (isSituationUnread(readServiceAlerts, situation)) {
ESeverity s = situation.getSeverity();
if (s == null)
s = ESeverity.UNDEFINED;
if (maxSeverity == null
|| maxSeverity.getNumericValue() < s.getNumericValue())
maxSeverity = s;
}
}
return maxSeverity;
}