<?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: Retrive path by db in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/retrive-path-by-db/m-p/258028#M211158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you for this request, that's exactly what i was searching&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Jan 2015 17:41:00 GMT</pubDate>
    <dc:creator>ggrall</dc:creator>
    <dc:date>2015-01-20T17:41:00Z</dc:date>
    <item>
      <title>Retrive path by db</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrive-path-by-db/m-p/258026#M211156</link>
      <description>Hi all,I'm trying to get the physical path of a file stored in alfresco repository by a query on db of alfresco. I found the url_content in table alf_content_url. This table is related to alf_content_data by alf_content_data.content_url_id = alf_content_url.id.How can I have the relation between alf</description>
      <pubDate>Thu, 21 Jun 2012 14:50:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrive-path-by-db/m-p/258026#M211156</guid>
      <dc:creator>mikmontana</dc:creator>
      <dc:date>2012-06-21T14:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive path by db</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrive-path-by-db/m-p/258027#M211157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why do you need to know the physical path? The ContentService and rest apis should be used to manage content (bear in mind that the system manages the content and bypassing it in any way by altering content is likely to interfere with its proper management).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said that, content urls are stored in the database as content node properties of type "{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/dictionary/1.0}content" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/dictionary/1.0}content&lt;/A&gt;&lt;SPAN&gt;" (the standard one being "{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}content" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content&lt;/A&gt;&lt;SPAN&gt;") and are of the form "store://….". This is mapped onto a physical location in the content store by the content store abstraction, one implementation of which is the FileContentStore (see here for more information &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Content_Store_Configuration" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Content_Store_Configuration&lt;/A&gt;&lt;SPAN&gt;). In the case of the FileContentStore,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the url part after the "//" is the relative path of the content in the content store on the filesystem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Given a node id, the following SQL will give you the content url:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;select n.id, u.content_url&lt;BR /&gt;from alf_node n, alf_node_properties p, alf_namespace ns, alf_qname q, alf_content_data d, alf_content_url u&lt;BR /&gt;where n.id = p.node_id&lt;BR /&gt;and q.local_name = 'content'&lt;BR /&gt;and ns.uri = '&lt;A href="http://www.alfresco.org/model/content/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0&lt;/A&gt;'&lt;BR /&gt;and ns.id = q.ns_id&lt;BR /&gt;and p.qname_id = q.id&lt;BR /&gt;and p.long_value = d.id&lt;BR /&gt;and d.content_url_id = u.id&lt;BR /&gt;and n.id=&amp;lt;node id&amp;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;/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;If you have the node ref of the node, you could use n.store_id and n.uuid instead of the node id.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 09:09:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrive-path-by-db/m-p/258027#M211157</guid>
      <dc:creator>sglover</dc:creator>
      <dc:date>2012-06-22T09:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Retrive path by db</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/retrive-path-by-db/m-p/258028#M211158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you for this request, that's exactly what i was searching&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 17:41:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/retrive-path-by-db/m-p/258028#M211158</guid>
      <dc:creator>ggrall</dc:creator>
      <dc:date>2015-01-20T17:41:00Z</dc:date>
    </item>
  </channel>
</rss>

