Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
编辑元数据中的Alfresco webscript_Alfresco_Alfresco Webscripts - Fatal编程技术网

编辑元数据中的Alfresco webscript

编辑元数据中的Alfresco webscript,alfresco,alfresco-webscripts,Alfresco,Alfresco Webscripts,我已经修改了编辑元数据的行为,以包括我创建的一些自定义方面,并且一切都很好。但是当我搜索文件时,我看到edit-metadata-mgr.get.js调用webscript/slingshot/edit-metadata/node/{store\u-type}/{store\u-id}/{id} 现在我想知道在哪里可以找到这个webscript的代码?我到处找了找,但到处都找不到。。。我错过什么了吗?有人知道这些文件的位置吗?这是webscript的代码。它位于jar文件alfresco-sha

我已经修改了编辑元数据的行为,以包括我创建的一些自定义方面,并且一切都很好。但是当我搜索文件时,我看到edit-metadata-mgr.get.js调用webscript
/slingshot/edit-metadata/node/{store\u-type}/{store\u-id}/{id}

现在我想知道在哪里可以找到这个webscript的代码?我到处找了找,但到处都找不到。。。我错过什么了吗?有人知道这些文件的位置吗?

这是webscript的代码。它位于jar文件alfresco-share-services-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在alfresco-share-services-5.1中提到的那样。它将在github上提供。下面是提到的webscript的链接