<?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 Adding new Content to a buried Space in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-new-content-to-a-buried-space/m-p/10534#M3980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to be able to add documents at various levels in our "Spaces" heirarchy setup in alfresco, as is normal, I'm sure.&amp;nbsp; The Spaces were setup using the Web Client, but I need to add documents via WebServices. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the best way via the WebServices client to locate a Space that is buried within other Spaces in order to add new content to it?&amp;nbsp; It seems like there would be an easier way of getting a reference to a Space folder than performing a query to find it.&amp;nbsp; But if that is the standard method, then that will work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Colby&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Apr 2006 22:46:23 GMT</pubDate>
    <dc:creator>csbrown</dc:creator>
    <dc:date>2006-04-24T22:46:23Z</dc:date>
    <item>
      <title>Adding new Content to a buried Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-new-content-to-a-buried-space/m-p/10534#M3980</link>
      <description>I need to be able to add documents at various levels in our "Spaces" heirarchy setup in alfresco, as is normal, I'm sure.&amp;nbsp; The Spaces were setup using the Web Client, but I need to add documents via WebServices. What is the best way via the WebServices client to locate a Space that is buried within</description>
      <pubDate>Mon, 24 Apr 2006 22:46:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-new-content-to-a-buried-space/m-p/10534#M3980</guid>
      <dc:creator>csbrown</dc:creator>
      <dc:date>2006-04-24T22:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new Content to a buried Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-new-content-to-a-buried-space/m-p/10535#M3981</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;BR /&gt;&lt;SPAN&gt;For the time being using a query is the best way to get hold of the reference you require.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This can be done using the query method on the repository service, using Lucene, or you can provide a path query to a reference or predicate object that can be used in most of the method calls.&amp;nbsp; The path provided to the reference will be resolved to the node when the web service method is exectued.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the future there will be a file/folder service that will make normal file and folder operations easier to perform.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 10:37:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-new-content-to-a-buried-space/m-p/10535#M3981</guid>
      <dc:creator>rwetherall</dc:creator>
      <dc:date>2006-05-02T10:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Adding new Content to a buried Space</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-new-content-to-a-buried-space/m-p/10536#M3982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply Roy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's how I ended up building the reference to the folder location I wanted to write new content to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;// Set the folder location&lt;BR /&gt;protected static String DOCUMENT_FOLDER = "/app:company_home/*[@cm:name=\"Web Service Sample Folder\"]";&lt;BR /&gt;&lt;BR /&gt;// Start the session&lt;BR /&gt;AuthenticationUtils.startSession(USERNAME, PASSWORD);&lt;BR /&gt;&lt;BR /&gt;Reference homeReference = new Reference(STORE, null, DOCUMENT_FOLDER);&lt;BR /&gt;Node[] readResult = WebServiceFactory.getRepositoryService().get(&lt;BR /&gt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Predicate(new Reference[]{homeReference}, STORE, null) &lt;BR /&gt;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;// Update the homeReference variable as read from repository&lt;BR /&gt;homeReference = readResult[0].getReference();&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;/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;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I can use the &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;homeReference&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt; variable to build the ParentRefence to use when creating new elements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Colby&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2006 15:05:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-new-content-to-a-buried-space/m-p/10536#M3982</guid>
      <dc:creator>csbrown</dc:creator>
      <dc:date>2006-05-02T15:05:53Z</dc:date>
    </item>
  </channel>
</rss>

