[ 
https://issues.apache.org/jira/browse/CONNECTORS-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14159510#comment-14159510
 ] 

Maurizio Pillitu commented on CONNECTORS-1056:
----------------------------------------------

Alfresco Indexer currently provides the following metadata (code can be found 
in 
[details.get.json.ftl|https://github.com/maoo/alfresco-indexer/blob/master/alfresco-indexer-webscripts/src/main/amp/config/alfresco/extension/templates/webscripts/org/alfresco/consulting/indexer/details.get.json.ftl]):

* contentUrlPath - Returns the file binary - 
{{http://${alfresco.host}:${alfresco.port}/alfresco/service/api/node/%s/%s/%s/content}}
* thumbnailUrlPath - Returns the thumbnail of the document - 
{{http://${alfresco.host}:${alfresco.port}/alfresco/service/api/node/%s/%s/%s/content/thumbnails/doclib?c=queue&ph=true&lastModified=1}}
* previewUrlPath - Returns an SWF that previews the document - 
{{http://${alfresco.host}:${alfresco.port}/alfresco/service/api/node/%s/%s/%s/content/thumbnails/webpreview}}
* shareUrlPath - Returns a link to Alfresco Share document-details page - 
{{http://${share.host}:${share.port}/share/page/site/%s/document-details?nodeRef=%s}}

I think that the most correct URL to use would be {{contentUrlPath}}, since it 
is unique (for each document version), it does not rely on external 
applications (like for ShareUrlPath) and can be used in the browser.

Alfresco 4.2.3 have introduced a node browser within Alfresco interface, we may 
be able to introduce that shortly, in order to allow users to easily access 
properties and aspects of a node, instead of just getting the binaries (still 
need to check if it's available for the Community version though)

> Confirm Alfresco web-script connector content URL choice
> --------------------------------------------------------
>
>                 Key: CONNECTORS-1056
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-1056
>             Project: ManifoldCF
>          Issue Type: Task
>          Components: Alfresco webscript connector
>    Affects Versions: ManifoldCF 2.0
>            Reporter: Karl Wright
>            Assignee: Karl Wright
>             Fix For: ManifoldCF 2.0
>
>
> The choice of content URL for the alfresco webscript connector needs to be 
> confirmed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to