public GroupQueryBuilder addAssociatedGroupsIds(Collection<String> ids, boolean parent)
{
checkNotNullArgument(ids, "Groups ids");
for (String groupId : ids)
{
Group group = new SimpleGroup(new GroupId(groupId));
if (parent)
{
associatedParentGroups.add(group);
}