使用OpenCmis在Alfresco中手动更改文档的版本

编程入门 行业动态 更新时间:2024-10-26 12:25:05
本文介绍了使用OpenCmis在Alfresco中手动更改文档的版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想知道如何使用OpenCmis在Alfresco中手动更改文档版本?截至目前,当我更新文档时,每次户外更改版本本身,但我都想从用户输入(例如1.0、2.0、2.1等)更改版本。

I want to know how can we change the Document Version Manually in Alfresco using OpenCmis? As of now when i update the document, every time alfresco change the version itself but I want to change version from user input like 1.0,2.0, 2.1 etc.

例如。 document.txt 1.0, document.txt 1.1

For Eg. document.txt 1.0, document.txt 1.1

我想放置2.3版而不是document.txt 1.1

Instead of document.txt 1.1 i want to place version 2.3

推荐答案

在CMIS下无法实现您的目标。 规范强制 cmis:document 上的所有版本控制属性为只读,并且是在某些方面影响它们的唯一方法是通过Versioning API进行的,该API仅允许您指定是创建次要版本还是主要版本,以及可选的签入注释。

There's no way to accomplish your goal under CMIS. The spec mandates all versioning properties on a cmis:document to be read only, and the only way to affect them in some ways is through the Versioning API, which only allow you to specify whether you're creating a minor or a major version, and an optional checkin comment.

您将需要编写如果需要,可以对Alfresco进行一些更复杂的服务器端扩展,或者扩展内容模型以提供一个自定义属性,以将当前要存储的信息保存到版本标签中。

You will need to write some more sophisticated server side extension to Alfresco if you want to do that, or extend your content model to provide a custom property to hold the information you currently want to store into the version label.

更多推荐

使用OpenCmis在Alfresco中手动更改文档的版本

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

发布评论

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

>www.elefans.com

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