编辑元数据中的Alfresco webscript
我已经修改了编辑元数据的行为,以包括我创建的一些自定义方面,并且一切都很好。但是当我搜索文件时,我看到edit-metadata-mgr.get.js调用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
/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的链接