PacktLib: Alfresco 3 Web Services

Alfresco 3 Web Services

Credits

About the Authors

About the Reviewers

Preface

Introducing the SOAP Web Services API

Web Services

Using Alfresco Web Services

Summary

Creating and Modifying Content

The Content Manipulation Language (CML)

Authentication

Performing operations on nodes

Associations

Versioning

Aspects

Searching the repository

Summary

Collaboration and Administration

Creating collaborative content

Managing versioning explicitly

Managing locking explicitly

Classification and categories

Authorization

Managing rules

Managing users

Summary

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

Using the Alfresco Web Services from .NET

Setting up the project

Searching the repository

Performing operations

Managing child associations

Summary

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

Templating with FreeMarker

FreeMarker concepts

Variable interpolation

Directives

Comments

Using FreeMarker in Web Scripts

A simple example

Generating an Atom Categories Document

Summary

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

Putting it All Together

The Atom Publishing Protocol

Listing books by category

Creating a new book

Updating an existing book

Deleting a book

Summary

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

The CMIS AtomPub Binding

The CMIS AtomPub binding

Summary

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

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

A Complete CMIS Client Application

CMISWiki—a CMIS-based wiki

Building and running CMISWiki

The user interface

Implementation

Summary

The CMIS Query Language

The CMIS Query Language

The CMIS Query Language

The CMIS Query Language

The CMIS Query Language