Integrating with Alfresco OpenCMIS Extension
This section explains the process of using WSO2 Governance Registry as a repository and managing it using Alfresco OpenCMIS Extension. The Alfresco OpenCMIS Extension extends OpenCMIS to provide support for Alfresco API. The following are the contents of this section:
- Download and install WSO2 Governance Registry (G-Reg).
- Download Alfresco OpenCMIS Extension.
- Download OpenCMIS client libraries from the Apache Chemistry website.
Setting Up the Project
Alfresco OpenCMIS Extension depends on OpenCMIS client libraries from Apache Chemistry. Download the latest OpenCMIS client libraries from the Apache Chemistry website. Then download the latest "Alfresco OpenCMIS Extension" package.
When creating the Java project, if you are using Maven, follow the building instructions in the Alfresco site.
Otherwise create a project with your IDE and add all of the above downloaded JARs to you project’s class path (both OpenCMIS and Alfresco OpenCMIS Extension related JARs).
Creating a Document using Alfresco OpenCMIS Extension
You can use the following code segment to create a session:
Note: The above code provides WSO2 Governance Registry’s AtomPub based URL:
The following code segment creates a document called "My document" in the repository root.
Now you can browse this document using WSO2 Governance Registry.
Note: When developing please pay attention to Alfresco related items which do not have CMIS 1.0 compliance. For example: 'cm:description' and 'P:cm:titled' properties.