Fetch usergroups structure from Alfresco using CMIS - alfresco

Is it possible to retrieve the structure of usergroups from Alfresco using a CMIS session, and if so, how do I do it?
I use GXT (Java) and Apache's chemistry openCMIS API.

No it's not possible, if you'd searched the alfresco forums then you didn't had to ask the question ;).
Here is a similar question and answer on the forum.

Related

Activiti use with CMIS

Can any one give me a simple exemple of how to use activiti workflow engin with CMIS (even a very small user task with activiti and how to use it in CMIS standard)
P.S :I'm working with alfresco
I'm not exactly sure what you are trying to do. The easiest way to use Activiti and CMIS together is to write a Java Delegate class that leverages Apache Chemistry OpenCMIS to work with Alfresco. You might do this if you want to have an Activiti business process that has one or more tasks that involve creating, accessing, or updating content in Alfresco (or any other CMIS repository).
Writing a Java Delegate class is really easy and using OpenCMIS is pretty easy too, so you should have no trouble putting them together.
Here is a video from Alfresco Summit that talks about Java Delegates:
https://www.youtube.com/watch?v=phju1Lru7kI
Here is a link to the Java Delegate documentation:
https://www.activiti.org/javadocs/index.html
And here is a site that documents a variety of CMIS examples:
https://chemistry.apache.org/docs/cmis-samples/

cmis or web scripts use?

I want to build a JavaEE GED application using alfresco and activiti Workflow engine which manages and monitors the mail of an organization (Letter, Fax, mail etc.). Since I am new with alfresco I want to know the best way to communicate with alfresco in my case : the use of CMIS or web scripts (I'm building a third-party application ) .
I can suggest two solutions using Using the REST API or CMIS with a library like Apache Chemistry
Apache Chemistry is very well documented and you can find good pointers on the official website for pretty much any thing you would want to do !
If you want to get a session from your Alfresco Repository for example follow this post : How to retrieve 'repository root' id/children from CMIS repository?
Alternatively, you can find a lot of resources around for interacting with alfresco using REST (either the new REST API, or old restful endpoints). Check the platform integrations portal from the official docs, it would be a very good starting point.

Alfresco: Get list of nodes with updated ACL/permission

I am exploring Alfresco Web scripts and CMIS API's, and looking for an API or some way to figure out the nodes whose ACL/permission is modified after some specified time/timestamp in Alfresco.
I am able to get nodes with modified metadata using CMIS QUERY API, but regarding only ACL/permission modification its not working.
For now, I am crawling all nodes and checking its modification date with respect to earlier/last crawl datetime. This doesn't seem to be a proper approach.
For more details, here is the link of query posted earlier on alfresco forum:Fetch the list of nodes whose permission is updated/modified
Could anyone please assist.
I have figured out the solution, using CMISChangeLog application, which need to be enabled on Alfresco server. Also, with the help of CMIS 1.1 Atom Api's, the CMIS change log query works fine on both the Alfresco version, 4.x and 5.x.

CMIS integration with BPM

Could you please let me know, is it possible to integrate CMIS with BPM system? I know Pega BPM system can be integrated with CMIS. But I want to integrate CMIS with Workflows in Documentum or with Alfresco repository. I do not find out any object type related to BMP that CMIS provides.
Kindly advice. Thanks for your help!
There's no API provided by CMIS that directly maps to the realm of workflows: all of the domain model and APIs are meant for document management.
That said, it's not impossible to establish some contracts between the BPM engine and your client application, so that workflow related informations (states, properties, workflow definitions, etc) will be mapped to the CMIS domain level entities, i.e. documents, properties, relationships and policies.
It's definitely not ideal, but as there's no direct workflow API in CMIS that's the only option you get.
I see this question is rather old but an actual answer may still be interesting. I have successfully tested the concept of making a Service Broker for K2 (http://www.k2.com/) that supports CMIS.
K2 allows you building Service Brokers in .Net so this is rather simple. You can later on generate K2 SmartObjects connecting to your broker and use them in both your process and your web forms.
I actually tested this with Alfresco to test CMIS. The Alfresco support was great.
So to answer your question, yes, this is definitely possible with K2 Blackpearl and K2 SmartForms.

Talend / Alfresco 4.0 connector?

As far as I can tell, this project http://knowledge.openwide.fr/Main/AlfrescoETLConnector
only supports Alfresco 3.3 and under. Are there any Talend connectors for Alfresco 4.0? We have so much development work in 4.0 that we don't even want to think of rolling back to 3.3, and would like to use an ETL like Talend to load batches of files into Alfresco.
Are there other ETL tools we should consider that have Alfresco 4.0 connectors? Can we use any Talend / CMIS compliant connector? Suggestions on products to look at? Thanks.
This is Ronny from XeniT.
If you want to load documents and meta-data, you might consider
http://www.xenit.eu/move2alf/
You can integrate this with Talend, but it allows easy and fast migration of content into Alfresco.
On the Talend Exchange you can find various extensions e.g. custom components, which you can install in your TOS.
The exchange provides a CMIS input component that is able to access CMIS-compliant content repositories (like Alfresco) via CMIS SQL.
I also worked on an output component (tCmisOutput), which can create/update content. But this component has not been published yet. Since you are looking for way to load files into Alfresco, I will publish it in the next days on Talend Exchange or send the source code if you contact me via email.
I've recently published new Advanced CMIS components for Talend (in alpha version).
You can download it on Talend Exchange
Source code and documentation are available on Github
cmistalendetlalfresconuxeo
The latest version of the Talend CMIS component developed by Ekito is on GitHub
https://github.com/Ekito/talend-cmis-components
However it will not work with Talend version 6 right out of the box. I've created a blog post describing the fix you need to apply to the component here:
http://www.datalytyx.com/fixing-the-cmis-component-issue-in-talend-6-gated/
Since last year, the Alfresco ETL Connector for Talend has been updated to support Alfresco 4.1, as said in the README :
https://github.com/OpenWide-SI/alfresco-etl-connector
Regards

Resources