08-09-2012 07:10 PM
I've got a use case where, under certain conditions, a document needs to be read-only. I'm trying to achieve this state programmatically (using a chain/script). As the platform doesn't seem to allow to add the "Immutable" facet using the DocumentModel.addFacet()
, I was wondering which alternative would be recommended:
HiddenInNavigation
facet and putting a proxy to it in its place;Thanks in advance!
08-10-2012 11:27 AM
Personally, I would modify the Access Control Entry to deny write access to everyone as it's the cleanest approach. I have done this in a number of scenarios and it works well.
08-10-2012 09:22 AM
Can the publishing feature help you ? see http://doc.nuxeo.com/x/ZIEk
Published documents are read only.
08-10-2012 11:27 AM
Personally, I would modify the Access Control Entry to deny write access to everyone as it's the cleanest approach. I have done this in a number of scenarios and it works well.
08-10-2012 03:45 PM
after experimenting a bit, the ACL seems indeed cleaner and has the nice added value of keeping the version and audit log easily accessible, unlike when publishing
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.