cancel
Showing results for 
Search instead for 
Did you mean: 

Set Folder/Space privileges using a rule??

volkerlux
Champ in-the-making
Champ in-the-making
Hello,

while using Share Repository/Document Library i wished to have a simple rule/workflow that does the following for me: Set the privileges for folders that are name "WORK" for "consumer" and "contributor" to "no-privileges". Currently im doing this manually, but there must be an automatic solution for this. So is there a possibility to apply a rule to a site that looks for folders with a specific naming and change the folders privileges as described above??? I would be very thankful for some tips…

regards,
Volker
1 REPLY 1

darryl_staflund
Champ in-the-making
Champ in-the-making
Hi there,

I'd use an Alfresco Policy object (basically, a event callback method invoked whenever events of a certain type occur) instead of a rule to do this.  Take a look at:

http://wiki.alfresco.com/wiki/Policy_Component

to get an understanding of policies, and take a look at the 'onNodeCreatePolicy' interface as this is what you'll most likely want to implement in order to do the job.  The policy could work as follows:

* If the node type is not 'cm:folder', then exit policy.
* If folder's name is 'WORK', apply 'consumer' privs.
* etc…

Darryl