本文介绍了Alfresco的RESTful服务来创建自定义元数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

事实上,我们正在建立一个创作工具,通过它的作者将prepare一些评估。评估可来样或MCQ多重选择。现在,在该评估图像/音频/视频可以是问题以及回答的一部分。现在,存储所有这些评估,我们将使用露天库。现在同时存储或创建的评估者可以定义或创建图像文件或任何类型的文件不同的自定义属性。我们要提供这些类型的设施,同时创建评估作者。现在,我们的系统可以跟不同的企业内容管理系统,这就是为什么我们计划使用露天的CMIS / RESTful服务。我们发现这些RESTful的API,通过它我们可以创建/上传在露天仓库目录/文件,但直到我们没有发现任何的RESTful API中的露天创建自定义的元数据。不要露天有任何的RESTful API创建自定义元数据/性能,同时上传/创建在露天新文件?如果没有什么其他办法?有什么办法除了配置或设置的更改使我们可以动态创建这些自定义元数据? API会好,因为我们可以直接从用户界面使用jQuery或角度使用他们..这方面的任何帮助将非常AP preciated。

Actually we are building an authoring tool through which authors will prepare some assessment. Assessment can be kind of MCQ or Multiple choice. Now in that assessment image/audio/video can be a part of question as well as answers. Now to store all these assessment we will use alfresco repository. Now while storing or creating the assessment authors can define or create different custom properties for image file or any type of file. we have to provide those kind of facilities while creating the assessment to authors. Now our system can talk to different enterprise content management system, that's why we are planning to use CMIS/RESTful services of alfresco. We found those RESTful api through which we can create/upload directory/file in an alfresco repository but till we did not find any RESTful api to create custom metadata in alfresco. Do alfresco have any RESTful API to create custom metadata/properties while uploading/creating new file in alfresco? If not what are the other ways? Is there any way apart from configuration or settings changes so that we can create those custom metadata on the fly? API will be good as because we can use them directly from UI using jquery or angular.. any help regarding this will be much appreciated.

推荐答案

的介绍了如何定义自定义内容类型和说明如何使用CMIS对在模型中定义的自定义属性中设置的值。

The custom content types tutorial explains how to define the custom content types and shows how to use CMIS to set values on custom properties defined in your model.

如果您需要更多的例子,<一个href=\"https://$c$c.google.com/p/alfresco-api-java-examples/source/browse/file-loader/src/main/java/com/alfresco/cmis/example/LoadFiles.java\"相对=nofollow>此处之一。它示出了从一个目录上载在机器上的文件和纬度/经度被设置为属性。这些都是外的现成物业,但他们可以很容易地被自定义属性,因为在你如何设置外的开箱性能与自定义属性没有区别。

If you need additional examples, here is one. It shows files being uploaded from a directory on your machine and the latitude/longitude being set as properties. Those are out-of-the-box properties but they could just as easily be custom properties because there is no difference in how you set out-of-the-box properties versus custom properties.

这个例子是用Java编写的,但它使用OpenCMIS和宁静的AtomPub绑定。 CMIS也有一个浏览器绑定,如果你正在使用jQuery或角度讲,直接绑定您可能会发现有用的。你可以阅读更多有关浏览器的的。

The example is written in Java, but it uses OpenCMIS and the AtomPub restful binding. CMIS also has a browser binding which you may find useful if you are using jquery or angular to talk to the binding directly. You can read more about the Browser Binding in the CMIS 1.1 spec.

这篇关于Alfresco的RESTful服务来创建自定义元数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 05:10