<?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: document view url in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287694#M240824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks but the problem is how to get those parameters that come after: "&lt;/SPAN&gt;&lt;A href="http://127.0.0.1:8090/share/proxy/alfresco/api/node/content/workspace/SpacesStore/" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8090/share/proxy/alfresco/api/node/content/workspace/SpacesStore/&lt;/A&gt;&lt;SPAN&gt;" here's an example of the url I want to provide to the user 127.0.0.1:8090/share/proxy/alfresco/api/node/content/workspace/SpacesStore/bf1d499c-98f0-478a-8d12-957b8cd6cabb/somedoc.pdf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2014 10:35:29 GMT</pubDate>
    <dc:creator>ucf</dc:creator>
    <dc:date>2014-04-15T10:35:29Z</dc:date>
    <item>
      <title>document view url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287690#M240820</link>
      <description>Hi everybody,I'm a beginner in alfresco and I'm really stuck on an issue, I want to retrieve view url (using java)of a document in order to make it available to the user to read it before approval, if anyone can help that'll be greatthank you,</description>
      <pubDate>Tue, 15 Apr 2014 08:52:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287690#M240820</guid>
      <dc:creator>ucf</dc:creator>
      <dc:date>2014-04-15T08:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: document view url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287691#M240821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what do you consider a "view URL" - a URL to the details page of Alfresco Share or a URL to the actual document. For the latter, please have a look at ScriptNode.getDownloadUrl() to see how you could generate a (standard) URL. For the details page of Alfresco Share it is a bit uncommon to do this in Java. If your Java is intended to run in the Repository, use the SysAdminParams to retrieve the host, port and context of Share, and suffix that with the page URL (which can be considered standard / stable), i.e. /page/document-details?nodeRef= - and then add the NodeRef as an URL-encoded String.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the concept of "view URL" really depends on what you want to provide to your users, there is no standard service that you can simply query to give you a one-fits-all URL…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 09:26:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287691#M240821</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-04-15T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: document view url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287692#M240822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thank you, I want to get the url of the actual doncument so that the recipient could read it&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 09:32:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287692#M240822</guid>
      <dc:creator>ucf</dc:creator>
      <dc:date>2014-04-15T09:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: document view url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287693#M240823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If your whole purpose is to render the content to the user than you can use out-of-the-box webscript api/node and pass the required parameters to it as shown in the example here - &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/api/node/content/workspace/SpacesStore/node-id" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/api/node/content/workspace/SpacesStore/node-id&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 10:06:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287693#M240823</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-15T10:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: document view url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287694#M240824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks but the problem is how to get those parameters that come after: "&lt;/SPAN&gt;&lt;A href="http://127.0.0.1:8090/share/proxy/alfresco/api/node/content/workspace/SpacesStore/" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:8090/share/proxy/alfresco/api/node/content/workspace/SpacesStore/&lt;/A&gt;&lt;SPAN&gt;" here's an example of the url I want to provide to the user 127.0.0.1:8090/share/proxy/alfresco/api/node/content/workspace/SpacesStore/bf1d499c-98f0-478a-8d12-957b8cd6cabb/somedoc.pdf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 10:35:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287694#M240824</guid>
      <dc:creator>ucf</dc:creator>
      <dc:date>2014-04-15T10:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: document view url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287695#M240825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;these parameters come from the document. workspace/SpacesStore/bf1d499c-98f0-478a-8d12-957b8cd6cabb is the unique / stable reference to that document derived from the so-called NodeRef (which is workspace://SpacesStore/bf1d499c-98f0-478a-8d12-957b8cd6cabb).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The somedoc.pdf is simply the name of the document. You can actually put anything in here as the name is not used to locate the document in Alfresco - it is "only" a hint for the browser so that when a user downloads the document, it is downloaded with the correct name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to have the NodeRef / id to the document in order to generate any URL to it. If you only have the path, you could use a WebDAV link instead (e.g. /alfresco/webdav/path/to/document.pdf).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2014 10:15:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/document-view-url/m-p/287695#M240825</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2014-04-16T10:15:42Z</dc:date>
    </item>
  </channel>
</rss>

