You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "krzysztoffzielinski@gmail.com" <kr...@gmail.com> on 2017/10/03 14:53:15 UTC

Re: Problems obtaining version ids

I am unable to obtain the document revision because CMIS API returns me only the latest document node id for every specific revision. I cant see how url could be constructed to point to these revisions.
 I will open a separate post with Alfresco forums.

Thanks
Krzysztof
 
On 2017-09-25 15:27, Jeff Potts <je...@gmail.com> wrote: 
> As this discussion is specific to a certain vendor, Alfresco, and is not
> really about the technical details of Apache Chemistry, let's move this to
> the Alfresco Community.
> 
> If you create a post at http://community.alfresco.com and email me the link
> we can talk about it further over there.
> 
> In your post, please include why you are unable to get the node ref from
> the objects that come back as part of the version history.
> 
> On Mon, Sep 25, 2017 at 8:48 AM, krzysztoffzielinski@gmail.com <
> krzysztoffzielinski@gmail.com> wrote:
> 
> > Thank you for providing the link to the versions tutorial, Jeff.
> >
> > However, i have to construct url to previous version and pass it to UI, so
> > that user can open directly previous version of the document. My
> > understanding is that i need to construct URL directly to VersionStore to
> > download previous version of the file. Just dont know how to obtain the
> > version noderef with OpenCMIS.
> >
> > Am I right with my assumptions here?
> >
> > Thanks
> > Krzysztof
> >
> > On 2017-09-15 21:34, Jeff Potts <je...@gmail.com> wrote:
> > > 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 <mc...@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 <fm...@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
> > > > > >
> > > > >
> > > >
> > >
> >
>