我正在尝试更新多个记录权限。当我只更新一个记录的权限时,一切都运行良好,但是当更新多个记录时,没有任何反应。
List<QBCustomObject> qbCustomObjectList = new LinkedList<QBCustomObject>();
QBPermissions permissions = new QBPermissions();
ArrayList<String> usersIDS = new ArrayList<String>();
...
permissions.setReadPermission(QBPermissionsLevel.OPEN_FOR_USER_IDS, usersIDS);
for (int i = 0; i < qbIdsForUpdate.size(); i++) {
QBCustomObject co = new QBCustomObject("image");
co.setCustomObjectId(qbIdsForUpdate.get(i));
co.setPermission(permissions);
qbCustomObjectList.add(co);
}
QBCustomObjects.updateObjects(qbCustomObjectList, new QBCallbackImpl() {
@Override
public void onComplete(Result result) {
if (result.isSuccess()) {
QBCustomObjectMultiUpdatedResult updateResult = (QBCustomObjectMultiUpdatedResult) result;
progressDialog.dismiss();
} else {
Log.e("Errors",result.getErrors().toString());
}
}
});
答案 0 :(得分:1)
此请求中似乎存在错误。我们在其上创建问题并在不久的将来修复它。您可以逐个更新权限记录。