cq5 introduction 100113040718 phpapp01

25
Introduction to CQ5 Michele Mostarda [email protected] www.michelemostarda.com

Upload: shridharmaster

Post on 27-Nov-2015

30 views

Category:

Documents


2 download

DESCRIPTION

Java Content Repository 5

TRANSCRIPT

Outline

•CQ5 Overall Architecture•JCR•Jackrabbit•Sling•Felix•CQ5 Functional Aspects•CRX•CQ5 Authoring•CQDE•Package Manager•FileVault•References

CQ5

CQ5

Sling

Jackrabbit

OSGi

Java Content Repository (1)

• Content Repository API for Java Technology Specification

• Java Content Repository 1.0 (JSR-170)

• Java Content Repository 2.0 (JSR-283)

Java Content Repository (2)

JCR : CAS = JDBC : DB

Java Content Repository (3)

• Repository: is composed of one or more persistent workspaces.

• Workspace: directed acyclic graph of items where the edges represent the parent-child relation.

• Item: either a node or a property.

• Node: a node can have zero or more child items.

• Property: can contain zero or more values.

• Value: the content is stored in the values of the properties.

Java Content Repository (4)

• Path: identifies the location of an item.

• Identifier: every node has also an identifier.

• Property types: a property can be a primitive type or a pointer to a node.

• Node Types: a node type defines a certain structure.

• User: the user accessing the repository.

• Session: the session associated to the user, defining also authorizations.

Java Content Repository (5)

Java Content Repository (6)

Abstract Query Model

Language Bindings

JCR-SQL2 Query ::= 'SELECT' columns 'FROM' Source ['WHERE' Constraint] ['ORDER BY' orderings]

AQM type Query ::= Source source, Constraint? constraint, Ordering* orderings, Column* columns

Jackrabbit

Sling (1)

• REST based web framework.

• Content-driven, using a JCR content repository.

• Powered by OSGi.

• Scripting inside, multiple languages (JSP, server-side javascript, Scala, etc.).

Sling (2)

• Wiki

• Digital Asset Management

• Web Content Management

Sling (3)

Sling (4)

Dynamic Request Processing

▪ .esp, .ecma: ECMAScript (JavaScript) Pages (server-side execution) ▪ .jsp: Java Server Pages (server-side execution) ▪ .java: Java Servlet Compiler (server-side execution) ▪ .jst: JavaScript templates (client-side execution) ▪ .js: ECMAScript / JavaScript (client-side execution)

CQ5 - Functional AspectsAuthoring with CQ

Managing pagesPublishing and restoring

pages

Working with Workflows Digital Assets

Tagging

Administering CQ

Users and Groups Social Collaboration

Personalization Analytics

Reporting

Developing with CQ

Components Templates

OSGi Bundles AAA

Workflows

CRX - Repository Browsinghttp://localhost:4502/crx/index.jsp

CQ5 Authoring (2)

CQDE

Package Manager

ReferencesOfficial Documentation: http://dev.day.com/docs/en/cq/current.html

Day on Google Groups: http://groups.google.com/group/day-communique

Day on Yahoo Groups: http://tech.groups.yahoo.com/group/Day-Communique/

EOF