.getGroupDao().select());
List<ContentPermissionVO> result = new ArrayList<ContentPermissionVO>();
for (ContentPermissionEntity perm : inherited) {
if (!containsPermission(direct, perm)
&& !containsPermissionVO(result, perm)) {
ContentPermissionVO vo = new ContentPermissionVO(perm);
vo.setInherited(true);
vo.setGroup(groups.get(perm.getGroupId()));
result.add(vo);
}
}
for (ContentPermissionEntity perm : direct) {
ContentPermissionVO vo = new ContentPermissionVO(perm);
vo.setInherited(false);
vo.setGroup(groups.get(perm.getGroupId()));
result.add(vo);
}
return result;
}