<?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 Creating a root folder in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235364#M188494</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to 'hide' text file that is linked to my PDF in a different store, hoping it would not get listed in search results together with the PDF it is linked to. (I.e. I only want the PDF to be listed; currently I get listed both.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope it is possible in the first place…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My intention has been to keep the txt-files stored in the other store in a folder structure reflecting the one my PDF files are in. The problem is I get following error when trying to create the hierarchy…&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;The association source type is incorrect:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Source Node: workspace://IndexesStore/3f8e4d82-2be9-4f55-9dcc-71d9eda431b8&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Association: Association[ class=ClassDef[name={&lt;A href="http://www.alfresco.org/model/content/1.0}folder" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}folder&lt;/A&gt;], name={&lt;A href="http://www.alfresco.org/model/content/1.0}contains" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}contains&lt;/A&gt;, target class={&lt;A href="http://www.alfresco.org/model/system/1.0}base" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0}base&lt;/A&gt;, source role=null, target role=null]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Required Source Type: {&lt;A href="http://www.alfresco.org/model/content/1.0}folder" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}folder&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; Actual Source Type: {&lt;A href="http://www.alfresco.org/model/system/1.0}store_root" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/system/1.0}store_root&lt;/A&gt;&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;/SPAN&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;I believe it is because I'm trying to create a folder in a storeRef, in other words I don't know how to create a root folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is how I'm creating the folders, including the root one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;NodeRef parentNodeRef = nodeService.getRootNode(targetStore);&lt;BR /&gt;…&lt;BR /&gt;while(…)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; …&lt;BR /&gt;&amp;nbsp; folderRef = nodeService.createNode(parentNodeRef, ContentModel.ASSOC_CONTAINS, QName.createQName(NamespaceService.APP_MODEL_1_0_URI, newFolderName), ContentModel.TYPE_FOLDER)&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;/SPAN&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;(I went through some Wiki examples but they usually create a folder within another folder.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on what I am doing wrong, please? (Is it possible to hide content from search by placing it into alternate store?)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Oct 2010 11:05:39 GMT</pubDate>
    <dc:creator>jzaruba</dc:creator>
    <dc:date>2010-10-18T11:05:39Z</dc:date>
    <item>
      <title>Creating a root folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235364#M188494</link>
      <description>I'm trying to 'hide' text file that is linked to my PDF in a different store, hoping it would not get listed in search results together with the PDF it is linked to. (I.e. I only want the PDF to be listed; currently I get listed both.)I hope it is possible in the first place…My intention has been to</description>
      <pubDate>Mon, 18 Oct 2010 11:05:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235364#M188494</guid>
      <dc:creator>jzaruba</dc:creator>
      <dc:date>2010-10-18T11:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a root folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235365#M188495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You are trying to create a folder within the root of your new store using an association that &lt;/SPAN&gt;&lt;STRONG&gt;requires&lt;/STRONG&gt;&lt;SPAN&gt; the source to be a folder (&lt;/SPAN&gt;&lt;STRONG&gt;cm:contains&lt;/STRONG&gt;&lt;SPAN&gt;.&amp;nbsp; Clearly the root node of a store is not a folder.&amp;nbsp; You should rather, up front, create a folder within your &lt;/SPAN&gt;&lt;EM&gt;shadow&lt;/EM&gt;&lt;SPAN&gt; store using a generic child (&lt;/SPAN&gt;&lt;STRONG&gt;cm:children&lt;/STRONG&gt;&lt;SPAN&gt;) association.&amp;nbsp; Call your top-level folder something like "Shadow Root" or whatever.&amp;nbsp; Then you can use your existing code to create folders using the folder-specific association.&amp;nbsp; Take a look in the Node Browser at the link between the Workspace://SpacesStore root and the "Company Home" folder and its children.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 12:37:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235365#M188495</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2010-10-18T12:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a root folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235366#M188496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oops, few moments ago there was a reply from msrogers dittoing what derek has said and also suggesting two ways of hiding a document from search. Either to change a search-query or to set permissions to given document. The later sounds like the solution for me, and I was trying to go that way earlier, but I wasn't able to get anywhere… The only post I found was &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=12&amp;amp;t=20194&amp;amp;p=65601" rel="nofollow noopener noreferrer"&gt;this one&lt;/A&gt;&lt;SPAN&gt;. I will try further, at least I know now that is the only way. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you both guys.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 14:02:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235366#M188496</guid>
      <dc:creator>jzaruba</dc:creator>
      <dc:date>2010-10-18T14:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a root folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235367#M188497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can change your search query, change permissions on the node to hide it, or you can put the nodes in a separate store and hence they will not be visible via the normal search of browsing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 14:05:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235367#M188497</guid>
      <dc:creator>derek</dc:creator>
      <dc:date>2010-10-18T14:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a root folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235368#M188498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, derek &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can change your search query, change permissions on the node to hide it, or you can put the nodes in a separate store and hence they will not be visible via the normal search of browsing.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm currently looking at the PermissionService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm glad to hear though the alternate store could work too. Having the text documents in a mirrored structure without having to alter permissions on every single document is more appealing to me. That way I could just revoke (I guess) _ReadChildren permission from the root folder of the alternate store…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 14:32:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235368#M188498</guid>
      <dc:creator>jzaruba</dc:creator>
      <dc:date>2010-10-18T14:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a root folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235369#M188499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It seems that setting the property like this…&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;getNodeService().setProperty(pdfNodeRef, ComtesysModel.CONTENT_PROPERTY, new ContentData("store://???.bin", "text/plain", size, "UTF-8"));&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;…does not assign the reference but the actual value; i.e. deleting or modifying the referenced file does not affect the property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Therefore I don't have to hide the text files at all.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 13:08:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-a-root-folder/m-p/235369#M188499</guid>
      <dc:creator>jzaruba</dc:creator>
      <dc:date>2010-10-19T13:08:42Z</dc:date>
    </item>
  </channel>
</rss>

