public ServiceResponse save(Map<String, String> vo) {
try {
GroupEntity group = getDao().getGroupDao().getById(Long.valueOf((
vo.get("groupId"))));
if (group == null) {
throw new ServiceException(Messages.get("group_not_found"));
}
FolderEntity folder = getDao().getFolderDao().getById(
Long.valueOf(vo.get("folderId")));
if (folder == null) {
throw new ServiceException(Messages.get("folder.not_found",
vo.get("folderId")));
}
FolderPermissionType perm = FolderPermissionType.valueOf(
vo.get("permission"));
getBusiness().getFolderPermissionBusiness().setPermission(