1
votes

I have investiagted Alfresco media-viewers project and also read a lot of documentation on WebScripts.

My idea is to create a Java-backed viewer for the Alfresco Share.

The underlying Java code will be a bit complicated - it has to handle additional URLs to load own resources form the bundle to use them.

The ideal solution is to integrate Java code as Spring Controller and handle URL mapping with @RequestMapping annotation (or through servlet-mapping xml node).

If someone know how Programming with Surf can be used in this case it also would be very helpful.

1

1 Answers

1
votes

Have you considered using CMIS to access the Alfresco resource? If your Java runtime will run in a separate process than the Alfresco installation (or on a separate machine) then the CMIS interface would let you do that.

You would write your Spring controller inside a Java web application and then access the documents and metadata using CMIS.

Take a look at Apache Chemistry. which is the CMIS client reference implementation.