1 A JCR view of the world 1 juin 2012 14:18:09 http://localhost:4502/content/bb12.html a - jcr - node propertyA : Nodes have 0 . . N properties anotherProperty : Another value a - subfolder a - jcr - folder A JCR view of the world Everything is content, everything is a tree Bertrand Delacretaz , Senior Developer, Adobe CQ5 team. Apache Software Foundation member and (current) director @bdelacretaz - http://grep.codeconsult.ch Berlin Buzzwords 2012 Powered by Apache Sling (content and rendering) and deck.js (presentation)
16
Embed
A JCR view of the world: everything is content, everything is a tree!
Slides of my Berlin Buzzwords 2012 talk: http://berlinbuzzwords.de/sessions/jcr-view-world-everything-content-everything-tree
This talk presents a number of real-world examples of how JCR tree structures are used to store content in heavy-duty content management systems such as Adobe CQ5. We'll describe a number of macro- and micro-tree structures that expose your content in a transparent, evolvable and self-documenting way.
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1A JCR view of the world
1 juin 2012 14:18:09http://localhost:4502/content/bb12.html
a-jcr-nodepropertyA : Nodes have 0..N propertiesanotherProperty : Another value
a-subfoldera-jcr-folder
A JCR view of the world
Everything is content, everything is a tree
Bertrand Delacretaz , Senior Developer, Adobe CQ5 team.Apache Software Foundation member and (current) director@bdelacretaz - http://grep.codeconsult.ch
Berlin Buzzwords 2012Powered by Apache Sling (content and rendering) and deck.js(presentation)
2A JCR view of the world
1 juin 2012 14:18:09http://localhost:4502/content/bb12.html
JCR?
Java API for content repositories (JSR 283)
A big tree of nodes and properties.
Rich infrastructure for content-based applications.
3A JCR view of the world
1 juin 2012 14:18:09http://localhost:4502/content/bb12.html
JCR Explorer
Java API for content repositories (JSR 283)
A big tree of nodes and properties.
Rich infrastructure for content-based applications.
4A JCR view of the world
1 juin 2012 14:18:09http://localhost:4502/content/bb12.html
image_1.jpg
image_2.jpg
images
jcr:contentjcr:text : This is the text of the page.jcr:title : Title of my page
my-page
A basic website page
The jcr:content subnode will later act as a container for morecomplex content structures.
5A JCR view of the world
1 juin 2012 14:18:09http://localhost:4502/content/bb12.html
block_1
block_2
content -blocks
original .jpg
first-image-212x43.jpg
first-image-512x83.jpg
renditions
first-image.jpgimages
jcr:contentjcr:title : Title of my page
/content /my-site/my-page
A more realistic page
Uses JCR observation to generate renditions when original image isuploaded.
The first-image node is a folder, not just a file. A "micro-tree" ofcontent.
6A JCR view of the world
1 juin 2012 14:18:09http://localhost:4502/content/bb12.html
printjob _20120524 _1502incoming
done
printjob _20120524 _1458
canonMP640
Laserjet 5M
printers
printjob _20120524 _1458rejected
print-queue-example
A print queue
Jobs arrive under "incoming" and move under a printer's node whilethey are executed. Remember unix spooling?
The "rejected" folder holds jobs that could not be executed.
7A JCR view of the world
1 juin 2012 14:18:09http://localhost:4502/content/bb12.html