Reputation: 169
I'm a GSoC'13 intern. I'm working on developing a CMIS UCP for Apache OpenOffice. I wanted to know how to divide a url into its parts. To fill the session parameters I need the url + path of the object in repo. separately. Is there any other way?
Upvotes: 0
Views: 442
Reputation: 10538
If you know the path of an object, you can retrieve it using getObjectByPath, which is a method on org.apache.chemistry.opencmis.client.api.Session.
If you have an object and you want to know its path, you can call the object's getPaths() method, which returns a list of paths for the object (in repositories that support multi-filing, documents can have multiple paths, but folders can never be multi-filed).
The actual URL you would construct to navigate directly to the object using its path is repository-specific, unless you are using the browser binding (new in CMIS 1.1). But there aren't any production implementations of the CMIS 1.1 browser binding yet.
Upvotes: 1