groupLookup.put(group.getUniqueId(), group);
}
// lookup
for (InAppNotificationDTO notif : results)
{
AvatarEntity entity = null;
switch (notif.getAvatarOwnerType())
{
case PERSON:
entity = personLookup.get(notif.getAvatarOwnerUniqueId());
break;
case GROUP:
entity = groupLookup.get(notif.getAvatarOwnerUniqueId());
break;
default:
int makeCheckstyleShutUpBecauseTheresNothingToDoHere = 1;
}
if (entity != null && entity.getAvatarId() != null)
{
notif.setAvatarId(entity.getAvatarId());
}
}
log.trace("Found {} notifications for user {}", results.size(), userId);