<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to know if a document is a version with Java Client 3.5.0 in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318742#M5743</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The property which differentiate a live document from a version is &lt;CODE&gt;ecm:isVersion&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2020 19:40:38 GMT</pubDate>
    <dc:creator>Gregory_Carlin</dc:creator>
    <dc:date>2020-05-18T19:40:38Z</dc:date>
    <item>
      <title>How to know if a document is a version with Java Client 3.5.0</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318741#M5742</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to know if a document is a version, but Java Client doesn't retrieve that information about a document. When I use the "fetchDocumentById" method, I get a "Document" object, but I have no properties to know if it is a version or not. I have included the "properties" header with the "*" value in order to retrieve all propoerties, but "ecm" properties are not retrieved.&lt;/P&gt;
&lt;P&gt;I have used the REST API and I can see two properties that can tell me if the document is a version or not: versionableId and isVersion. However, none of them are present in the "Document" object retrieved by the fetchDocumentById method.&lt;/P&gt;
&lt;P&gt;Then, how can I know if a document is a version? I have also seen a facet called "Immutable" present in versions, but I am not sure if it is possible there are other documents with that facet without being a version.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 14:58:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318741#M5742</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-05-18T14:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a document is a version with Java Client 3.5.0</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318742#M5743</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The property which differentiate a live document from a version is &lt;CODE&gt;ecm:isVersion&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 19:40:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318742#M5743</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-05-18T19:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a document is a version with Java Client 3.5.0</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318743#M5744</link>
      <description>&lt;P&gt;Hello. I knew about that property, and it is retrieved with the REST API. However, that property it is not retrieved with Java Client when doing a "fetchDocumentById" (and I am including the "properties" header with an "*" to see all properties). The "Document" object retrieved doesn't have such property, nor any of "ecm". So, how can I know if the document is a version in this situation? Is it a Java Client bug?&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 06:21:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318743#M5744</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-05-19T06:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a document is a version with Java Client 3.5.0</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318744#M5745</link>
      <description>&lt;P&gt;Hi, I'm not an expert of the .NET client but you should retrieve any document property no?&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 13:32:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318744#M5745</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2020-05-19T13:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a document is a version with Java Client 3.5.0</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318745#M5746</link>
      <description>&lt;P&gt;Hello. I am using Java Client, not .NET Client. However, I think they work similar. All SDKs work over the nuxeo REST API. If you retrieve a document and all its properties using the REST API, properties from "ecm" schema are not retrieved (as "ecm" is not a "real" schema). With the REST API you can get the "isVersion" property, but not in the "properties" array (https&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 13:43:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318745#M5746</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-05-19T13:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a document is a version with Java Client 3.5.0</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318746#M5747</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I've just created &lt;A href="https://jira.nuxeo.com/browse/JAVACLIENT-197"&gt;JAVACLIENT-197&lt;/A&gt; ticket to add missing fields to &lt;CODE&gt;Document&lt;/CODE&gt; class.&lt;/P&gt;
&lt;P&gt;In the meantime, you should be able to extend the &lt;CODE&gt;Document&lt;/CODE&gt; class in order to add missing fields + register this new class during client construction. You can find more information in the &lt;A href="https://doc.nuxeo.com/client-java/3.2/advanced-usage/#deserialize-your-pojo"&gt;documentation&lt;/A&gt;, in your case you should have something like below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-java"&gt;NuxeoClient client = new NuxeoClient.Builder()
                            .url("http://localhost:8080/nuxeo")
                            .authentication("Administrator", "Administrator")
                            .registerEntity(EntityTypes.DOCUMENT, YourDocument.class);
                            .connect();

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 May 2020 14:01:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318746#M5747</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2020-05-29T14:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a document is a version with Java Client 3.5.0</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318747#M5748</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 15:15:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318747#M5748</guid>
      <dc:creator>Kevin_Leturc</dc:creator>
      <dc:date>2020-06-29T15:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to know if a document is a version with Java Client 3.5.0</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318748#M5749</link>
      <description>&lt;P&gt;Amazing! I will update my Nuxeo Java Client version to 3.6.0. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jul 2020 10:03:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-know-if-a-document-is-a-version-with-java-client-3-5-0/m-p/318748#M5749</guid>
      <dc:creator>Rodri_</dc:creator>
      <dc:date>2020-07-01T10:03:43Z</dc:date>
    </item>
  </channel>
</rss>

