chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Potts <jeffpott...@gmail.com>
Subject Re: Problems obtaining version ids
Date Mon, 25 Sep 2017 14:27:11 GMT
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 <jeffpotts01@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 <mcs130@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 <fmui@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
> > > > >
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message