没有合适的资源?快使用搜索试试~ 我知道了~
Content Repository API for Java Technology Specification
4星 · 超过85%的资源 需积分: 10 10 下载量 122 浏览量
2008-09-05
15:44:28
上传
评论
收藏 955KB PDF 举报
温馨提示
试读
183页
Content Repository API for Javaô Technology Specification
资源推荐
资源详情
资源评论
1
Content Repository API
for Java™ Technology
Specification
JSR-170
2
1 PREFACE 12
1.1 Documents Included 12
1.2 Changes made from v0.7 to v0.8 12
1.2.1 RepositoryManager, Repository, Ticket Switcheroo 12
1.2.2 Credentials changed 12
1.2.3 Node Interface Simplified 13
1.2.4 Node Types (formerly Object Classes) 14
1.2.5 Property interface simplification/changes 14
1.2.6 Search 14
Level 2 now has 15
1.3 Changes made from v0.8 to v0.9 15
1.3.1 Introduction 15
1.3.2 Element becomes Item 15
1.3.3 Path Syntax 15
1.3.4 Same-Name Sibling Items 16
1.3.5 Three Layers 16
1.3.6 Namespaces 16
1.3.7 Node Reading and Writing 16
1.3.8 XML Serialization 16
1.3.9 Search 16
1.3.10 Node Types 17
1.3.11 Versioning 17
1.3.12 Observation 17
1.3.13 Locking 17
1.4 Changes made from v0.9 to v0.9.5 17
1.4.1 Serialization 17
1.4.2 Node Interface 18
1.5 Changes made from v0.9.5 to v0.10 18
1.6 Changes made from v0.10 to v0.11 18
1.7 Changes Made from v0.11 to v0.12 18
1.8 Open Issues 18
2 INTRODUCTION 19
2.1 Motivation 19
2.2 Goals 19
3 USE CASES 21
3.1 Swappability 21
3.2 Resource Crunch (Personalization) 22
4 THE REPOSITORY MODEL 24
4.1 API Basics 25
4.1.1 Direct Access 26
4.1.2 Traversal Access 27
4.1.3 Writing to the Repository 28
4.1.4 Nodes, Properties and Items 29
4.2 Compliance Levels 29
4.3 Same–Name Siblings 30
4.4 Ordering of Child Items 31
4.5 Namespace Prefixes 32
4.6 Path Syntax 33
4.7 Properties 33
4.8 Node Types 34
4.9 Workspaces and Versioning 35
4.9.1 Referenceable Nodes 35
4.9.2 Single Workspace without Versioning 36
4.9.3 Multiple Workspaces without Versioning 37
4.9.4 Multiple Workspaces with Versioning 39
4.10 Metadata 41
4.11 Hierarchical versus Direct Access 41
3
5 EXAMPLE IMPLEMENTATIONS 43
5.1 JCR on top of a File System 43
5.2 JCR on top of WebDAV 44
5.3 JCR on top of a Database 44
5.4 JCR on top of a File System with Structured Content 45
5.5 Namespace Prefixes in the Examples 47
6 LEVEL 1 REPOSITORY FUNCTIONS 49
6.1 Accessing the Repository 49
6.1.1 Repository 49
6.1.2 Credentials 49
6.1.3 Ticket 50
6.1.4 Workspace 53
6.2 Reading from the Repository 55
6.2.1 Node Methods for Reading Nodes and Properties 56
6.2.2 Property Methods for Accessing Values 58
6.2.3 Item Methods 60
6.2.4 Value 62
6.2.5 Example 64
6.3 Writing to the Repository 66
6.3.1 Adding Nodes 66
6.3.2 Adding and Writing Properties 68
6.3.3 Removing Nodes and Properties 72
6.3.4 Saving to the Persistent Level 73
6.3.5 Moving and Copying Nodes 75
6.4 Property Types 76
6.4.2 Type Conversion 78
6.4.3 Finding a Property's Type 79
6.5 Identical Items 80
6.6 Item Visitor 80
6.7 Namespaces 81
6.8 Serialization 83
6.8.1 System View XML Mapping 83
6.8.2 Document View XML Mapping 85
6.8.3 Dual Use of the XML Views 86
6.8.4 Serialization and Deserialization Methods 87
6.9 Search 89
6.9.1 The QueryManager 89
6.9.2 QueryLanguage Objects 90
6.9.3 Query Language Requirements 91
6.9.4 The Query Object 91
6.9.5 Persistent vs. Transient Queries 92
6.9.6 JCRQL 92
6.9.7 JCRQL Syntax in Detail 94
6.9.8 XPath 100
6.9.9 Query Results 109
6.9.10 Permissions 110
6.10 Node Types 111
6.10.1 What Constitutes a Node Type 111
6.10.2 Primary and Mixin Node Types 112
6.10.3 The Special Properties jcr:primaryType and jcr:mixinTypes 112
6.10.4 Property Definitions 113
6.10.5 Child Node Definitions 114
6.10.6 Assigning a Node Type to a Node 115
6.10.7 Assigning Mixin Types to a Node 115
6.10.8 Discovering the Node Types of a Node 116
6.10.9 Discovering available Node Types 116
6.10.10 Discovering the Definition of a Node Type 117
6.10.11 Property Definitions 119
6.10.12 Child Node Definitions 121
6.10.13 Residual Definitions 123
6.10.14 Value Constraints 123
4
6.10.15 Automatic Item Creation 124
6.10.16 Multiple Inheritance 124
6.10.17 Discovery of Constraints on Existing Items 125
6.10.18 Storage of Node Type Definitions in Content 125
6.10.19 Predefined Node Types 125
6.10.20 Predefines Node Types: Notation 126
6.10.21 Predefined Mixin Node Types 126
6.10.22 Primary Node Type Inheritance Graph 128
6.10.23 Serialization and Node Types 141
6.11 Multiple Parents 141
6.11.1 Cyclical Child Links 143
6.11.2 mix:referenceable Node Type 143
6.11.3 Using UUIDs During Deserialization 143
7 LEVEL 2 REPOSITORY FUNCTIONS 146
7.1 Transactions 146
7.2 Versioning 146
7.2.1 Versionable Nodes 147
7.2.2 Version Storage 148
7.2.3 The Base Version 154
7.2.4 Initializing the Version History 154
7.2.5 Creating a New Version 155
7.2.6 Restoring a Version 155
7.2.7 Checkout 156
7.2.8 Update 156
7.2.9 Merge 156
7.2.10 The OnParentVersion Attribute 156
7.2.11 The OnParentVersionAction Class 159
7.2.12 The Versioning API 159
7.2.13 Serialization of Version Storage 165
7.3 Observation 165
7.3.1 Events 166
7.3.2 Event Listeners 168
7.3.3 Vetoable Listener 168
7.3.4 When are Events Fired 169
7.3.5 Location of Listeners 169
7.3.6 Persistence of Event Listeners 170
7.3.7 Exceptions 170
7.3.8 Listener Registration and Deregistration 170
7.3.9 The Observation Manager 170
7.3.10 Quality of Service 172
7.3.11 Event Selection 172
7.3.12 Event Production 173
7.4 Access Control 176
7.4.1 Access Manager 177
7.5 Locking 179
7.5.1 Locking Support 179
7.5.2 Results of Setting a Lock 180
7.5.3 Discovery of Locking Capabilities 180
7.5.4 Lock Types 181
7.5.5 Locking Methods 181
7.5.6 The Lock Object 182
5
Document History
Version Date Main Contributors Comments
0.1 24 Apr 2002 Spec Lead
David Nuescheler
Initial Draft
0.2 10 May 2002 Authoring Group
David Nuescheler
Peeter Piegaze
Initial Review
0.3 17 May 2002 Authoring Group
David Nuescheler
Peeter Piegaze
First Consolidated Draft for Expert Group
0.4 17 Jul 2002 Expert Group
David Nuescheler
Peeter Piegaze
Tim Andersen
Ron Daniels
Second Consolidated Draft for Expert
Group
Major additions:
• Content Model
• Object Classes
• Packages
• XML Serialization
• Event Monitoring
• Use Cases
• ContentSQL
0.5 16 Sept 2002 Expert Group
David Nuescheler
Peeter Piegaze
Tim Andersen
Ron Daniels
Third Consolidated Draft for Expert Group
Major changes:
• Level 1 cleanup
• More examples
• Javadoc cleanup
0.6 26-Nov-2002 Expert Group
David Nuescheler
Peeter Piegaze
Tim Andersen
Geoff Clemm
Clarified and expanded:
• Namespaces
• Object Classes
• Property types
Added:
• Direct UUID access
Changed:
• Content Element to Element
剩余182页未读,继续阅读
资源评论
- jokienas2013-03-08需要使用到JCR相关的API在项目中,感谢分享,学习了。
xing007008
- 粉丝: 3
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 医学图像分割数据集:超声波背景下的甲状腺结节分割(包含训练集和测试集)
- 2023数学建模国赛MatheMatical-Modeling-master.zip
- 2023数学建模2023-mathematical-modeling-master.zip
- Android动画介绍-补间动画(1)
- Redis开发安装与启动的教程与代码实例.txt
- Redis Admin一个Redis管理平台,主要用于方便查看Key信息 目前支持单机Redis和Redis Cluster模式
- 真是BIM项目招标文件模板doc
- 详细介绍Spring和SpringBoot的区别
- Address book information management system
- excel图表 元素 数据分析
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功