var referenceType = "path";
var reference = ["workspace", "SpacesStore", "Company Home","A VALIDER"];
var foundNode = search.findNode(referenceType, reference);
if (foundNode.isContainer)
{
foundNode.removePermission("Consumer","GROUP_REDACTEUR");
foundNode.setPermission("Contributor","GROUP_REDACTEUR");
}
var destination = companyhome.childByNamePath("A VALIDER");
var origine = companyhome.childByNamePath("A TRAITER");
var fichier = origine.children;
for(var i=0;i<nombreDeFichier;i++)
{
if(fichier[i].isDocument)
{
fichier[i].move(destination);
foundNode.removePermission("Contributor","GROUP_REDACTEUR");
foundNode.setPermission("Consumer","GROUP_REDACTEUR");
}
}
Echec de la création de contenu en raison d'une erreur : 111614745 Failed to execute script 'workspace://SpacesStore/bf8d8de0-7ce8-41c9-bedf-fce85d028f24': 111614744 Access refusé. Vous n'avez pas la permission de réaliser cette opération.
folderB.setPermission("Collaborator", person);
document.move(folderB);
folderB.removePermission("Collaborator", person);
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
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.