JSR-170(JCR)的内容模型

  JSR-170 就是 Java Community Process 中针对 J ava Content Repository Java 内容仓库)的 规范。 JSR-170 javax.jcr 名称空间中提供了统一的 API ,允许以厂商中立的方式访问任何符合规范的仓库实现。其优势在于没有捆绑到任何特定的底层架构上。你可以用文件系统、WebDAV 仓库、XML或 RDB 来实现后端数据存储,而这些对于前端应用都是透明的。并且JSR-170 规划了导出 / 导入的功能,允许集成人员在各种JCR 实现之间实现无缝切换或集成。

JSR-170也标准化了一些复杂的功能,比如版本管理、访问控制和全文检索。

 本文分析JSR-170中的内容模型

 

如上图,JCR内容仓库的概念可以分为存储和定义两个部分。

左侧为存储部分。一个内容(Repository)库可以包含多个工作空间(Workspace),每个工作空间下面是一棵节点(Node)树。其中有一个节点作为工作空间的根节点。节点可以具有多个属性(Property),属性有对应的属性值(Value)。实际的内容可以存储在节点或属性中。JCR还规定了

内容的版本(Version)。在JCR中,版本也是作为节点进行存储。

右侧为定义部分。在内容库下面定义了不同的名称空间(Namespace),来存储节点类型(NodeType)定义和属性类型(PropertyType)定义。这些定义是内容的元数据,与内容一起,存储在内容仓库中。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
Day Management AG, Switzerland 11-May-2005 Release note Product: Specification for Content Repository for Java(tm) Technology API 1.0 Version: 1.0 Type: Full Release ====================================================================== 0. Index ---------------------------------------------------------------------- 1. Introduction 2. Release Contents 3. Copyright Notice 1. Introduction ---------------------------------------------------------------------- This Package contains the Specification for the Content Repository for Java(tm) Technology API. For questions or comments feel free to use jsr-170-comments@jcp.org Further information about JSR 170 can be found at http://www.jcp.org/en/jsr/detail?id=170 The Reference Implementation (RI) and the Technology Compatibility Kit (TCK) and the Specification Changelog may be downloaded from http://www.day.com/content/en/product/jsr_170.html 2. Release Contents ---------------------------------------------------------------------- All paths listed are relative to the installation directory of the ZIP file. This package consists of the following components: /docs generated Javadoc /lib pre-built API .jar-file /license Applicable License /spec Specification documents /src API Source code 3. Copyright notice ---------------------------------------------------------------------- Copyright ? 1993-2005 Day Management AG, Switzerland. All rights reserved. DAY, the DAY logo, Communiqu? ContentBus and CRX Content Repository Extreme are registered trademarks and service marks, or are trademarks and service marks, of Day Management AG, in various countries around the world. All other product names and company logos mentioned in the information, documents or other items provided or available herein may be the trademarks of their respective owners.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值