12-16-2011 04:56 AM
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.
12-16-2011 10:33 AM
folderB.setPermission("Collaborator", person);
document.move(folderB);
folderB.removePermission("Collaborator", person);
12-16-2011 10:41 AM
12-16-2011 10:48 AM
12-16-2011 12:46 PM
12-16-2011 12:52 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.