ALF-1568 Expanded the JSON returned by the api/sites/{siteName}/invitations webscript and various other related webscripts. The JSOn now includes an "invitee" object with a structure

{  "avatar" : "avatarThumbnailURI",
   "firstName" : "John",
   "lastName" : "Smith",
   "userName" : "johnsmith"
}

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20040 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
N Smith
2010-04-29 11:14:15 +00:00
parent aa06314b72
commit f09e9b85b1
25 changed files with 367 additions and 269 deletions

View File

@@ -566,7 +566,7 @@ public class ScriptNode implements Serializable, Scopeable, NamespacePrefixResol
}
/**
* Return the target associations from this Node. As a Map of assoc name to a JavaScript array of Nodes.
* Return the target associations from this Node. As a Map of assoc type to a JavaScript array of Nodes.
* The Map returned implements the Scriptable interface to allow access to the assoc arrays via JavaScript
* associative array access. This means associations of this node can be access thus:
* <code>node.assocs["translations"][0]</code>
@@ -591,8 +591,8 @@ public class ScriptNode implements Serializable, Scopeable, NamespacePrefixResol
{
// first access of the list for this qname
nodes = new ArrayList<ScriptNode>(4);
this.targetAssocs.put(ref.getTypeQName().toString(), nodes);
}
this.targetAssocs.put(ref.getTypeQName().toString(), nodes);
nodes.add(newInstance(ref.getTargetRef(), this.services, this.scope));
}