There are many cmis compliant systems like sharepoint, alfresco etc. Since sharepoint is paid I used alfresco for this short sample purpose, should be same for sharepoint as well because both are cmis compliant.
You can download alfresco server from
http://wiki.alfresco.com/wiki/Download_and_Install_Alfresco
The mule flow for the same.
as per request an image of the flow.
Copy the contents of mule-config.xml to a new mule flow that you create.
The custom code is in groovy hence no need to set classpath etc in mule.
Services implemented with sample url are as follows
http://localhost:8081/alfresco/list lists all the files available (currently only the root folder for poc)
http://localhost:8081/alfresco/download?id=5454d82c-c8aa-4e6b-bbf8-378644e6d121 downloads a file to the local disk
http://localhost:8081/alfresco/upload?filepath=D:/files/int_person.csv uploads a file found at this path to the root directory
http://localhost:8081/alfresco/delete?id=c1eba832-725f-4c9c-b8ec-baed82f7a06e delete the file with the given id
