<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"
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;
var resultCall = remote.call("/api/people/" + user.name);
<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 */
[…………]
[…………]
var userHome = userhome;
var userHomeName = userHome.properties.name;
<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>
[……………..]
[……………..]
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.