If you want either the previous version CMIS object ID or the Alfresco
nodeRef, ask the current Document for its version history, which will
return a list of objects, then grab the object you want and inspect its
properties.

You can take a look at the sample code on the Chemistry web site to see how
to work with the version history:
https://chemistry.apache.org/docs/cmis-samples/samples/versions/index.html

Jeff

On Fri, Sep 15, 2017 at 3:21 PM, Mark Streit <mcs...@gmail.com> wrote:

> Krzysztof and Florian,
>
>
> Just adding as an example...We use Alfresco 5.1 Enterprise and Chemistry as
> well (OpenCMIS client API) and when utilizing the Chemistry Workbench to
> inspect the Document object properties, we see the following:
>
> "Alfresco Node Ref","alfcmis:nodeRef","id",["workspace://SpacesStore/
> 4933d708-08d0-4c83-baf7-e9c973e56a9f"]
> "Object Id","cmis:objectId","id",["4933d708-08d0-4c83-baf7-
> e9c973e56a9f;1.0
> "]
> "Version series id","cmis:versionSeriesId","id",["
> 4933d708-08d0-4c83-baf7-e9c973e56a9f"]
> "Version Label","cmis:versionLabel","string",["1.0"]
>
> You'll notice the common value generated by Alfresco for the 3 fields
> above... the 1.0 in cyan  is the VersionLabel property. The Node Ref being
> an Alfresco property is marked in an alfcmis namespace.
>
> Don't know if this helps but thought I'd put it out there.
>
> Mark
>
>
> On Fri, Sep 15, 2017 at 3:53 PM, Florian Müller <f...@apache.org> wrote:
>
> > Hi Krzysztof,
> >
> > "Nodes" are an Alfresco concepts. They don't exit in CMIS.
> > But the CMIS Document object should have a property with the Alfresco
> > node ID.
> >
> > What kind of URL you want to construct?
> > Maybe this helps you:
> > https://chemistry.apache.org/docs/cmis-samples/samples/
> > content/index.html#getting-a-content-url
> >
> >
> > - Florian
> >
> >
> >
> > > Hello Everyone
> > >
> > > Anyone able to obtain previous version node id? as opposed to latest
> > version id.
> > >
> > > opencmis chemistry gives me main document id for every version returned
> > by getAllVersions().
> > >
> > > So I cant construct resource location urls to obtain document previous
> > revisions.
> > >
> > > I will appreciate any suggestions.
> > >
> > > Kind Regards
> > > Krzysztof
> > >
> >
>

Reply via email to