<?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: Getting file name in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getting-file-name/m-p/261293#M214423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks. but in alfresco web client the file looks as newq30000012d130833e90132.sub. Is it using some method/function to get file name or by using regexp.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 May 2011 09:47:42 GMT</pubDate>
    <dc:creator>carolanna</dc:creator>
    <dc:date>2011-05-05T09:47:42Z</dc:date>
    <item>
      <title>Getting file name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-file-name/m-p/261291#M214421</link>
      <description>Hi..using this code am able to get the node value.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (rows != null)&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; for (int x = 0; x &amp;lt; rows.length; x++)&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;ResultSetRow row1 = rows[x];&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; NamedValue[] columns = row1.getColumns();&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; for (int y = 0; y &amp;lt;</description>
      <pubDate>Thu, 05 May 2011 08:40:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-file-name/m-p/261291#M214421</guid>
      <dc:creator>carolanna</dc:creator>
      <dc:date>2011-05-05T08:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting file name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-file-name/m-p/261292#M214422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That looks like a path in a string format rather than the name.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The last part is often the same as the name property but can be different, either by choice or design (e.g multiple assocs to the same file).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And it's curious since it seems to have a spurious "cm:" and a blank namespace.&amp;nbsp;&amp;nbsp; I suspect that the code that created it was not correct w.r.t the qname used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to go from a path in string format and are not interested in the the namespaces then simply use a regex to match the name part only i.e. ignore the text between { and} Split on the dir separator char '/' and then ISO9075 decode the last element.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However If you are using the Java API then should you not be simply getting the Name property of the node?&amp;nbsp;&amp;nbsp; Or if you are working with a Path then do you have a Path object that will hold QNames already so you don't need to convert to string format and back again?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 09:22:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-file-name/m-p/261292#M214422</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-05-05T09:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Getting file name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-file-name/m-p/261293#M214423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks. but in alfresco web client the file looks as newq30000012d130833e90132.sub. Is it using some method/function to get file name or by using regexp.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 09:47:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-file-name/m-p/261293#M214423</guid>
      <dc:creator>carolanna</dc:creator>
      <dc:date>2011-05-05T09:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting file name</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-file-name/m-p/261294#M214424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I suspect its just displaying the Name property.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2011 10:56:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-file-name/m-p/261294#M214424</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2011-05-05T10:56:25Z</dc:date>
    </item>
  </channel>
</rss>

