<?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 Nuxeo java client in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-java-client/m-p/317273#M4274</link>
    <description>&lt;P&gt;Hi
Can someone explain me how to differentiate between a user that has an account and a user that does not have an account in Nuxeo java client?
I create a NuxeoClient instance using:
NuxeoClient nuxeoClient = new NuxeoClient(URL, userName, password);
Apperently if the userName or password does not belong to a real account the NuxeoClient does not return null.What i want to do is to distinguish between a userName that does not have an account so i can show a message that the account does not exist.I think i can do this by catching the Exception it throws but i wanted to know if there is another way&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 12:52:09 GMT</pubDate>
    <dc:creator>Nuxeo_User</dc:creator>
    <dc:date>2017-09-19T12:52:09Z</dc:date>
    <item>
      <title>Nuxeo java client</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-java-client/m-p/317273#M4274</link>
      <description>&lt;P&gt;Hi
Can someone explain me how to differentiate between a user that has an account and a user that does not have an account in Nuxeo java client?
I create a NuxeoClient instance using:
NuxeoClient nuxeoClient = new NuxeoClient(URL, userName, password);
Apperently if the userName or password does not belong to a real account the NuxeoClient does not return null.What i want to do is to distinguish between a userName that does not have an account so i can show a message that the account does not exist.I think i can do this by catching the Exception it throws but i wanted to know if there is another way&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 12:52:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-java-client/m-p/317273#M4274</guid>
      <dc:creator>Nuxeo_User</dc:creator>
      <dc:date>2017-09-19T12:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo java client</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-java-client/m-p/317274#M4275</link>
      <description>&lt;P&gt;Assuming the &lt;CODE&gt;password&lt;/CODE&gt; is the correct one for a user, the only way to check if a user exists or not is using the &lt;CODE&gt;NuxeoClient#connect&lt;/CODE&gt; method and catch the &lt;CODE&gt;NuxeoClientException&lt;/CODE&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;try {
    NuxeoClient nuxeoClient = new NuxeoClient(URL, userName, password);
} catch (NuxeoClientException e) {
    // user does not exist on the Nuxeo Server (or password is incorrect but user exists...)
}

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Sep 2017 09:55:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-java-client/m-p/317274#M4275</guid>
      <dc:creator>Thomas_Roger</dc:creator>
      <dc:date>2017-09-22T09:55:06Z</dc:date>
    </item>
  </channel>
</rss>

