<?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: Importing programmatically in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183690#M136820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Plusieurs erreurs dans votre commande:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- vous forcez le GET avec -G, or il vous faut un POST&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- l'URL n'est pas bonne. ce n'est pas l'UI que vous devez cibler, mais la cible de l'UI, c'est à dire le web script qui initie l'import. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- ne mettez pas curl en silencieux avant d'avoir la bonne URL et compris le mécanisme.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- votre commande semble être un copier-coller d'ailleurs, vous n'avez à priori pas besoin de tous ces paramètres. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Exemple : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;curl -u romain -d "sourceDirectory=…&amp;amp;targetPath=…"&amp;nbsp; "&lt;A _jive_internal="true" href="https://community.alfresco.com/server:port/alfresco/service/bulkfsimport/filesystem/initiate" rel="nofollow noopener noreferrer"&gt;http://server:port/alfresco/service/bulkfsimport/filesystem/initiate&lt;/A&gt;"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Remplissez les paramètres sourceDirectory et targetPath (prealablement créé) avec les bonnes valeurs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Laissez savoir.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2012 08:09:08 GMT</pubDate>
    <dc:creator>rguinot</dc:creator>
    <dc:date>2012-04-25T08:09:08Z</dc:date>
    <item>
      <title>Importing programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183685#M136815</link>
      <description>bonjourj'ai voulu savoir si quelqu'un a arrivé a utilisé le script de de Bulk Importing programmaticallyUserTransaction txn = transactionService.getUserTransaction();&amp;nbsp;&amp;nbsp; txn.begin();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; AuthenticationUtil.setRunAsUser("admin");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; StreamingNodeImporterFactory streamingNode</description>
      <pubDate>Sat, 21 Apr 2012 09:22:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183685#M136815</guid>
      <dc:creator>oubaid</dc:creator>
      <dc:date>2012-04-21T09:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Importing programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183686#M136816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Je ne vois pas le rapport avec votre appel curl et le code d'exemple. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L'appel curl peut être effectué sans ajout de code spécifique. L'exemple de code sert à l'intégrer dans des services custom. Il convient d'ailleurs d'utiliser le RetryingTransactionHelper, plutot que la gestion manuelle du commit / rollback ..&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Avez vous essayé l'import du repertoire en question via l'interface ? cf &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/index.php?title=Bulk_Importer" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/index.php?title=Bulk_Importer&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 16:04:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183686#M136816</guid>
      <dc:creator>rguinot</dc:creator>
      <dc:date>2012-04-23T16:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Importing programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183687#M136817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;tous d'abord je vous merci pour votre réponse &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;effectivement j'ai essayé l'import du repertoire en question via l'interface ? cf &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/index.php?title=Bulk_Importer" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/index.php?title=Bulk_Importer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mais plus clairement je veux utiliser ce script automatiquement soit a travers le curl ou soit le code offert &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/index.php?title=Bulk_Importer" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/index.php?title=Bulk_Importer&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; c a d &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;l’exécution de bulk doit se faire automatiquement sans passer par l’interface &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/bulkfsimport" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/bulkfsimport&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;merci encore une autre fois&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 16:33:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183687#M136817</guid>
      <dc:creator>oubaid</dc:creator>
      <dc:date>2012-04-23T16:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Importing programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183688#M136818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;’exécution de bulk doit se faire automatiquement sans passer par l’interface &lt;A href="http://localhost:8080/alfresco/service/bulkfsimport" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/bulkfsimport&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Dans ce cas je ne comprends pas bien pourquoi vous voulez mettre en oeuvre du code spécifique… y'a t il un besoin particulier ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L'accès curl devrait suffir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 16:24:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183688#M136818</guid>
      <dc:creator>rguinot</dc:creator>
      <dc:date>2012-04-24T16:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Importing programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183689#M136819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;merci encore une fois&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mon problème est d'avoir automatisé la tache faite dans le lien &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/bulkfsimport" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/bulkfsimport&lt;/A&gt;&lt;SPAN&gt; sans l'intervention de l’utilisateur&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;je veux exécuter la tache de bulk comme une tache planifiée , &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;j'ai essayé avec se ligne de commande qui me réponde a chaque fois 200 mais aucune mise-a-jour n'a été effectue pour mes content&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;curl -s -L -G -w "%{http_code} %{url_effective}" -d "sourceDirectory=/Users/user/Documents/Nouveaudossier/metadata&amp;amp;targetPath=/Company%20Home/sites/test" &lt;A href="http://admin:admin@localhost:8080/alfre" rel="nofollow noopener noreferrer"&gt;http://admin:admin@localhost:8080/alfre&lt;/A&gt; … lkfsimport -o /dev/null&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;merci encore une fois&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 18:36:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183689#M136819</guid>
      <dc:creator>oubaid</dc:creator>
      <dc:date>2012-04-24T18:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Importing programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183690#M136820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Plusieurs erreurs dans votre commande:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- vous forcez le GET avec -G, or il vous faut un POST&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- l'URL n'est pas bonne. ce n'est pas l'UI que vous devez cibler, mais la cible de l'UI, c'est à dire le web script qui initie l'import. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- ne mettez pas curl en silencieux avant d'avoir la bonne URL et compris le mécanisme.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- votre commande semble être un copier-coller d'ailleurs, vous n'avez à priori pas besoin de tous ces paramètres. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Exemple : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;curl -u romain -d "sourceDirectory=…&amp;amp;targetPath=…"&amp;nbsp; "&lt;A _jive_internal="true" href="https://community.alfresco.com/server:port/alfresco/service/bulkfsimport/filesystem/initiate" rel="nofollow noopener noreferrer"&gt;http://server:port/alfresco/service/bulkfsimport/filesystem/initiate&lt;/A&gt;"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Remplissez les paramètres sourceDirectory et targetPath (prealablement créé) avec les bonnes valeurs. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Laissez savoir.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 08:09:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183690#M136820</guid>
      <dc:creator>rguinot</dc:creator>
      <dc:date>2012-04-25T08:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Importing programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183691#M136821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bonjour&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; j'ai suivi votre instruction mais j'ai toujours cette erreur &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Script url /bulkfsimport/filesystem/initiate does not map to a Web Script&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Web Script Status 404 - Not Found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;merci&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 11:11:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183691#M136821</guid>
      <dc:creator>oubaid</dc:creator>
      <dc:date>2012-04-25T11:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Importing programmatically</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183692#M136822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bonjour, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;L'URL que vous utilisez n'est pas la bonne.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pour trouver qu'il faut utiliser "/alfresco/s/bulkfsimport/initiate", rendez-vous sur &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/s/index/family/Bulk%20Filesystem%20Import" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/s/index/family/Bulk%20Filesystem%20Import&lt;/A&gt;&lt;SPAN&gt;. Cette page liste tous les webscripts relatifs au BulkImport.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cordialement,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Charles Le Seac'h&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 13:21:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/importing-programmatically/m-p/183692#M136822</guid>
      <dc:creator>cleseach</dc:creator>
      <dc:date>2012-04-26T13:21:34Z</dc:date>
    </item>
  </channel>
</rss>

