编辑元数据中的Alfresco webscript



我修改了编辑元数据的行为,以包含我创建的一些自定义方面,一切都很好。但当我搜索该文件时,我看到edit-metadata-mgr.get.js调用了Web脚本/slingshot/edit-metadata/node/{store_type}/{store_id}/{id}现在我想知道在哪里可以找到这个网络脚本的代码?我到处找,但哪儿也找不到。。。我错过什么了吗?有人知道这些文件在哪里吗?

这是Web脚本的代码。它位于jar文件中露天共享服务-5.1

    function main()
{
   if (url.templateArgs.store_type === null)
   {
      status.setCode(status.STATUS_BAD_REQUEST, "NodeRef missing");
      return;
   }
   // nodeRef input
   var storeType = url.templateArgs.store_type,
      storeId = url.templateArgs.store_id,
      id = url.templateArgs.id,
      nodeRef = storeType + "://" + storeId + "/" + id,
      node = search.findNode(nodeRef);
   if (node === null)
   {
      status.setCode(status.STATUS_NOT_FOUND, "Not a valid nodeRef: '" + nodeRef + "'");
      return null;
   }
   model.node = node;
   if (node.parent !== null && node.parent.hasPermission("ReadProperties"))
   {
      model.parent = node.parent;
   }
}
main();

这是共享端的webscript。正如Sanjay在露天共享服务-5.1中提到的。它将在github上提供。以下是上述网络脚本的链接。

https://github.com/Alfresco/share/tree/master/share-services/src/main/resources/alfresco/templates/webscripts/org/alfresco/slingshot/edit-metadata

最新更新