<?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 Various import with metadata in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/various-import-with-metadata/m-p/315122#M2123</link>
    <description>&lt;P&gt;I have a custom document type
In a specific folder, it is defined as the default doctype so that drag &amp;amp; drop creates such a document
I would like to be able to use the drag &amp;amp; drop import with metadata
Overriding the Chain.FileManager.ImportWithMetaDataInSeam action works fine&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;
 &amp;lt;action id="Chain.FileManager.ImportWithMetaDataInSeam"
      link="/nuxeo/dndFormCollector.faces?schema=fiche_navette_idex&amp;amp;layout=dndFicheNavIdexEdit%40create"
      order="30" label="Fiche Navette IDEX"
      help="schema Fiche Navette IDEX"&amp;gt;
      &amp;lt;category&amp;gt;ContentView&amp;lt;/category&amp;gt;
      &amp;lt;filter-id&amp;gt;create&amp;lt;/filter-id&amp;gt;
      &amp;lt;properties&amp;gt;
        &amp;lt;property name="chainId"&amp;gt;FileManager.ImportWithMetaDataInSeam&amp;lt;/property&amp;gt;
        &amp;lt;property name="layout"&amp;gt;dndFicheNavIdexEdit@create&amp;lt;/property&amp;gt;
      &amp;lt;/properties&amp;gt;
 &amp;lt;/action&amp;gt;  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but I would like to have it enabled only for that folder and it seems the action cannot be given another id.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Nov 2015 15:48:12 GMT</pubDate>
    <dc:creator>pibou_Bouvret</dc:creator>
    <dc:date>2015-11-23T15:48:12Z</dc:date>
    <item>
      <title>Various import with metadata</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/various-import-with-metadata/m-p/315122#M2123</link>
      <description>&lt;P&gt;I have a custom document type
In a specific folder, it is defined as the default doctype so that drag &amp;amp; drop creates such a document
I would like to be able to use the drag &amp;amp; drop import with metadata
Overriding the Chain.FileManager.ImportWithMetaDataInSeam action works fine&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;
 &amp;lt;action id="Chain.FileManager.ImportWithMetaDataInSeam"
      link="/nuxeo/dndFormCollector.faces?schema=fiche_navette_idex&amp;amp;layout=dndFicheNavIdexEdit%40create"
      order="30" label="Fiche Navette IDEX"
      help="schema Fiche Navette IDEX"&amp;gt;
      &amp;lt;category&amp;gt;ContentView&amp;lt;/category&amp;gt;
      &amp;lt;filter-id&amp;gt;create&amp;lt;/filter-id&amp;gt;
      &amp;lt;properties&amp;gt;
        &amp;lt;property name="chainId"&amp;gt;FileManager.ImportWithMetaDataInSeam&amp;lt;/property&amp;gt;
        &amp;lt;property name="layout"&amp;gt;dndFicheNavIdexEdit@create&amp;lt;/property&amp;gt;
      &amp;lt;/properties&amp;gt;
 &amp;lt;/action&amp;gt;  
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but I would like to have it enabled only for that folder and it seems the action cannot be given another id.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2015 15:48:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/various-import-with-metadata/m-p/315122#M2123</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2015-11-23T15:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Various import with metadata</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/various-import-with-metadata/m-p/315123#M2124</link>
      <description>&lt;P&gt;I finally made it, but this solution seems quite silly to me :
I gave the action a custom name (FileManager.ImportIdexWithMetaDataInSeam)
and created an homonymous chain&lt;/P&gt;
&lt;P&gt;NB : calling the action / chain ImportIdexWithMetaDataInSeam instead of Chain.FileManager.ImportIdexWithMetaDataInSeam fails&lt;/P&gt;
&lt;P&gt;the sole operation being ... Chain.FileManager.ImportWithMetaDataInSeam&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;extension target="org.nuxeo.ecm.platform.actions.ActionService"
  point="actions"&amp;gt;

 &amp;lt;action id="Chain.FileManager.ImportIdexWithMetaDataInSeam"
      link="/nuxeo/dndFormCollector.faces?schema=fiche_navette_idex&amp;amp;layout=dndFicheNavIdexEdit%40create"
      order="30" label="Fiche Navette IDEX"
      help="schema Fiche Navette IDEX"&amp;gt;
      &amp;lt;category&amp;gt;ContentView&amp;lt;/category&amp;gt;
      &amp;lt;filter-id&amp;gt;create&amp;lt;/filter-id&amp;gt;
   &amp;lt;filter&amp;gt;
     &amp;lt;rule grant="true"&amp;gt;
       &amp;lt;type&amp;gt;ws_prog_idex&amp;lt;/type&amp;gt;
     &amp;lt;/rule&amp;gt;
   &amp;lt;/filter&amp;gt;
      &amp;lt;properties&amp;gt;
        &amp;lt;property name="chainId"&amp;gt;FileManager.ImportIdexWithMetaDataInSeam&amp;lt;/property&amp;gt;
        &amp;lt;property name="layout"&amp;gt;dndFicheNavIdexEdit@create&amp;lt;/property&amp;gt;
      &amp;lt;/properties&amp;gt;
 &amp;lt;/action&amp;gt;  
&amp;lt;/extension&amp;gt;
  &amp;lt;extension point="chains"
    target="org.nuxeo.ecm.core.operation.OperationServiceComponent"&amp;gt;
    &amp;lt;chain id="FileManager.ImportIdexWithMetaDataInSeam"&amp;gt;
      &amp;lt;operation id="Seam.RunOperation"&amp;gt;
        &amp;lt;param type="string" name="id"&amp;gt;Chain.FileManager.ImportWithMetaDataInSeam&amp;lt;/param&amp;gt;
      &amp;lt;/operation&amp;gt;
    &amp;lt;/chain&amp;gt;
  &amp;lt;/extension&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Nov 2015 08:44:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/various-import-with-metadata/m-p/315123#M2124</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2015-11-24T08:44:55Z</dc:date>
    </item>
  </channel>
</rss>

