We have repository with tree folder structure, where there is only one parent folder per a huge set of subfolders number of which is constantly growing.
So, there are thousands of folders with one parent folder, and there are few such folder conglomerats.
On creation of each folder background folder rule script is executed. The rule is on root folder.
function main()
{
if (document.isContainer)
{
document.setInheritsPermissions(false);document.setPermission("Consumer", "GROUP_someGroup1");
document.setPermission("Coordinator", "GROUP_someGroup2");
document.setPermission("Coordinator", "GROUP_someGroup3");
}
}main();
The purpose is to turn off inheritence and to add default groups to each subfolder.
The rule description is
setpermissions
Description:ActiveRun in backgroundRule applied to subfolderWhen:Items are created or enter this folder
If all criteria are met:
Is of type (or sub type) 'Folder'
Perform Action:
Execute 'setpermisions.js' script
It is done via rule, because it is not possible to turn off inheritence via CMIS.
Till now we have never problems with such folder rule execution, so there we no even need to make any error logging for them.
But we have one occasion, when one subfolder was created and default groups were not added.
So the question is, does folder rule mechanism have some limitation?
Alfresco Community (Build: 201612)
Solved! Go to Solution.
Folder rules do not have any builtin limitations regarding depth, but there is an aspect rule:ignoreInheritedRules which can be applied to a folder and if applied, rules will not be inherited.
Folder rules do not have any builtin limitations regarding depth, but there is an aspect rule:ignoreInheritedRules which can be applied to a folder and if applied, rules will not be inherited.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.