manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maurizio Pillitu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CONNECTORS-1056) Confirm Alfresco web-script connector content URL choice
Date Sun, 05 Oct 2014 12:25:33 GMT

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

Maurizio Pillitu edited comment on CONNECTORS-1056 at 10/5/14 12:25 PM:
------------------------------------------------------------------------

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://localhost:8080/alfresco/service/api/node/%s/%s/%s/content
* thumbnailUrlPath - Returns the thumbnail of the document - http://localhost:8080/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://localhost:8080/alfresco/service/api/node/%s/%s/%s/content/thumbnails/webpreview
* shareUrlPath - Returns a link to Alfresco Share document-details page - http://localhost:8080/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; unfortunately the contentUrlPath is not guaranteed to be present
(some nodes don't have a content binary attached to it).

shareUrlPath is guaranteed to be present, however, it could be of 2 different types, depending
whether the document is included into a site or not.

* http://localhost:8080/share/page/site/%s/document-details?nodeRef=%s
* http://localhost:8080/share/page/document-details?nodeRef=%s

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).

I will open issue on alfresco-indexer project and link it here.


was (Author: mauriziop):
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://localhost:8080/alfresco/service/api/node/%s/%s/%s/content
* thumbnailUrlPath - Returns the thumbnail of the document - http://localhost:8080/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://localhost:8080/alfresco/service/api/node/%s/%s/%s/content/thumbnails/webpreview
* shareUrlPath - Returns a link to Alfresco Share document-details page - http://localhost:8080/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)

Mime
View raw message