14
© 2013 Tekno Point Consulting. All Rights Reserved. www.teknopoint. us Adobe AEM aka CQ5 Getting Started and More Dr. Yash Mody, PhD Tekno Point Consulting www.teknopoint.us | www.teknopoint.in

Adobe CQ5 for Developers - Introduction

Embed Size (px)

Citation preview

Page 1: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

Adobe AEM aka CQ5Getting Started and More

Dr. Yash Mody, PhD

Tekno Point Consultingwww.teknopoint.us | www.teknopoint.in

Page 2: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

• That’s where we create websites and its content

Web Content Management

• All the digital media goes here like images, documents, movies et. Al.

Digital Asset Management

• Creating campaigns, mailers and teasers using the same content.

Campaign Management

• Automate the processes. Add users, scripts and other processes. Yes can be triggered

Workflow

• Calendar, Customer ratings, Forum, Comments and the other usual stuff (FB, Twitter)

Social Collaboration

Introduction to CQ5The way developers like it

Page 3: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

Current Version – 5.6Now called as the Adobe Experience Manager

Pre-requisites – Java v1.7, 4 GB RAM (min), CRXDE And that’s apart from a valid jar and license

Installation is double clicking a JAR(No I am not kidding !)

Set up as AuthorThat’s where all the content is generated. Called the run-mode

Getting Started

Page 4: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

Key Technologies

OSGi• The Universal Middleware. Container for Bundles. Uses Apache Felix

JCR• Java content Repository. Everything is content. Implementation used –

CRX

Apache Sling

• The REST framework responsible for delivering content form JCR

CQ WCM API

• Pages, Templates, Components, Workflows and everything else CQ is made up of

EXTJs

• Sencha JavaScript framework. Used for UI

Page 5: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

Key Terms

Template• The Blue print to make a page

Pages• This is what the Author creates

Components• Part of templates and this is where

you will spend a lot of your time. JSP, JS, CSS, i18n, ExtJs

Dialog• User Interface to collect

information from an Author. Custom created. ExtJs

Widgets• Each line item in a dialog. Sits

inside a widget collection. ExtJs

Workflow• The more I tell you the more I scare

you. Model a workflow, Run it, See the inbox, Step ahead.. Phew

Page 6: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

OSGi

Bundles

• Your Java Code. Basically a Jar with some meta information

Services

• This is what you will use and write for other bundles

Blah Blah

• Modules, Runtime and Security. Class Loader example

Page 7: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

JCR Terms

Node

• It’s the structure

Properties

• And the content. Key/Value(s) format• API

Page 8: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

JCR Structure ID FN LN1 A A2 B b

Employee

AFN:A

LN:B

BFN:A

LN:BRepository Model with multiple workspaces

Structured Data

Node Data

Page 9: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

Apache Sling

REST

URL – From JCR

Protocol – HTTP

Sling HTTP Request/ Response

POST handler

Page 10: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

Too many API’s

adapTo()

Apache Sling

JCR

OSGi

WCM

Workflows

CQ WCM

adaptTo()

Page 11: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

CQ5 Architecture – Technology Stack

Page 12: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

Other Essentials

Publish and Author instances

The 4502 secret

• Default port

Sidekick & Content Finder

• On the Authoring Page. CF is used to add content (from DAM) and Sidekick to add components and more

Page 13: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

Deployment

• CQ is a powerful rendering engine built on powerful standards. CQ runs with a webserver for content delivery. Makes Sense as well

Dispatcher

• Replication Agent. Reverse Replication AgentPublish – Author

relationship

• Lives in clusters. Single instance is a cluster of 1

Load Balancing and Clustering

Page 14: Adobe CQ5 for Developers - Introduction

© 2013 Tekno Point Consulting. All Rights Reserved.www.teknopoint.us

• CQ Sites– http://localhost:4502/siteadmin• CRX – http://localhost:4502/crx/explorer• Felix – http://localhost:4502/system/console• CRXDE – http://localhost:4502/crxde

Environments