domainGroupsByShortNamesMap.put(domainGroup.getShortName(), domainGroup);
}
// set transient data in DTOs for group and people.
PersonModelView pmv;
DomainGroupModelView gmv;
// there could be duplicates in the input list, so loop across the input list
for (DisplayInfoSettable ds : inDisplaySettables)
{
if (ds.getEntityType() == EntityType.PERSON)
{
pmv = peopleByAccountIdsMap.get(ds.getStreamUniqueKey());
if (pmv != null)
{
ds.setAvatarId(pmv.getAvatarId());
ds.setDisplayName(pmv.getDisplayName());
}
}
else if (ds.getEntityType() == EntityType.GROUP)
{
gmv = domainGroupsByShortNamesMap.get(ds.getStreamUniqueKey());
if (gmv != null)
{
ds.setAvatarId(gmv.getAvatarId());
ds.setDisplayName(gmv.getDisplayName());
}
}
}
return inDisplaySettables;