<?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-android-connector and custom schema in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-android-connector-and-custom-schema/m-p/314612#M1613</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;thanks a lot for this complex plateform, make it simpler to build them all.&lt;/P&gt;
&lt;P&gt;I try to connect my android application with Nuxeo Plateform 5.6&lt;/P&gt;
&lt;P&gt;I would like to retrieve my custom schema attribute and don't find how to do that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;		DocumentService rs = new DocumentService(session);
		DocRef wsRef = new DocRef("/default-domain/workspaces/mypublicws");
		docs = rs.getChildren(wsRef);
        for (Iterator iterator = docs.iterator(); iterator.hasNext();) {
			Document document = (Document) iterator.next();
			PropertyMap map = document.getProperties();
			
			Log.i("Public Hut", document.getTitle() + "--" + map.getString("vendorseed:datesowingmin"));
		}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The PropertyMap result does not contain my custom attributes even during debug phase.&lt;/P&gt;
&lt;P&gt;THE QUESTION IS:
How to get my custom schema properties (maybe called metadata ?).&lt;/P&gt;
&lt;P&gt;nuxeo-android-connector version:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;org.nuxeo.android&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;nuxeo-android-connector&amp;lt;/artifactId&amp;gt;
  &amp;lt;version&amp;gt;2.0-SNAPSHOT&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2013 23:52:27 GMT</pubDate>
    <dc:creator>Artmoni_Mobile</dc:creator>
    <dc:date>2013-03-11T23:52:27Z</dc:date>
    <item>
      <title>Nuxeo-android-connector and custom schema</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-android-connector-and-custom-schema/m-p/314612#M1613</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;thanks a lot for this complex plateform, make it simpler to build them all.&lt;/P&gt;
&lt;P&gt;I try to connect my android application with Nuxeo Plateform 5.6&lt;/P&gt;
&lt;P&gt;I would like to retrieve my custom schema attribute and don't find how to do that.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;		DocumentService rs = new DocumentService(session);
		DocRef wsRef = new DocRef("/default-domain/workspaces/mypublicws");
		docs = rs.getChildren(wsRef);
        for (Iterator iterator = docs.iterator(); iterator.hasNext();) {
			Document document = (Document) iterator.next();
			PropertyMap map = document.getProperties();
			
			Log.i("Public Hut", document.getTitle() + "--" + map.getString("vendorseed:datesowingmin"));
		}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The PropertyMap result does not contain my custom attributes even during debug phase.&lt;/P&gt;
&lt;P&gt;THE QUESTION IS:
How to get my custom schema properties (maybe called metadata ?).&lt;/P&gt;
&lt;P&gt;nuxeo-android-connector version:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dependency&amp;gt;
  &amp;lt;groupId&amp;gt;org.nuxeo.android&amp;lt;/groupId&amp;gt;
  &amp;lt;artifactId&amp;gt;nuxeo-android-connector&amp;lt;/artifactId&amp;gt;
  &amp;lt;version&amp;gt;2.0-SNAPSHOT&amp;lt;/version&amp;gt;
&amp;lt;/dependency&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 23:52:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-android-connector-and-custom-schema/m-p/314612#M1613</guid>
      <dc:creator>Artmoni_Mobile</dc:creator>
      <dc:date>2013-03-11T23:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo-android-connector and custom schema</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-android-connector-and-custom-schema/m-p/314613#M1614</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;By default, only the minimal document properties are returned. You can ask for more mapped properties by specifying the wanted schemas in the header (or "*" to get all):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;import org.nuxeo.ecm.automation.client.Constants;
import org.nuxeo.ecm.automation.client.adapters.DocumentService;
import org.nuxeo.ecm.automation.client.model.Documents;
Documents docs = (Documents) session.newRequest(DocumentService.GetDocumentChildren)
        .setInput(doc)
        .setHeader(Constants.HEADER_NX_SCHEMAS, "*").execute();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;See &lt;A href="http://community.nuxeo.com/api/nuxeo/5.7/javadoc/org/nuxeo/ecm/automation/client/Constants.html#HEADER_NX_SCHEMAS"&gt;&lt;CODE&gt;org.nuxeo.ecm.automation.client.Constants.HEADER_NX_SCHEMAS&lt;/CODE&gt;&lt;/A&gt;.&lt;BR /&gt; /&amp;gt;
Since 5.7, it is possible to change the default schemas for the whole session instead of per request, see &lt;A href="http://community.nuxeo.com/api/nuxeo/5.7/javadoc/org/nuxeo/ecm/automation/client/Session.html#setDefaultSchemas%28java.lang.String%29"&gt;&lt;CODE&gt;org.nuxeo.ecm.automation.client.Session.setDefaultSchemas(String)&lt;/CODE&gt;&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 11:55:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-android-connector-and-custom-schema/m-p/314613#M1614</guid>
      <dc:creator>Julien_Carsique</dc:creator>
      <dc:date>2013-03-13T11:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Nuxeo-android-connector and custom schema</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-android-connector-and-custom-schema/m-p/314614#M1615</link>
      <description>&lt;P&gt;Thanks a lot,&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2013 12:53:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/nuxeo-android-connector-and-custom-schema/m-p/314614#M1615</guid>
      <dc:creator>Artmoni_Mobile</dc:creator>
      <dc:date>2013-03-13T12:53:11Z</dc:date>
    </item>
  </channel>
</rss>

