在 Orbeon Forms 中,REST API 中是否提供表单版本信息? [英] In Orbeon Forms, is form version information available in the REST API?

查看:59
本文介绍了在 Orbeon Forms 中,REST API 中是否提供表单版本信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

文档说:

此外,Oracle、MySQL 和 DB2 实现在某种程度上支持版本控制,因为它保留了旧版本.但是,这在 REST API 级别是不可见的.如果您只需要在数据库中保留旧版本,那么 Oracle、MySQL 和 DB2 实现所做的可能就足够了.最好是让 Form Runner 和 Form Builder 本地处理版本控制.

In addition, the Oracle, MySQL, and DB2 implementations support versioning to some level, in that it keeps older versions. However this is not visible at the level of the REST API. If all you need is keep older versions in the database, what the Oracle, MySQL, and DB2 implementation does might be sufficient. The best will be for Form Runner and Form Builder to handle versioning natively.

http://wiki.orbeon.com/forms/doc/developer-guide/form-runner/persistence-api#TOC-Support-for-versioning

这是否意味着我们在 REST API 中根本看不到表单版本?

Does this mean we can't see form versions at all in the REST API?

另外,我想通过 REST API 访问表单数据所有者的 USERNAME.

Also, I would like to access the USERNAME of the form data owner via the REST API.

推荐答案

文档不是最新的,我现在已经澄清了您引用的部分.

The documentation was not quite up to date and I have now clarified the section you are quoting.

底线:

  • 表单定义的版本控制是自 Orbeon Forms 以来实施的4.5.这通过 Orbeon-Form-Definition-Version 标头在 API 层公开.但是缺少此标头的文档.
  • 表单数据没有版本控制(因此在 API 级别也没有公开任何内容).
  • Versioning of form definition is implemented since Orbeon Forms 4.5. This is exposed at the API layer via the Orbeon-Form-Definition-Version header. But the documentation of this header is lacking.
  • There is no versioning of form data (so nothing exposed at the API level either).

作为一个单独的功能,关系持久性实现永远不会删除数据库行,这允许审核更改(包括表单定义和表单数据).没有为此公开 API.

As a separate feature, the relational persistence implementation never deletes database rows, which allows for auditing of changes (including form definitions and form data). There is no API exposed for this.

这篇关于在 Orbeon Forms 中,REST API 中是否提供表单版本信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆