简体   繁体   English

Parse.com-在.csv中设置ACL以进行导入

[英]Parse.com - Set ACL in .csv for importing

I'm trying to import a database into a class. 我正在尝试将数据库导入一个类。 When I import my csv file, all the rows have Public Read/Write access for the ACL. 当我导入csv文件时,所有行均具有对ACL的“公共读/写”访问权限。 I have a few questions regarding how to set the ACL to public read only. 关于如何将ACL设置为公开只读,我有几个问题。

  1. How do I change the ACL to only public read in my .csv file so that when I import the file all the ACLs are set to public read only? 如何在.csv文件中将ACL更改为仅公共读,以便在导入文件时将所有ACL都设置为公共只读?

  2. Is there a way to set the default ACL of the class to public read so that anything I import into that class will automatically set the ACL to public read only? 有没有一种方法可以将该类的默认ACL设置为public read,以便我导入该类的任何内容都会自动将ACL设置为public read only?

My current alternative solution is to have some background CloudCode job scanning through all the rows (group of 1000) and setting the ACL for them 1 by 1 after I've imported all the data. 我当前的替代解决方案是在所有行(1000组)中进行一些后台CloudCode作业扫描,并在导入所有数据后以1对1的方式设置它们的ACL。 However, I'm expecting 10's of thousands of rows and I'm worried that this will either be very slow in the future or use up a lot of requests per second when I run the job dozens of times sequentially. 但是,我预计会有成千上万的行,而且我担心这种情况将来会很慢,或者当我连续运行数十次该作业时每秒会消耗大量请求。

Thank you. 谢谢。

-Kelvin -Kelvin

I'm sure you've figured this out, but if anyone else searches this question in the future - 我确定您已经解决了这个问题,但是如果以后有人搜索此问题,

In the dashboard for you're class, just click the "Security" button: 在您正在上课的仪表板中,只需单击“安全性”按钮:

在此处输入图片说明

Then in the popup you can set class-level permissions: 然后可以在弹出窗口中设置类级别的权限:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM