OpenCms中五种权限的详细解释

  在OpenCms中有5种权限,分别为Read(读)、Write(写)、View(浏览)、Control(控制)、Direct Publish(直接发布),下面分别对这5种权限做详细的解释。
 
R: R is read. If you are unable to read you are never able to do anything else with a file, like viewing it. This is hard coded in the system core.
R是读,如果你不具备read的权限,那么对于这个文件,你啥都不能做。
 
W: W is write. This covers file content, attributes and properties, but not permissions (see C below).
W是写,包括文件内容,标记(Name等等)以及属性,但不包括权限
 
V: V is View. This is basically an optional flag. Talking OpenCms 6, you can decide in your application if you want this or not by selecting the approriate org.opencms.file.CmsResourceFilter. The workplace, as one application, uses this flag. If a user has "R" permission but not "V", he will be able to read the file, but not see it displayed in the workplace.
V是浏览。这是一个可选择的标志。以OpenCms 6为例,你可以通过选择合适的CmsResourceFilter来决定在你的应用程序中是否使用View这个标志。在工作区中,做为一个应用,使用了这个标志。如果,一个用户有R的权利但是却没有V,该用户可以读这个文件,但是在工作区中却看不到这个文件。
 
C: C is Control. This is the permission to change the permissions. If you have W but not C, you can change all the content but not give other user write permissions. Thinking about it, we probably never tested what happnes if you have C but not W.
C是控制,这是改变授权的权利。对于一个文件,如果你有W但是没有C,那么,你可以修改这个文件的内容但是不能将写的权利赋予其他用户。想一想,我们还没有测试过,如果你有C,但是却没有W。
 
D: D is Direct Publish. This is a new feature in OpenCms 6 that allows an Admin to gice a user "direct publish" permissions (mostly) on a folder, without the need to create an individual project that contains only the folder. 
D是直接发布。这是OpenCms 6的一个新的特性,它允许Admin将一个目录的“直接发布”的权限赋予给一个用户,而不用再单独创建一个只包含这个文件夹的项目(Project)。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值