Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Intro To Alfresco Part 3

Slide deck from an Alfresco Webinar. Event info can be found at http://blogs.alfresco.com/wp/webcasts/2009/05/alfresco-webcast-developers-guide-3-web-scripts-surf-cmis-optaros/

This presentation discusses web scripts and Surf.

Related Books

Free with a 30 day trial from Scribd

See all
  • Login to see the comments

Intro To Alfresco Part 3

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

×