質問

I'm developing an Alfresco client which uses the OpenCMIS (Apache Chemistry) to upload files into Alfresco. I would like to know if there is a way to make a single file read-only for everyone.

Thanks, Miretz

役に立ちましたか?

解決

In theory, you'll need to use CMIS to alter the Access Controls on the node to change the permissions.

However...

From what you've described, I think your node will have "Inherit Permissions" turned on. This means that you can grant additional permissions with CMIS, via the Access Controls functionality, but you can't remove any permissions that come from the parent. This Alfresco forum thread has more on it. Currently, I believe you'll need to use a tiny bit of Alfresco code (rule JS, Java, WebScript etc) to turn off the "Inherit Permissions" on your node. You can then use CMIS to grant people read access to it, without write (Consumer)

他のヒント

At the moment you can't disable inherited permissions.

So what Can you do?

  1. Get ALL the ACL's of the object you just uploaded/submitted to Alfresco. Set these to Read.
  2. Create a rule/behaviour in the folder-tree where you save documents and disable the inherit permissions.
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top