Web Scripts, Surf and CMIS [A Developer's Intro to Alfresco, Part 3. By Jeff Potts]
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share

Web Scripts, Surf and CMIS [A Developer's Intro to Alfresco, Part 3. By Jeff Potts]

  • 8,213 views
Uploaded on

\Web Scripts, Surf, & CMIS ...

\Web Scripts, Surf, & CMIS

What is the Web Scripts framework?
Alfresco’s REST API can be thought of in three chunks
Alfresco URLs used by Explorer and Share (tagging, comments, blogs, discussions, etc.)
CMIS URLs used for generic node operations, queries, and repository traversal
Custom URLs
Web Script Framework used to declare a URL, bind it to logic, provide views
Model-View-Controller pattern
Controller implemented in JavaScript or Java
Views implemented in FreeMarker
Deployed to the repository or the classpath


What is CMIS?
Draft OASIS specification, not a ratified standard yet
Alfresco, IBM, Microsoft, Oracle, FileNet support
Alfresco rolled out an early implementation of the draft spec as well as a unit test suite
Two parts
Interoperability through standard SOAP and RESTful bindings
SQL-based query language for rich content repositories
RESTful responses returned as extended ATOM
Think of it as a language-independent, repository-independent API for content management
CRUD functions for nodes
Check-in/check-out
Associations
Policies
Queries
Repository traversal


What is SURf?
Web application development framework built on web scripts
Essentially web scripts++
Page definition
Declarative handshakes to HTTP end points
Page, page type, and object dispatching
Includes built-in hooks for talking to Alfresco and loading objects from the repository


Surf's two-tier architecture:
- presentation tier... model objects, spring, freemarker, etc.)
- repository tier (web scripts, repository, CMIS, Social UI, content graph, etc.)


Demo

Much more to explore:
Alfresco Explorer Client Customization
Behaviors
Metadata Extractors
Transformers
Advanced Workflow (JBoss jBPM)
Permissions
Authentication against LDAP
Web Services API
AMPs
Import/Export
Web Content Management
Sandboxes
Web Forms
Deployment


More information and resources:
Alfresco Developer Guide
http://www.packtpub.com/alfresco-developer-guide/book
Alfresco Content Community
http://share.alfresco.com
Alfresco Forums
http://forums.alfresco.com
Alfresco Wiki
http://wiki.alfresco.com
Alfresco Blogroll
http://blogs.alfresco.com/planet/
ECM Architect
http://ecmarchitect.com
Optaros Home Page
http://www.optaros.com

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
  • Jogando.net/mu - 10

    Olá, venho divulgar o melhor servidor de MU on-line do
    Brasil.
    -Season 6 Ep. 3 em todos os Servers. Sendo 7 servers diferenciados proporcionando sua diversão,
    VEJA ALGUMAS NOVIDADES :
    - NOVOS KITS : DEVASTATOR e SUPREMO DIAMOND V2 com Rings e Pendat Mysthical ;
    - Novos Shields Power v3 18 opts;
    - Novas Asas, Rings e Shields JDiamonds;
    - Novas compras com troca de asas e shields para asas e shields JDiamond.
    - Conheça também o site de Animes Cloud: http://www.animescloud.com, mais de 20.000 videos online.
    E NÃO PERCA ~> 1ª Mega Maratona Jogando.net ~> MAIS DE 30 DIAS DE EVENTOS .
    ENTRE JÁ NO SITE : http://www.jogando.net/mu/ >> CADASTRE-SE E GANHE 5 DIAS DE VIP
    Are you sure you want to
    Your message goes here
  • cannot download again :)
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
8,213
On Slideshare
8,159
From Embeds
54
Number of Embeds
5

Actions

Shares
Downloads
418
Comments
2
Likes
5

Embeds 54

http://www.slideshare.net 29
http://www.techgig.com 21
http://swazzy.com 2
http://www.alfresco.com 1
http://www.slideee.com 1

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. A Developer’s Introduction to the Alfresco Platform Part One: Learning Your Way Around Part Two: The Content Model, Rules & Actions Part Three: Web Scripts, Surf, & CMIS Jeff Potts Content Management Practice Lead
  • 2. Recap
    • In Part Two we looked at some very basic building blocks within the Alfresco platform
      • Custom content model
      • Rules
      • Actions
    • In Part One we looked at a pattern for custom content- centric apps
  • 3. What is the Web Script Framework?
    • Alfresco’s REST API can be thought of in three chunks
      • Alfresco URLs used by Explorer and Share (tagging, comments, blogs, discussions, etc.)
      • CMIS URLs used for generic node operations, queries, and repository traversal
      • Custom URLs
    • Web Script Framework used to declare a URL, bind it to logic, provide views
      • Model-View-Controller pattern
      • Controller implemented in JavaScript or Java
      • Views implemented in FreeMarker
    • Deployed to the repository or the classpath
  • 4. What is CMIS?
    • Draft OASIS specification, not a ratified standard yet
      • Alfresco, IBM, Microsoft, Oracle, FileNet support
      • Alfresco rolled out an early implementation of the draft spec as well as a unit test suite
    • Two parts
      • Interoperability through standard SOAP and RESTful bindings
      • SQL-based query language for rich content repositories
    • RESTful responses returned as extended ATOM
    • Think of it as a language-independent, repository-independent API for content management
      • CRUD functions for nodes
      • Check-in/check-out
      • Associations
      • Policies
      • Queries
      • Repository traversal
  • 5. What is Surf?
    • Web application development framework built on web scripts
    • Essentially web scripts++
      • Page definition
      • Declarative handshakes to HTTP end points
      • Page, page type, and object dispatching
    • Includes built-in hooks for talking to Alfresco and loading objects from the repository
  • 6. Surf’s Two-Tier Architecture Connectors Model Objects Pages Templates Components Themes Associations JSON Web Scripts Repository CMIS Social UI JSON Content Graph Documents Folders Associations Aspects Presentation Tier Repository Tier Spring REST Web Scripts FreeMarker Dispatcher Surf
  • 7. Demo
    • Hello World Web Script
    • CMIS URL
    • Alfresco Developer Guide Rating Example
    • Status & Bookmark Share Dashlets
    • Green Energy Site
  • 8. Much More to Explore on Your Own
    • Alfresco Explorer Client Customization
    • Behaviors
    • Metadata Extractors
    • Transformers
    • Advanced Workflow (JBoss jBPM)
    • Permissions
    • Authentication against LDAP
    • Web Services API
    • AMPs
    • Import/Export
    • Web Content Management
      • Sandboxes
      • Web Forms
      • Deployment
  • 9. For More Information…
    • Alfresco Developer Guide
      • http://www.packtpub.com/alfresco-developer-guide/book
    • Alfresco Content Community
      • http://hosted4.alfresco.com/alfresco
    • Alfresco Forums
      • http://forums.alfresco.com
    • Alfresco Wiki
      • http://wiki.alfresco.com
    • Alfresco Blogroll
      • http://blogs.alfresco.com/planet/
    • ECM Architect
      • http://ecmarchitect.com
    • Optaros Home Page
      • http://www.optaros.com