{
final String name = person.getDisplayName();
final String request = "{\"query\":{\"recipient\":[{\"type\":\"PERSON\",\"name\":\""
+ person.getAccountId() + "\"}]}}";
filters.add(new BookmarkFilter(person.getStreamId(), name, request, person.getAvatarId(), person
.getEntityId()));
}
}
if (groups != null)
{
for (DomainGroupModelView group : groups)
{
final String name = group.getName();
final String request = "{\"query\":{\"recipient\":[{\"type\":\"GROUP\",\"name\":\""
+ group.getShortName() + "\"}]}}";
filters.add(new BookmarkFilter(group.getStreamId(), name, request, group.getAvatarId(), group
.getEntityId()));
}
}
return filters;