在工作中,利用CMIS来进行文档传输与管理,例如前端选择一个文件,基于CMIS协议,将这个文件上传到后端Repository上,同时前段也可以查询文件和对文件进行版本控制和权限控制。
什么是CMIS
CMIS(Content Management Interoperability Services)
The Content Management Interoperability Services (CMIS) standard defines a domain model and Web Services, Restful AtomPub and browser (JSON) bindings that can be used by applications to work with one or more Content Management repositories/systems.
在这里,我们可以CMIS是一种标准来进行内容管理,在本文中,我们主要用CMIS管理非结构的数据。关于Web Services, Restful AtomPub and browser (JSON) bindings 这些在下文会说,
CMIS基本概念
CMIS是基于Data Model和Service的。Data Model是一系列的实体,Service就是对这些实体的操作。
Data Model有下面的一些内容:
Repository
Object
Object-Type
Document Object
Folder Object
Relationship Object
Policy Object
Item Object
Secondary Object-Types
Object-Type Creation, Modification and Deletion
Access Control
Versioning
Query
Change Log
Retentions and Holds
Service就是对上面Data Model的CRUD操作。方法比较多这里只能举个例子:
getRepositoryInfo
createDocument
deleteObject
applyACL
getACL
CMIS实现
在定义中,我们就已经提到了Binding一词,AtomPub Binding, We