<?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: [Javascript]Get name of space where rule resides in in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193660#M146790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi zomurn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for preciouses advices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if the rule is hereditated from parent how can I get the path of the space?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This line&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var docs = search.luceneSearch("PATH:\"/app:company_home/cm:my_folder/*\" AND TYPE:\"cm:systemfolder\"");&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;SPAN&gt;allows to get the path of the rule but if a subspace of my_folder, called "mysub", hereditate the rule how I can know the path of mysub?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope my explanation is clear (my english is not so good :? )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your posts!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Apr 2009 08:02:51 GMT</pubDate>
    <dc:creator>camillo</dc:creator>
    <dc:date>2009-04-24T08:02:51Z</dc:date>
    <item>
      <title>[Javascript]Get name of space where rule resides in</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193656#M146786</link>
      <description>Hi all,how can i get the path of the space in which rule resides ?For example, in a rule that's in a space named "TEST", i would likevar rule_path = [space_of_the_rule];rule_path.createFile('my_file.txt');In this way I can create my_file.txt inside the space in which rule resides.I hope my explation</description>
      <pubDate>Mon, 20 Apr 2009 13:29:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193656#M146786</guid>
      <dc:creator>camillo</dc:creator>
      <dc:date>2009-04-20T13:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: [Javascript]Get name of space where rule resides in</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193657#M146787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you have a look in the administration console, in the node navigator, you will see in your "Test" folder the rule appearing as a node like :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;{&lt;A href="http://www.alfresco.org/model/rule/1.0}ruleFolder" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/rule/1.0}ruleFolder&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;workspace://SpacesStore/3491e8e5-ec96-11dd-bf4a-83b750caf13c&amp;nbsp;&amp;nbsp;&amp;nbsp;true&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;A href="http://www.alfresco.org/model/rule/1.0}ruleFolder" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/rule/1.0}ruleFolder&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;0&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;Click on workspace://SpacesStore/3491e8e5-ec96-11dd-bf4a-83b750caf13c and then you have the detail of the rule node attributs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You may query directly from the type of the node the rule is assimilated to : "TYPE:cm:systemfolder" then you have a reference to the rule and with "getPrimaryParent" you have a reference to the parent folder.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2009 08:41:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193657#M146787</guid>
      <dc:creator>zomurn</dc:creator>
      <dc:date>2009-04-21T08:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: [Javascript]Get name of space where rule resides in</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193658#M146788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your answer, but, sorry, I don't uderstand how I can get the path of the rule using javascript&amp;nbsp; &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you explain clearly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also apologize for my english&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2009 11:27:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193658#M146788</guid>
      <dc:creator>camillo</dc:creator>
      <dc:date>2009-04-22T11:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: [Javascript]Get name of space where rule resides in</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193659#M146789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;with luceneSearch javascript method…have a look at javascript Search API&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 22:02:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193659#M146789</guid>
      <dc:creator>zomurn</dc:creator>
      <dc:date>2009-04-23T22:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: [Javascript]Get name of space where rule resides in</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193660#M146790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi zomurn,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for preciouses advices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But if the rule is hereditated from parent how can I get the path of the space?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This line&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var docs = search.luceneSearch("PATH:\"/app:company_home/cm:my_folder/*\" AND TYPE:\"cm:systemfolder\"");&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;SPAN&gt;allows to get the path of the rule but if a subspace of my_folder, called "mysub", hereditate the rule how I can know the path of mysub?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope my explanation is clear (my english is not so good :? )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your posts!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 08:02:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193660#M146790</guid>
      <dc:creator>camillo</dc:creator>
      <dc:date>2009-04-24T08:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: [Javascript]Get name of space where rule resides in</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193661#M146791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What you must assimilate and need to be clear for you is that in alfresco almost all is node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By node, it means that you're are in a tree, programmatically speaking.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, from the moment you have a reference on a node in alfresco and that you know where you are in the tree, you can easily navigate through the whole tree nodes like it appears in the node browser in the administration console…but instead of clicking to navigate through the tree, you need to code it to obtain a reference on a node.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Some methods are : parent() to get a reference to the parent node. children to get the list of the immediate children of the parent node, etc…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can see exactly how your repository tree looks like through web client node browser. From here, your code is done by half !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS : hava a look at node.path to get the path of a node.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Apr 2009 12:33:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-get-name-of-space-where-rule-resides-in/m-p/193661#M146791</guid>
      <dc:creator>zomurn</dc:creator>
      <dc:date>2009-04-24T12:33:38Z</dc:date>
    </item>
  </channel>
</rss>

