String pageUrl = getFolderFromPageUrl(path);
List<ContentPermissionEntity> pagePermissions =
getContentPermissionBusiness().selectByUrl(pageUrl);
//logger.info(pagePermissions.size());
for (ContentPermissionEntity perm : pagePermissions) {
FolderPermissionEntity p = new FolderPermissionEntity();
p.setId(-perm.getId());
p.setPermission(FolderPermissionType
.fromContentPermissionType(perm.getPermission()));
p.setFolderId(folder.getId());
p.setGroupId(perm.getGroupId());
result.add(p);
}
}
return result;
}