<?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: Accessing an individual piece of content in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59909#M36915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ariel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for explaining the different access methods. As we are deploying to the virtualization server we will keep using the AVMRemote along with the helper class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the AVM path isn't really going to help as this will be exposed in the user facing JSP page. We have worked around this by using the XML filename and then using parseXMLDocument method to load that document, populate a backing bean and pass it back to the JSP in a custom tag. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have some more requirements for accessing content but I'll contact you separately about this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 09:41:16 GMT</pubDate>
    <dc:creator>snelson</dc:creator>
    <dc:date>2006-11-02T09:41:16Z</dc:date>
    <item>
      <title>Accessing an individual piece of content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59905#M36911</link>
      <description>Hi,I am producing some simple dynamic pages to test the WCM functionality of Alfresco and seem to have hit a problem that I want to solve in a clean way.I have a jsp which uses some Java backing beans to iterate over a collection of XML documents stored in a particular directory in the repository. T</description>
      <pubDate>Thu, 26 Oct 2006 13:19:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59905#M36911</guid>
      <dc:creator>snelson</dc:creator>
      <dc:date>2006-10-26T13:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing an individual piece of content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59906#M36912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it depends on what library you are using to access the wcm repository.&amp;nbsp; if you are using NodeService, then NodeRefs can be used as unique id's and can be used to lookup assets later.&amp;nbsp; if you are using AVMRemote, then you can use avm paths as keys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the next drop, we will be providing a library for accessing auxilliary xml assets from the jsp, xsl, and freemarker context (both static and dynamic contexts).&amp;nbsp; since this is not available yet, what i'd recommend doing is mimicing the behavior of the backing beans within the sample website provided.&amp;nbsp; take a look at org.alfresco.web.pr.Util.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;by the way - really psyched that you're trying this stuff out.&amp;nbsp; it's really raw functionality in the preview and not so much documented, but it's something we've been putting a lot of thought into over the past two weeks to make it easier for the release.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 00:43:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59906#M36912</guid>
      <dc:creator>arielb</dc:creator>
      <dc:date>2006-10-27T00:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing an individual piece of content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59907#M36913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ariel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply it is helping to make things clearer for me - especially with the latest code drop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been accessing content using AVMRemote as the Util class does. What is the difference between AVM and NodeService? I understand from the wiki that NodeService is an in-process API. Is AVM some type of RMI interface?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try using the AVM path to key a content search and see how I get on with that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the encouragement!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 15:48:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59907#M36913</guid>
      <dc:creator>snelson</dc:creator>
      <dc:date>2006-10-27T15:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing an individual piece of content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59908#M36914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hadn't realized who you were &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;&amp;nbsp; kevin laughed at me for my previous enthusiastic post.&amp;nbsp; (i am still very excited that you guys are trying this stuff out).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes - nodeservice is in process - though i believe there is some kind of webservices api.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;avmremote is an rmi interface to the avm (the repository used by wcm).&amp;nbsp; we need to use that from tomcat-virtual since it's in a seperate process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so, what you should be able to do is have an url that looks like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/render_xml_item?avmPath=test-website-admin-main:/appBase/avm_webapps/folder/foo.xml&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;you can then use that path with ServletContextFormDataFunctionsAdapter.parseXMLDocument(virtualPath).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;however, parseXMLDocument expects a virtual path at the moment, meaning a path rooted at the webapp (it should probably also be able to handle avm paths - but i need to think about that).&amp;nbsp; so rather than pass in &lt;/SPAN&gt;&lt;EM&gt;test-website-admin-main:/appBase/avm_webapps/folder/foo.xml&lt;/EM&gt;&lt;BR /&gt;&lt;SPAN&gt;it expects either just &lt;/SPAN&gt;&lt;EM&gt;foo.xml&lt;/EM&gt;&lt;SPAN&gt; (assuming the jsp resides in the &lt;/SPAN&gt;&lt;EM&gt;folder&lt;/EM&gt;&lt;SPAN&gt; directory), or &lt;/SPAN&gt;&lt;EM&gt;/folder/foo.xml&lt;/EM&gt;&lt;SPAN&gt; if the jsp is elsewhere.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2006 17:35:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59908#M36914</guid>
      <dc:creator>arielb</dc:creator>
      <dc:date>2006-10-27T17:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing an individual piece of content</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59909#M36915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ariel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for explaining the different access methods. As we are deploying to the virtualization server we will keep using the AVMRemote along with the helper class. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the AVM path isn't really going to help as this will be exposed in the user facing JSP page. We have worked around this by using the XML filename and then using parseXMLDocument method to load that document, populate a backing bean and pass it back to the JSP in a custom tag. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have some more requirements for accessing content but I'll contact you separately about this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stephen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 09:41:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/accessing-an-individual-piece-of-content/m-p/59909#M36915</guid>
      <dc:creator>snelson</dc:creator>
      <dc:date>2006-11-02T09:41:16Z</dc:date>
    </item>
  </channel>
</rss>

