Free Sample
+ Collection

Alfresco 3 Web Services

Starting
Ugo Cei , Piergiorgio Lucidi

Build Alfresco applications using Web Services, WebScripts and CMIS
$35.99
$59.99
RRP $35.99
RRP $59.99
eBook
Print + eBook

Want this title & more?

$21.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849511520
Paperback436 pages

About This Book

  • Gain a comprehensive overview of the specifications of Web services
  • Implement the Alfresco specific Web Services
  • Get to grips with the Alfresco WebScripts and the Alfresco extensible RESTful API
  • Manipulate contents in Alfresco using different operations and APIs
  • Learn about the CMIS specification and its Alfresco implementation
  • Hands-on approach with examples built over the course of the book

 

Who This Book Is For

If you are a web developer who wants to build business applications on top of Alfresco, then this is the book for you. Basic understanding of XML, Web development concepts (HTTP, MVC) and Web Services is required.

Table of Contents

Chapter 1: Introducing the SOAP Web Services API
Web Services
Using Alfresco Web Services
Summary
Chapter 2: Creating and Modifying Content
The Content Manipulation Language (CML)
Authentication
Performing operations on nodes
Associations
Versioning
Aspects
Searching the repository
Summary
Chapter 3: Collaboration and Administration
Creating collaborative content
Managing versioning explicitly
Managing locking explicitly
Classification and categories
Authorization
Managing rules
Managing users
Summary
Chapter 4: A Complete Example
Setting up the project
The Bookshop model
Adding a book to the cart
Cart page
Managing reviews page
Changing user details
Summary
Chapter 5: Using the Alfresco Web Services from .NET
Setting up the project
Searching the repository
Performing operations
Managing child associations
Summary
Chapter 6: Introducing the Web Scripts Framework
A lightweight alternative to SOAP Web Services
REST concepts
Your first Web Script
The Model-View-Controller pattern
URL matching
Authentication
Transactions
Requesting a specific format
Configuring Web Scripts
Cache control
Deployment
Summary
Chapter 7: Templating with FreeMarker
FreeMarker concepts
Variable interpolation
Directives
Comments
Using FreeMarker in Web Scripts
A simple example
Generating an Atom Categories Document
Summary
Chapter 8: Writing a Web Script Controller in JavaScript and Java
Providing a Web Script with a JavaScript controller
Root objects
General scripting techniques
Searching the repository
The ScriptNode API
A step-by-step example—posting reviews
Writing Web Scripts in Java
Summary
Chapter 9: Putting it All Together
The Atom Publishing Protocol
Listing books by category
Creating a new book
Updating an existing book
Deleting a book
Summary
Chapter 10: Overview of CMIS
A bit of history
Objectives of CMIS
CMIS vs. JCR
The CMIS domain model
Services
Capabilities
Protocol bindings
CMIS in action
Summary
Chapter 11: The CMIS AtomPub Binding
The CMIS AtomPub binding
Summary
Chapter 12: Developing a CMIS Client using Apache Chemistry
Introducing Apache Chemistry
Downloading and installing Chemistry
The modules of the Chemistry client API
Setting up a connection
Code samples
Summary
Chapter 13: The Web Services Binding
Getting at the WSDLs
Some necessary pieces: WS-Security and WS-I Basic Profile
Browsing the repository
Inspecting objects
Acting upon objects
Summary
Chapter 14: A Complete CMIS Client Application
CMISWiki—a CMIS-based wiki
Building and running CMISWiki
The user interface
Implementation
Summary

What You Will Learn

  • Gain a comprehensive overview of the specifications of Web services
  • Learn how to manipulate contents in Alfresco using different operations and APIs
  • Build applications on top of Alfresco using Alfresco Web Services API
  • Extend the Alfresco RESTful API using WebScripts
  • Make your own different output renditions using FreeMarker
  • Explore the CMIS specification with all the details about the Alfresco implementation
  • Learn how to contact Alfresco with your client using one of the bindings of CMIS
  • Make your CMIS integration more standard using the Apache Chemistry project

 

In Detail

Alfresco 3 is the leading open source enterprise content management system that offers powerful features for interacting with the content in its repository from outside the system. These include the support for the Content Management Interoperability Services (CMIS) implementation, reusable web scripts, and a Web Services API.

This is the first book to show you how to use Web Services in Alfresco. Packed with examples, you'll learn how to build applications using Alfresco remote APIs based on SOAP and REST. You'll see how to use different APIs and bindings such as WebServices, WebScripts, and CMIS.

Alfresco 3 Web Services starts off by showing you the services exposed by the Alfresco Web Services API, and how the API fits into the Alfresco software architecture.You learn to develop your application firstly by setting up and testing your Java development environment using the Alfresco SDK in Eclipse IDE and secondly by associating the Alfresco source code and Javadocs in Eclipse.

With the help of real world practical examples, you learn how to do things like create, sort, and call Web Scripts, and invoke remote calls to Alfresco repository. To get the most from the Web Services API, you need to know about the basics of the Content Manipulation Language (CML), and the book takes you through this.

Examples such as the bookshop application show you how to sign in, change user sessions, get, remove and change public and private associated contents, manage a cart for your e-commerce application, and so on.Next, by implementing a Microsoft .NET application using the Alfresco Web Services API, you see how to perform operations against the repository from your .NET application.The book provides you with REST and SOAP concepts, their comparison, basics of the FreeMarker language, Atom Publishing Protocol, JavaScript controllers, and the Apache Chemistry project.

By the end of this book, you will be able to put together your knowledge about CMIS and the Apache Chemistry toolkit to develop a complete working application that uses Alfresco, via CMIS, as a back-end storage. Last but not the least, this book also covers the WebServices security profiles— the best practices for Web Services to promote better interoperability.

Authors

Read More

Recommended for You