wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Apache Chemistry: Utility functions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Apache Chemistry: Utility functions" Watch "Apache Chemistry: Utility functions" New topic
Author

Apache Chemistry: Utility functions

Nikes Shah
Ranch Hand

Joined: Jul 18, 2007
Posts: 133
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

Joined: Sep 24, 2012
Posts: 6
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
 
 
subject: Apache Chemistry: Utility functions
 
Similar Threads
What should System.getProperty("user.dir") return when called from a bean ?
WA #1.....word association
Setting java system property
Jsf relative path?
How to include jars in command line classpath?