07-25-2011 03:09 AM
07-28-2011 03:15 AM
07-29-2011 02:34 AM
<cm:folder view:childName="${spaces.user_homes.childname}">
<app:uifacets/>
<cm:name>${spaces.user_homes.name}</cm:name>
<app:icon>space-icon-default</app:icon>
<cm:title>${spaces.user_homes.name}</cm:title>
<cm:description>${spaces.user_homes.description}</cm:description>
</cm:folder>
07-29-2011 03:58 AM
07-29-2011 05:01 AM
var array = new Array();
deletePermissions(space);
function deletePermissions(nodeStart) {
var count = 0;
var childrenList = nodeStart.children;
for (var i = 0; i < childrenList.length; i++) {
nodeVar = childrenList;
if (nodeVar.isContainer) {
var array[count] = new Array();
array[count][0] = nodeVar.name;
var permissions = nodeVar.permissions;
for (var j = 0; j < permissions.length; j++) {
/*var result = permissions[j];
if (result == [[[LECTURA PARA EVERYONE]]]) {
[[[QUITAR PERMISO EVERYONE]]]
}*/
array[count][j+1] = permissions[j];
}
count++;
}
}
}
var logFile = space.childByNamePath("permissions.txt");
if (logFile == null) {
logFile = space.createFile("permissions.txt");
}
var log = "************** PERMISSIONS **************\n \n";
for (var i = 0; i < array.length; i++) {
log += array[0] + "\t \n";
for (var j = 1; j < array.length; j++) {
log += "\t \t" + array[j] + "\n";
}
}
logFile.content += log;
07-29-2011 05:11 AM
08-01-2011 03:51 AM
deletePermissions(userhome, "ALLOWED", "GROUP_EVERYONE", "Consumer")
deletePermissions(companyhome.childByNamePath("Espacios personales de usuario"), "ALLOWED", "GROUP_EVERYONE", "Consumer")
08-01-2011 04:00 AM
08-01-2011 04:43 AM
08-01-2011 05:10 AM
var espacios = space.children;
for (var i=0; i< espacios.length; i++)
{
…..
}
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.