07-17-2009 05:23 AM
09-11-2009 03:41 AM
script:
{
var pathSegments = url.match.split("/");
var reference = [ url.templateArgs.store_type, url.templateArgs.store_id ].concat(url.templateArgs.id.split("/"));
var theNode = cmis.findNode(pathSegments[2], reference);
if (theNode === null)
{
status.code = 404;
status.message = "Repository " + pathSegments[2] + " " + reference.join("/") + " not found";
status.redirect = true;
break script;
}
var permissions = theNode.getPermissions();
var permissionString = "";
permissionString = permissionString + permissions;
model.permissions = permissionString;
}
<webscript>
<shortname>Retrieve list of permissions (getPermissionsCustom)</shortname>
<description>
<![CDATA[
Gets the list of permissions each user has in the specified space.
]]>
</description>
<url>/api/node/{store_type}/{store_id}/{id}/getPermissionsCustom</url>
<url>/api/path/{store_type}/{store_id}/{id}/getPermissionsCustom</url>
<authentication>guest</authentication>
<transaction allow="readonly"/>
<format default="html">argument</format>
<family>CMIS</family>
</webscript>
The ftl file:<html>
<body>
<p>Permissions : ${permissions}</p>
</body>
</html>
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.