Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Apache Chemistry: Utility functions

Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

What I understand about Apache Chemistry is, for developers, it provides easy and common interface to write code.
With property configuration, implementation makes calls to either WebService or REST interface.

Are there any other extra features provided by the Apache Chemistry project?

Example: How to fetch path of the document returned in Search results?

Looking at Specification, Document object doesn't have path property. So a possible way i can think of is, get the parent of the document i.e. of course a folder, and then get the path of that folder from its property and concatenate folder path with document name. It looks a costly operation in case if we get very large resultset.

Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nikesh,

Working with paths can be relatively expensive. If you can use objects ids, you should avoid paths.

The Apache Chemistry OpenCMIS interface provides a lot of convenience and utility functions on top of CMIS. For examples, there is a highly optimized operation that fetches the paths of a document. There is also a caching infrastructure, which might help you avoiding such calls altogether. You can also tune the way queries are performed. And there are helper functions to build CMIS query statements. And much more. We cover all that in the book.


And when my army is complete, I will rule the world! But, for now, I'm going to be happy with this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!