cancel
Showing results for 
Search instead for 
Did you mean: 

Space contents restriction

robertoroberto
Champ in-the-making
Champ in-the-making
Hi, Is it possible to restrict a space to contains only one content?
I want that the space "curriculum" may contains one document only.
Please help me
regards
1 REPLY 1

mikef
Champ in-the-making
Champ in-the-making
You can write a script using the JavaScript_API that is triggered by an inbound rule. The action would change the permissions on the space so that when the document is added you set permissions on the space to Consumer and on the document to Coordinator (or whatever makes sense for your use case). This will prevent any further documents being added to the space but will allow users to view/edit/delete the document as approprate.

You then have an outbound rule that resets the permissions on the space so that when the document is deleted or moved users are given permission to add documents again.

See http://wiki.alfresco.com/wiki/JavaScript_API