<?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: Path of a file stored in Alfresco in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179504#M132634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In this moment, i can open my xml using this path:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/opt/alfresco/alf_data/contentstore/2009/3/17/11/0/79bd40db-12da-11de-a552-c534a6742d03.bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where 79bd40db-12da-11de-a552-c534a6742d03.bin is the node representing my xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i would like a method or a property that allows me to be free from my filesystem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So…what's the property or the method i have to call in order to obtain the path for my alf_data directory?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a method that returns /2009/3/17/11/0/79bd40db-12da-11de-a552-c534a6742d03.bin, so I need the method that returns /opt/alfresco/alf_data/contentstore&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks one more!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2009 14:19:20 GMT</pubDate>
    <dc:creator>camillo</dc:creator>
    <dc:date>2009-03-18T14:19:20Z</dc:date>
    <item>
      <title>Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179499#M132629</link>
      <description>Hi all,I must develop a java application able to parse an xml file stored in Alfresco.But, when i want to know the path of the file i received this string for the file named my_file.xml:/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}SSI/{http:</description>
      <pubDate>Wed, 18 Mar 2009 12:13:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179499#M132629</guid>
      <dc:creator>camillo</dc:creator>
      <dc:date>2009-03-18T12:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179500#M132630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You've got an xpath there - I suspect you're after a display path instead.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 12:22:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179500#M132630</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-03-18T12:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179501#M132631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;so, how can i obtain a path in order to parse the xml file?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 12:36:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179501#M132631</guid>
      <dc:creator>camillo</dc:creator>
      <dc:date>2009-03-18T12:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179502#M132632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How are you getting the xpath?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 13:16:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179502#M132632</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-03-18T13:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179503#M132633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I call a method getPath which is in APIs written by some friends of mine (that are unreachable now)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the question is now: how can i get the path of a resource, e.g a file xml, in order to open it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much for your time!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 14:00:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179503#M132633</guid>
      <dc:creator>camillo</dc:creator>
      <dc:date>2009-03-18T14:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179504#M132634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In this moment, i can open my xml using this path:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/opt/alfresco/alf_data/contentstore/2009/3/17/11/0/79bd40db-12da-11de-a552-c534a6742d03.bin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where 79bd40db-12da-11de-a552-c534a6742d03.bin is the node representing my xml file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i would like a method or a property that allows me to be free from my filesystem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So…what's the property or the method i have to call in order to obtain the path for my alf_data directory?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a method that returns /2009/3/17/11/0/79bd40db-12da-11de-a552-c534a6742d03.bin, so I need the method that returns /opt/alfresco/alf_data/contentstore&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks one more!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 14:19:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179504#M132634</guid>
      <dc:creator>camillo</dc:creator>
      <dc:date>2009-03-18T14:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179505#M132635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Camillo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I must develop a java application able to parse an xml file stored in Alfresco.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;What you're doing via your getPath-API call is to find out where the content file in the Alfresco content store is stored…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But, normally you doesn't want to do this. Alfresco provides sth. called repository. This Repo encapsulates a content file (stored in content store) and its metadata (stored in DB).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can access the content or its metadata using one of the Alfresco APIs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers, Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 15:47:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179505#M132635</guid>
      <dc:creator>jpfi</dc:creator>
      <dc:date>2009-03-18T15:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179506#M132636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my application i would like know where is the contentstore directory used by alfresco&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know the path of this directory using the repository.properties file, but the problem is I want know this directory using a method called from my java application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm reading Alfresco Repository APIs but I don't find any method or classes that help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you tell me some classes/methods that could solve my problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 15:55:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179506#M132636</guid>
      <dc:creator>camillo</dc:creator>
      <dc:date>2009-03-18T15:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179507#M132637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can get the input stream for the XML file by&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ContentReader reader = this.contentService.getReader(nodeRef, ContentModel.PROP_CONTENT);&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;where the nodeRef is the NodeRef of the XML file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2009 10:14:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179507#M132637</guid>
      <dc:creator>zaizi</dc:creator>
      <dc:date>2009-03-19T10:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179508#M132638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You can get the input stream for the XML file by&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ContentReader reader = this.contentService.getReader(nodeRef, ContentModel.PROP_CONTENT);&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;where the nodeRef is the NodeRef of the XML file.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;i would link a File object instead of a ContentReader object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 07:36:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179508#M132638</guid>
      <dc:creator>camillo</dc:creator>
      <dc:date>2009-04-15T07:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Path of a file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179509#M132639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE style="color: #eff1f5; background-color: #2b303b; font-size: 11.3pt;"&gt;&lt;SPAN style="color: #b48ead; font-weight: bold;"&gt;private &lt;/SPAN&gt;&lt;SPAN style="color: #ed964d; font-weight: bold;"&gt;File &lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;getZipAsFile(&lt;/SPAN&gt;&lt;SPAN style="color: #ed964d; font-weight: bold;"&gt;String &lt;/SPAN&gt;&lt;SPAN style="color: #c8c8c8;"&gt;nodeRef&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;) {&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #ed964d; font-weight: bold;"&gt;NodeRef &lt;/SPAN&gt;&lt;SPAN style="color: #c8c8c8;"&gt;node &lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #b48ead; font-weight: bold;"&gt;new &lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;NodeRef(&lt;/SPAN&gt;&lt;SPAN style="color: #c8c8c8;"&gt;nodeRef&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #ebcb8b;"&gt;ContentReader &lt;/SPAN&gt;&lt;SPAN style="color: #c8c8c8;"&gt;reader &lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #b48ead; font-weight: bold;"&gt;this&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;contentService&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;getReader(&lt;/SPAN&gt;&lt;SPAN style="color: #c8c8c8;"&gt;node&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #ebcb8b;"&gt;ContentModel&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #b474d2; font-weight: bold;"&gt;PROP_CONTENT&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #ed964d; font-weight: bold;"&gt;File &lt;/SPAN&gt;&lt;SPAN style="color: #c8c8c8;"&gt;sourceFile &lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #ed964d; font-weight: bold;"&gt;TempFileProvider&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #ebcb8b;"&gt;createTempFile&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;(getClass()&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;getSimpleName() &lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;+ &lt;/SPAN&gt;&lt;SPAN style="color: #c6e4a9;"&gt;"_source_"&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #c6e4a9;"&gt;".zip"&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #c8c8c8;"&gt;reader&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;getContent(&lt;/SPAN&gt;&lt;SPAN style="color: #c8c8c8;"&gt;sourceFile&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #b48ead; font-weight: bold;"&gt;return &lt;/SPAN&gt;&lt;SPAN style="color: #c8c8c8;"&gt;sourceFile&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #c0c5ce;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #8fa1b3;"&gt;}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;You can change the extension file to whatever you need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 19:52:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/path-of-a-file-stored-in-alfresco/m-p/179509#M132639</guid>
      <dc:creator>ebrenes</dc:creator>
      <dc:date>2019-03-22T19:52:22Z</dc:date>
    </item>
  </channel>
</rss>

