tsgrp / OpenContent

TSG's Web Services for ECM Repositories
8 stars 4 forks source link

Correcting Alfresco OC Support for adding renditions #50

Closed dgrumieaux closed 9 years ago

dgrumieaux commented 9 years ago

Currently, the Alfresco tsgModel property tsg:rendition supports only one rendition. This is assumed to be a PDF rendition by many behaviors and functions in OC. We can support renditions of other types by adding renditions to a node via the Alfresco ServiceRegistry's addRendition method. However, our AlfrescoEmbExtendedContentImpl#addRendition method simply sets the tsg:rendition property to the supplied content. Instead of doing this, we should be leveraging the ServiceRegistry's addRendition method so that we are not interfering with the autorenditioning and other PDF specific behavior inherent to the tsg:rendition expected functionality.

gsteimer commented 9 years ago

On further discussion, during the weekly meeting we thought we should:

dgrumieaux commented 9 years ago

Notes from yesterday's weekly meeting - there is already a tsg:doNotAutoRender aspect that is being honored in AlfrescoEmbUtil#transformNativeContentAsTSGRendition.

dgrumieaux commented 9 years ago

Given that this functionality already exists and has been tested, closing.