private void readFolderPermissions(Element element, FolderEntity folder) {
for (Element permElement : (List<Element>)element.elements("permission")) {
GroupEntity group = getDao().getGroupDao().getByName(
permElement.elementText("group"));
FolderPermissionType permission = FolderPermissionType.valueOf(
permElement.elementText("permissionType"));
getBusiness().getFolderPermissionBusiness().setPermission(
folder, group, permission);
}
}