<?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 Problemi in fase di creazione di spazi in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36651#M19317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ciao,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ho una classe main che usa le foundation API per creare una cartella&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;private static NodeRef createFolder(ServiceRegistry serviceRegistry, NodeRef node, String name) {&lt;BR /&gt;Map&amp;lt;QName, Serializable&amp;gt; contentProps = new HashMap&amp;lt;QName, Serializable&amp;gt;();&lt;BR /&gt;contentProps.put(ContentModel.PROP_NAME, name);&lt;BR /&gt;contentProps.put(ContentModel.PROP_DESCRIPTION, name);&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;NodeService nodeService = serviceRegistry.getNodeService();&lt;BR /&gt;ChildAssociationRef association = nodeService.createNode(node, ContentModel.ASSOC_CONTAINS, QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, name), ContentModel.TYPE_FOLDER, contentProps);&lt;BR /&gt;return association.getChildRef();&lt;BR /&gt;}&lt;BR /&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;quando la ricerco usando lucene - PATH:"/app:company_home/cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;arentSpace/*" non la trovo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ho&amp;nbsp; anche una classe main che usa i webservice&amp;nbsp; API per creare una cartella&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;ParentReference parentReference = new ParentReference(STORE, null, parentFolder, Constants.ASSOC_CONTAINS, Constants.createQNameString(Constants.NAMESPACE_CONTENT_MODEL, realfolderName));&lt;BR /&gt;&lt;BR /&gt;// Create folder&lt;BR /&gt;NamedValue[] properties = new NamedValue[] { Utils.createNamedValue(Constants.PROP_NAME, realfolderNameRepalced), Utils.createNamedValue(Constants.PROP_DESCRIPTION, realfolderNameRepalced) };&lt;BR /&gt;CMLCreate create = new CMLCreate("1", parentReference, null, null, null, Constants.TYPE_FOLDER, properties);&lt;BR /&gt;&lt;BR /&gt;CML cml = new CML();&lt;BR /&gt;cml.setCreate(new CMLCreate[] { create });&lt;BR /&gt;UpdateResult[] results = WebServiceFactory.getRepositoryService().update(cml);&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;quando la cerco con lucene - PATH:"/app:company_home/cm&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;arentSpace/*" la trovo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pera ricerca con lucene non funziona se creo la cartella con le foudation API? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Grazie&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Francesco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Apr 2010 16:00:26 GMT</pubDate>
    <dc:creator>fracat71</dc:creator>
    <dc:date>2010-04-28T16:00:26Z</dc:date>
    <item>
      <title>Problemi in fase di creazione di spazi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36651#M19317</link>
      <description>Ciao,ho una classe main che usa le foundation API per creare una cartellaprivate static NodeRef createFolder(ServiceRegistry serviceRegistry, NodeRef node, String name) {Map&amp;lt;QName, Serializable&amp;gt; contentProps = new HashMap&amp;lt;QName, Serializable&amp;gt;();contentProps.put(ContentModel.PROP_NAME, na</description>
      <pubDate>Wed, 28 Apr 2010 16:00:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36651#M19317</guid>
      <dc:creator>fracat71</dc:creator>
      <dc:date>2010-04-28T16:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problemi in fase di creazione di spazi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36652#M19318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Per cercare un folder con il token PATH di Lucene devi interrogare in questo modo:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;PATH:"/app:company_home/cm:ParentSpaceName"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Se invece vuoi interrogare i contenuti all'interno allora:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;PATH:"/app:company_home/cm:ParentSpaceName/*"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Se vuoi interrogare anche tutti i contenuti dei sottospazi:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;PATH:"/app:company_home/cm:ParentSpaceName//*"&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Hai provato a cercarla con Lucene utilizzando la codifica ISO9075 per ogni nome dello spazio?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Se il nome dello spazio ha degli spazi o inizia con un numero, probabilmente devi codificarlo in ISO9075.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Quando cerchi con il token PATH di lucene, devi usare XPATH e devi codificare tutti i nomi degli spazi in ISO9075.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In Java puoi codificare la stringa in questo modo:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;String luceneQuery = "PATH:\"/app:company_home/cm:"+ISO9075.encode("Parent Space Name")+"/*\"";&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Apr 2010 10:51:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36652#M19318</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2010-04-30T10:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problemi in fase di creazione di spazi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36653#M19319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ciao,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;grazie per l'aiuto comunque il problema è dovuto al fatto che il programma che crea le cartelle è un main che gira esternamente ad Alfresco Explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Infatti se lo stesso identico codice è fatto girare come action tutto funziona correttamente.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;L'unico modo che ho avuto per far vedere le cartelle create da un main e quello di fare la rebuild degli indici Lucene, comunque tale soluzione non è utilizzabile in fase di sviluppo in quanto ci mette ore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Francesco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 07:50:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36653#M19319</guid>
      <dc:creator>fracat71</dc:creator>
      <dc:date>2010-05-10T07:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problemi in fase di creazione di spazi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36654#M19320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Credo ci sia un altro problema, per far vedere gli space nuovi non è mai necessario rigenerare gli indici!!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 08:08:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36654#M19320</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2010-05-10T08:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problemi in fase di creazione di spazi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36655#M19321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ciao,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;io sono nuovo di Alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Questo è il mio ambiente:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eclipse caricato con SDK dove ho creato un mio progetto che punta al DB e ALF_DATA di un Alfresco up and running sulla stessa macchina.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ho cofigurato porte diverse su SDK:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;avm.rmi.service.port=60501&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;avmsync.rmi.service.port=60502&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;attribute.rmi.service.port=60503&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;authentication.rmi.service.port=60504&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;repo.rmi.service.port=60505&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;action.rmi.service.port=60506&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;wcm-deployment-receiver.rmi.service.port=60507&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;altrimenti il mio progetto su Eclipse non partirebbe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A questo punto faccio girare il main e appena terminato lo stesso faccio una query lucene con il node browser che spesso non va: cosa devo controllare, ti ripeto sono nuovo di Alfresco …..?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Se le stesse cose le faccio con un action non ho problemi.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Grazie per il tuo interesse.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Francesco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 10:22:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36655#M19321</guid>
      <dc:creator>fracat71</dc:creator>
      <dc:date>2010-05-10T10:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problemi in fase di creazione di spazi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36656#M19322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Potresti condividere tutto il codice del main?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Volendo anche mandandomi un messaggio privato se non puoi postare il codice pubblicamente.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 12:29:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36656#M19322</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2010-05-10T12:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problemi in fase di creazione di spazi</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36657#M19323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Fatto&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 08:08:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/problemi-in-fase-di-creazione-di-spazi/m-p/36657#M19323</guid>
      <dc:creator>fracat71</dc:creator>
      <dc:date>2010-05-11T08:08:27Z</dc:date>
    </item>
  </channel>
</rss>

