q.addFilter("groupId", EQUAL, groupId);
return selectOne(q, "getByFolderGroup", params(folderId, groupId));
}
private List<FolderPermissionEntity> selectByGroup(final Long groupId) {
Query q = newQuery();
q.addFilter("groupId", EQUAL, groupId);
return select(q, "selectByGroup", params(groupId));
}