cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco : rules between folders

wajdi_ghribi
Champ in-the-making
Champ in-the-making
i have two folders under alfresco share site , i want to create a rule between them in order to deny access to folder "folder2" unless folder "folder1" has 6 files inside and one of them must be named "toto.html" , did you know a feature , plug in or a module which do that.

PS , i used record management module 2.0.1-147 but it has a bug in alfresco community 4.2.c (after creating disposition schedule , complete event does not work) seems to be a common bug. Help please thx
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
There is no dynamic permission creation that I know of, so you'll need another approach. One idea would be to use a behavior. The behavior would watch for children to be added to a folder (I'd add a custom "marker" aspect to the folder so you'll have something to bind your behavior to). When the behavior notices that its folder contains six files and one of them is named toto.html, it can go find the other folder and change the permissions as you see fit.

Obviously you'll also need the behavior to watch for children being removed and renamed if it is important to change the permissions on the other folder back to "deny" if the number of files drops below six or if toto.html is renamed.

Hope that gets you pointed in the right direction.

Jeff

wajdinho
Champ in-the-making
Champ in-the-making
thx for reply ,
The behavior then ! i didnt hear about it before , did you know any documentation , tuto about how to use it
Thanks a lot!

jpotts
World-Class Innovator
World-Class Innovator
Behaviors tutorial is available <a href="http://ecmarchitect.com/images/articles/alfresco-behavior/behavior-article.pdf">here</a>. You might also be interested in the other tutorials on <a href="http://ecmarchitect.com/alfresco-developer-series">this page</a>.

Jeff