<?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: Build link share document with API in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/build-link-share-document-with-api/m-p/132829#M35788</link>
    <description>&lt;P&gt;thanks sanjaybandhniya for help&lt;BR /&gt;but with REST as you suggested I could build the second part of the URL&lt;/P&gt;&lt;P&gt;for instance : I need the complete URL -&amp;gt; &lt;A href="http://localhost:8180/share/s/g9yKWYpgQSyqXAaLHP74nA" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8180/share/s/g9yKWYpgQSyqXAaLHP74nA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in the response of REST there is -&amp;gt; /share/s/g9yKWYpgQSyqXAaLHP74nA&lt;BR /&gt;but how can I get -&amp;gt; &lt;A href="http://localhost:8180/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8180/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;</description>
    <pubDate>Sun, 03 Jul 2022 07:42:22 GMT</pubDate>
    <dc:creator>minox</dc:creator>
    <dc:date>2022-07-03T07:42:22Z</dc:date>
    <item>
      <title>Build link share document with API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/build-link-share-document-with-api/m-p/132827#M35786</link>
      <description>&lt;P&gt;Good morning,&lt;BR /&gt;regarding building URL Alfresco document something like this :&lt;/P&gt;&lt;P&gt;&lt;A href="http://192.168.1.3:8080/share/s/g9yKWYpgQSyqXAaLPP7nA" target="_blank" rel="noopener nofollow noreferrer"&gt;http://192.168.1.3:8080/share/s/g9yKWYpgQSyqXAaLPP7nA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;at the moment I build URL String mainly with the alfresco-global.properties in this way :&lt;BR /&gt;------------------------------&lt;BR /&gt;NodeRef curNode = new NodeRef("workspace://SpacesStore/" + node );&lt;BR /&gt;QuickShareDTO qsdto = quickShareService.shareContent(curNode);&lt;BR /&gt;String id = qsdto.getId();&lt;/P&gt;&lt;P&gt;String protocol = properties.getProperty("share.protocol");&lt;BR /&gt;String host = properties.getProperty("share.host");&lt;BR /&gt;String port = properties.getProperty("share.port");&lt;BR /&gt;String context = properties.getProperty("share.context");&lt;/P&gt;&lt;P&gt;String stringUrl = protocol + "://" + host + ":" + port + "/" + context + "/s/" + id;&lt;BR /&gt;------------------------------&lt;/P&gt;&lt;P&gt;I'd like to know if there is another way with API Alfresco to do the same -&amp;gt; String stringUrl&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 14:34:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/build-link-share-document-with-api/m-p/132827#M35786</guid>
      <dc:creator>minox</dc:creator>
      <dc:date>2022-07-01T14:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Build link share document with API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/build-link-share-document-with-api/m-p/132828#M35787</link>
      <description>&lt;P&gt;You can use REST Api to create shared link for document.&lt;/P&gt;&lt;P&gt;&lt;A href="https://api-explorer.alfresco.com/api-explorer/#/shared-links/createSharedLink" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api-explorer.alfresco.com/api-explorer/#/shared-links/createSharedLink&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Jul 2022 02:44:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/build-link-share-document-with-api/m-p/132828#M35787</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2022-07-02T02:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Build link share document with API</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/build-link-share-document-with-api/m-p/132829#M35788</link>
      <description>&lt;P&gt;thanks sanjaybandhniya for help&lt;BR /&gt;but with REST as you suggested I could build the second part of the URL&lt;/P&gt;&lt;P&gt;for instance : I need the complete URL -&amp;gt; &lt;A href="http://localhost:8180/share/s/g9yKWYpgQSyqXAaLHP74nA" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8180/share/s/g9yKWYpgQSyqXAaLHP74nA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in the response of REST there is -&amp;gt; /share/s/g9yKWYpgQSyqXAaLHP74nA&lt;BR /&gt;but how can I get -&amp;gt; &lt;A href="http://localhost:8180/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8180/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2022 07:42:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/build-link-share-document-with-api/m-p/132829#M35788</guid>
      <dc:creator>minox</dc:creator>
      <dc:date>2022-07-03T07:42:22Z</dc:date>
    </item>
  </channel>
</rss>

