[ 
https://jira.nuxeo.org/browse/DAM-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=71134#action_71134
 ] 

Olivier Grisel commented on DAM-471:
------------------------------------

Here is a code snippet to gain access to the binary manager to be able to 
transform digest into FS location on the server:

    BinaryManager getBinaryManager(String repositoryName) throws [TODO: list 
the actual Exceptions here] {
        if (binaryManager == null) {
                RepositoryService repositoryService = (RepositoryService) 
Framework.getRuntime().getComponent(RepositoryService.NAME);
                RepositoryManager repositoryManager = 
repositoryService.getRepositoryManager();
                org.nuxeo.ecm.core.repository.RepositoryDescriptor descriptor = 
repositoryManager.getDescriptor(repositoryName);
                binaryManager = new 
BinaryManager(SQLRepository.getDescriptor(descriptor));
        }
        return binaryManager;
    }

You will have to further add a "public Binary getBinary()" method on the 
SQLBlob class to get the backend digest and hence the real filename from a blob 
read from the VCS store.

> Integrate Darwin Server with DAM first without the hint transformer
> -------------------------------------------------------------------
>
>                 Key: DAM-471
>                 URL: https://jira.nuxeo.org/browse/DAM-471
>             Project: Nuxeo DAM
>          Issue Type: Sub-task
>            Reporter: Benjamin Jalon
>            Assignee: Delphine Renevey
>
> - Add an extension point to give the RTSP server URL.
> -  Modify preview to use RTSP player to play main file video of the document 
> from DSS (without checking if is hinted first)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to