13
1 Web Apps atop a Content Repository © 2011 Adobe Systems Incorporated. All Rights Reserved.

Web Apps atop a Content Repository

Embed Size (px)

DESCRIPTION

Presentation for Webilea 3 in Basel.

Citation preview

Page 1: Web Apps atop a Content Repository

1

Web Appsatop a

Content Repository

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 2: Web Apps atop a Content Repository

2

About this presentation

Code demos will be done with CRX- Commercial version of the open source technology I will

talk about

- The features shown here work the same in the OS

version

- Easier to demo in CRX

- Free download of CRX

http://www.day.com/crx

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 3: Web Apps atop a Content Repository

3

We all know the challenges of Web Apps

- Rapid prototyping and

development

- Highly dynamic and extensible

- Maintainable

- We want REST

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 4: Web Apps atop a Content Repository

4

But what exactly is a Content Repository?

Let’s take Jackrabbit for an

example- Fully conforming Java Content Repository API

- Top-level Apache project

http://jackrabbit.apache.org/

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 5: Web Apps atop a Content Repository

5

What Jackrabbit has to offer

- Structured content- Hierarchy- Node types- Properties- Multi-values- Ordered nodes

http://jackrabbit.apache.org/

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 6: Web Apps atop a Content Repository

6

What Jackrabbit has to offer

- Structured content

- Unstructured content- Unstructured node type- Binaries- Unordered nodes

http://jackrabbit.apache.org/

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 7: Web Apps atop a Content Repository

7

What Jackrabbit has to offer

- Structured content

- Unstructured content

- More cool stuff- Observation- Access control- Versioning- Transactions- etc.

http://jackrabbit.apache.org/

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 8: Web Apps atop a Content Repository

8

Where Web Apps meet the Content Repository

Web Framework- Top-level Apache project

- Built on top of JCR Content Repositories

- Implements OSGI with Apache Felix

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 9: Web Apps atop a Content Repository

9

What Sling has to offer

- Scriptable application layer- JSP- Server-side JavaScript- Scala- etc.

http://sling.apache.org/

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 10: Web Apps atop a Content Repository

10

What Sling has to offer

- Scriptable application layer

- REST based- Stateless- Easy mapping of URLs to repository nodes- Render the resource in various output formats- Act on nodes with HTTP methods- Servlet resolution (resource types)

http://sling.apache.org/

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 11: Web Apps atop a Content Repository

11

What Sling has to offer

Servlet resolution?

http://sling.apache.org/

Content Servlet

resourceType

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 12: Web Apps atop a Content Repository

12

What Sling has to offer

- Scriptable application layer

- REST based

- Implements OSGI using Felix- Yet another Apache Open Source Project- Update/Patch at runtime- Extend with no downtime- Multiple versions of the same bundle- Modularize and isolate applications

http://sling.apache.org/

© 2011 Adobe Systems Incorporated. All Rights Reserved.

Page 13: Web Apps atop a Content Repository

13

Did we meet the challenge?

Rapid prototyping and

development

Highly dynamic and extensible

Maintainable

REST

And even more…© 2011 Adobe Systems Incorporated. All Rights Reserved.