03-01-2011 08:14 AM
03-01-2011 10:38 AM
ScriptNode createPerson(String username)
Create a Person (cm:person) with the given user name. Returns the person node created or null if the user name already exists.
03-01-2011 11:07 AM
03-01-2011 11:19 AM
03-01-2011 11:26 AM
03-01-2011 11:33 AM
03-01-2011 11:38 AM
03-15-2011 12:55 PM
var newUserName = "newUser";
var newUserPassword = "password";
var newUser = people.createPerson(newUserName,"firstName", "lastName","myEmail@somedomain.com", newUserPassword ,true);
newUser.properties["cm:homeFolder"]=companyhome.createFolder(newUserName);
newUser.save();
03-16-2011 09:11 AM
var newUserName = "usuario";
var newUserPassword = "password";
var newUser = people.createPerson(newUserName,"nombre", "apellido","email@correo.com", newUserPassword ,true);
newUser.save();
var myfolder1 = userhome.createFolder("Memoria");
var myfolder2 = userhome.createFolder("Anteproyecto");
var myfolder3 = userhome.createFolder("Otros");
03-16-2011 11:44 AM
//Crea usuario
var newUserName = "usuario";
var newUserPassword = "password";
var newUser = people.createPerson(newUserName,"nombre", "apellido","email@correo.com", newUserPassword ,true);
newUser.save();
//Nodo que representa al usuario
var persona = people.getPerson("usuario");
//Nodo que representa el espacio de inicio del usuario
var espacioInicio = persona.properties["{http://www.alfresco.org/model/content/1.0}homeFolder"];
//Crea Carpetas
var myfolder1 = espacioInicio.createFolder("Memoria");
var myfolder2 = espacioInicio.createFolder("Anteproyecto");
var myfolder3 = espacioInicio.createFolder("Otros");
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.