03-16-2012 12:53 PM
<a href="/share/page/site/Usuarios/documentlibrary#filter=path%7C/${nombreDeLaVariable?url}" style="col……
GET /alfresco/service/api/people/{userName}
Esto último lo estoy mirando en "http://localhost:8080/alfresco/service/index/all"03-19-2012 07:18 AM
var userHome = "NOT_FOUND";
var resultCall = remote.call("/alfresco/service/api/people/" + user.name);
var resultEval = eval('(' + resultCall + ')');
if(resultEval != null){
userHome = resultEval.homeFolder;
}
/*AQUI TODAVIA FALTA OBTENER EL NOMBRE DE LA CARPETA QUE REPRESENTA EL NODEID "userHome" */
model.userHomeFolderName = userHome;
03-19-2012 08:22 AM
var resultCall = remote.call("/api/people/" + user.name);
03-19-2012 11:07 AM
<webscript>
<shortname>Get User Home</shortname>
<description>Get the userHome field from alfresco</description>
<url>/getuserhome</url>
<format default="json"/>
<authentication>user</authentication>
</webscript>
{
"userhomeRef":"${userhome}"
}
var resultCallRef = remote.call("/getuserhome");
var nodeTmpRef = eval('(' + resultCallRef + ')');
if(nodeTmpRef != null){
nodeRef = nodeTmpRef.userhomeRef;
var resultCallName = remote.call("/api/metadata?nodeRef=" + nodeRef);
/* Esto aquí ya rompe */
[…………]
[…………]
03-19-2012 11:08 AM
var userHome = userhome;
var userHomeName = userHome.properties.name;
03-19-2012 11:22 AM
<webscript>
<shortname>Get User Home</shortname>
<description>Get the userHome field from alfresco</description>
<url>/getuserhome</url>
<format default="json"/>
<authentication>user</authentication>
</webscript>
{
"userhome":"${userhome.properties.name}"
}
function main()
{
var userHome = "NOT_FOUND";
// Getting user home
var resultCall = remote.call("/getuserhome");
var nodeTmp = eval('(' + resultCall + ')');
if(nodeTmp != null){
userHome = nodeTmp.userhome;
}
model.userHomeFolderName = userHome;
}
main();
[……………..]
[……………..]
<a href="/share/page/site/Usuarios/documentlibrary#filter=path%7C/${userHomeFolderName?url}" style="color: #6CA5CE; font-weight: bold;" title="Mi carpeta personal">Mi carpeta personal</a>
[……………..]
[……………..]
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.