Introduction to CQ5

39,897 views
39,512 views

Published on

A brief introduction to CQ5.

Published in: Education, Technology
2 Comments
12 Likes
Statistics
Notes
No Downloads
Views
Total views
39,897
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
899
Comments
2
Likes
12
Embeds 0
No embeds

No notes for slide

Introduction to CQ5

  1. 1. Introduction to CQ5 Michele Mostarda michele.mostarda@gmail.com www.michelemostarda.com
  2. 2. Outline •CQ5 Overall Architecture •JCR •Jackrabbit •Sling •Felix •CQ5 Functional Aspects •CRX •CQ5 Authoring •CQDE •Package Manager •FileVault •References
  3. 3. CQ5 CQ5 OSGi Sling Jackrabbit
  4. 4. 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)
  5. 5. Java Content Repository (2) JCR : CAS = JDBC : DB
  6. 6. 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.
  7. 7. 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.
  8. 8. Java Content Repository (5)
  9. 9. Java Content Repository (6) Abstract Query Model Language Bindings AQM JCR-SQL2 type Query ::= Query ::= 'SELECT' columns Source source, 'FROM' Source Constraint? constraint, ['WHERE' Constraint] Ordering* orderings, ['ORDER BY' orderings] Column* columns
  10. 10. Jackrabbit
  11. 11. 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.).
  12. 12. Sling (2) • Wiki • Digital Asset Management • Web Content Management
  13. 13. Sling (3)
  14. 14. Sling (4)
  15. 15. 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)
  16. 16. Felix http://localhost:4502/system/console/bundles
  17. 17. CQ5 - Functional Aspects Authoring with CQ Administering CQ Publishing and restoring Managing pages Users and Groups Social Collaboration pages Working with Workflows Digital Assets Personalization Analytics Tagging Reporting Developing with CQ Components Templates OSGi Bundles AAA Workflows
  18. 18. CRX - Repository Browsing http://localhost:4502/crx/index.jsp
  19. 19. CQ5 Authoring (1) http://localhost:4502/libs/wcm/auth/content/login.html?resource=/libs/wcm/content/welcome.html
  20. 20. CQ5 Authoring (2)
  21. 21. CQDE
  22. 22. Package Manager
  23. 23. FileVault http://dev.day.com/docs/en/cq/current/developing/developmenttools/developing_with_eclipse.html
  24. 24. References Official 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/
  25. 25. EOF

×