Alfresco CMIS
eBook - ePub

Alfresco CMIS

  1. 272 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Alfresco CMIS

About this book

In Detail

Content Management Servers (CMS) have been around for a very long time, both proprietary and open source ones, but there has not been a standard way of talking to them until recently. The Content Management Interoperability Services (CMIS) standard provides both an application programming interface and a search language (based on SQL-92). Alfresco CMIS implementation is the basis for many existing CMIS applications, and you can use CMIS too to integrate your application with Alfresco.

Alfresco CMIS is a practical, hands-on guide that provides you with a number of clear step-by-step exercises that will help you take advantage of the real power of CMIS, and give you a good foundation in using it via HTTP/XML, Java, or scripting.It starts off with an introduction to the CMIS standard, in order to update you on the service API, object model, and query language.

The first part of the book explains how to use the service API with HTTP and XML/JSON; this is done in order to show that any library, system, or tool that can make HTTP calls and parse XML or JSON, is able to talk to a content management server that supports CMIS. Next, you learn to demonstrate how a higher abstraction library can be used to talk to a CMIS server in an easy way, hiding some of the complexities of the API using the OpenCMIS Java library. Since most of the applications that are built today are web applications, the book teaches readers how CMIS can be used from JavaScript and Groovy; enterprise application integration, taking Drupal and Mule as references.

Finally, you will learn how to talk to Alfresco Cloud service via CMIS!

Approach

The book will show readers how to use Alfrescos implementation of CMIS through a tutorial-based approach. It also has plenty of examples to help illustrate the concepts that you will learn.

Who this book is for

If you are a developer who wants to learn how to build applications that talk to content management servers in a standard way using CMIS, this book is ideal for you. It will be helpful if you have a bit of programming experience, although it is not necessary.

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Alfresco CMIS


Table of Contents

Alfresco CMIS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with CMIS
Understanding CMIS
Commercial products and companies supporting CMIS
The benefits of using CMIS
CMIS use cases
Repository to Repository (R2R)
Application to Repository (A2R)
Application to Multiple Repositories (A2MR)
An overview of the CMIS standard
The domain model (object model)
Services
Query language
Protocol bindings
RESTful AtomPub binding
Web Service binding
RESTful Browser binding (CMIS 1.1)
Summary
2. Basic CMIS Operations
Setting up a CMIS server
Installing your own CMIS server
Using cmis.alfresco.com
Setting up a tool to make HTTP requests
Authenticating with the repository
Getting repository information
Repository information via the AtomPub binding
Repository information via the Browser binding
Listing the children of the root folder
Listing the children of the root folder with the AtomPub binding
Listing the children of the root folder with the Browser binding
Optional parameters when listing the children of a folder
Optional parameters when listing the children of a folder with the AtomPub binding
Optional parameters when listing the children of a folder with the Browser binding
Listing available types and subtypes
Listing the types and subtypes with the AtomPub binding
Listing the types and subtypes with the Browser binding
Getting metadata and content
Getting metadata and content with the AtomPub binding
Getting metadata and content with the Browser binding
Creating, updating, and deleting content
Creating folders
Creating a folder with the AtomPub binding
Creating a folder with the Browser binding
Creating documents
Creating a document with the AtomPub binding
Creating a document with the Browser binding
Updating folders and documents
Updating a document with the AtomPub binding
Updating a document with the Browser binding
Deleting a folder or a document
Deleting a folder or document with the AtomPub binding
Deleting a folder or document with the Browser binding
Summary
3. Advanced CMIS Operations
Version management with check out and check in
Version management with the AtomPub binding
Checking out a document with the AtomPub binding
Cancelling the check out with the AtomPub binding
Updating the physical contents of the checked-out document with the AtomPub binding
Checking in a document with the AtomPub binding
Version management with the Browser binding
Checking out a document with the Browser binding
Cancelling the check out with the Browser binding
Updating the physical content of the checked-out document with the Browser binding
Checking in a document with the Browser binding
Managing permissions for documents and folders
Access control list capabilities
Access control concepts
Supported permissions
Allowable actions and permission mapping
Managing permissions with the AtomPub binding
Managing permissions with the Browser binding
Managing relationships between objects
Creating and reading relationships with the AtomPub binding
Creating and reading relationships with the Browser binding
Searching
Searching with the AtomPub binding
Searching with the Browser binding
CMIS query examples
A word on transactions
Summary
4. Alfresco and CMIS
Timeline
Architecture/stack
Alfresco content model mapping to the CMIS object model
Repository capabilities
Type mappings
Property mappings
Object path's explanation
Versioning
Access control
Change log
Renditions
Search
Support for Alfresco-specific features
Aspects
Tags
Categories
Summary
5. Accessing a CMIS Server with a Java Client
Setting up a build environment
Connecting and setting up a session with the repository
Connecting to a repository by ID
Getting repository information
Listing the children of the root/top folder
Optional parameters when listing the children of a folder
Listing available types and subtypes
Creating, updating, and deleting content
Creating folders
Creating documents
Updating folders and documents
Deleting a document, folder, or folder tree
Getting the content for a document
Copying and moving folders and documents
Working with Alfresco aspects
Using secondary types to manage aspects
Adding aspects when creating an object
Adding aspects to an existing object
Reading aspects
The Alfresco OpenCMIS extension to manage aspects
Adding aspects when creating an object
Adding aspects to an existing object
Reading aspects
Version management with check out and check in
Checking out a document
Updating the content of the checked-out document and then checking it in
Managing permissions for documents and folders
Managing relationships between objects
Searching
Summary
6. Accessing a CMIS Server Using Scripting Languages
Using CMIS in JavaScript and web application pages
Solving the same origin policy problem
Using jQuery
Using CMIS in Groovy scripts
Using CMIS in Spring Surf Web Scripts
Setting up a build project for Spring Surf with CMIS
Updating the Spring Surf project so that CMIS can be used
Updating the home page to display repository info via CMIS
Updating the home page to display text from a file in the repository
Using CMIS calls in Alfresco Share extensions
Summary
7. System Integration with CMIS
Integrating Drupal with a CMS server
The CMIS API module
Displaying a CMS repository file link on a Drupal page
The CMIS Views module
Displaying a CMS repository folder on a Drupal page
Displaying a result from a CMIS query on a Drupal page
Synchronizing the CMS content with Drupal content
Enterprise integration with CMIS
Moving a file from a folder into a CMS server using Mule
Getting a document from a CMS server via Mule
Talking to Alfresco in the Cloud via CMIS
Setting up an account
Registering a client application
Setting up a development project
Authorizing the client application
Making CMIS calls
Summary
Index

Alfresco CMIS

Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Ev...

Table of contents

  1. Alfresco CMIS

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Alfresco CMIS by Martin Bergljung in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.