• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Chemistry: Utility functions

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

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.



Thanks,
Nikesh
 
Florian Mueller
Author
Greenhorn
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.


Regards,

Florian
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic