cancel
Showing results for 
Search instead for 
Did you mean: 

Does Alfresco have a changes API?

nddipiazza
Champ in-the-making
Champ in-the-making

Dear alfresco communuty:

Does Alfresco have a full featured "Changes API?" I need something that can give me a list of all Added, Updated or Deleted documents since a given time. And it needs to also return documents where only permissions or metadata were changed, not just when the content was changed.

Does Alfresco have such an API?

1 ACCEPTED ANSWER

jpotts
World-Class Innovator
World-Class Innovator

This is how SOLR tracking works as well as other solutions that use polling, such as Apache ManifoldCF.

You might want to take a look at the SOLR web scripts and dig into their source to see how they work:

http://localhost:8080/alfresco/s/index/family/SOLR

If those don't meet your needs you could see if the CMIS getChanges API will work for you:

https://chemistry.apache.org/docs/cmis-samples/samples/changelog/index.html#retrieving-the-change-lo...

Finally, if neither of those do what you want, consider using an event-based approach and react to events when nodes are updated instead of polling for changes:

https://www.slideshare.net/jpotts/moving-from-actions-behaviors-to-microservices

https://github.com/jpotts/alfresco-kafka

Hope those help,

View answer in original post

1 REPLY 1

jpotts
World-Class Innovator
World-Class Innovator

This is how SOLR tracking works as well as other solutions that use polling, such as Apache ManifoldCF.

You might want to take a look at the SOLR web scripts and dig into their source to see how they work:

http://localhost:8080/alfresco/s/index/family/SOLR

If those don't meet your needs you could see if the CMIS getChanges API will work for you:

https://chemistry.apache.org/docs/cmis-samples/samples/changelog/index.html#retrieving-the-change-lo...

Finally, if neither of those do what you want, consider using an event-based approach and react to events when nodes are updated instead of polling for changes:

https://www.slideshare.net/jpotts/moving-from-actions-behaviors-to-microservices

https://github.com/jpotts/alfresco-kafka

Hope those help,