如何使用CMIS更新文档属性

编程入门 行业动态 更新时间:2024-10-26 22:16:15
本文介绍了如何使用CMIS更新文档属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个外部Web应用程序,通过它我可以使用CMIS连接到露天仓库。

I have one external web application through that i connected to alfresco repository using CMIS.

我已经能够将文档上载到存储库或下载n视图文件。

I am already able to upload document in to repository or able to download n view document.

现在,我的要求是,我必须更新特定的文档属性。

Now my requirement is, I have to Update Specific Documents Properties.

因此,任何人都可以提供示例代码或使用CMIS更新文档属性的步骤。

So can any one please provide sample code or steps to update document properties Using CMIS.

在此先感谢...

推荐答案

尝试一下对我来说很好

Session session = getSession(serverUrl, username, password); Document targetFile = (Document) session.getObject(path); Map<String, Object> properties = new HashMap<>(); properties.put(PropertyIds.NAME, name); targetFile.updateProperties(properties);

在我的示例中,您只需替换 name 随心所欲

In my example you only have to replace name with whatever you want

希望为您提供帮助

更多推荐

如何使用CMIS更新文档属性

本文发布于:2023-11-28 10:28:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642027.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   属性   文档   CMIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!