return new FolderPermissionEntity(folder.getId(),
FolderPermissionType.ADMIN);
}
List<UserGroupEntity> userGroups = getDao().getUserGroupDao()
.selectByUser(user.getId());
userGroups.add(new UserGroupEntity(getDao().getGroupDao()
.getGuestsGroup().getId(), user.getId()));
List<FolderPermissionEntity> permissions =
new ArrayList<FolderPermissionEntity>();
for (UserGroupEntity userGroup : userGroups) {
FolderPermissionEntity FolderPermission = getGroupPermission(folder,