I have an existing Java web application with document and spreadsheet files in Microsoft Office format.
I want to provide Sharepoint-like edit online functionality to allow user to edit files in Word and Excel and save them to the server.
I try this with the edit link generated from Alfresco but it only works in IE.
So do I have to use some cross-browser library for ActiveXObject support?
Or is there any easy way to embed the document edit link from Alfresco into my web application?
And for the document to be accessible by the protocol:
Do I have to use Alfresco services to upload my documents?
Or can I embed Alfresco server or Alfresco's VTI Jetty server into my application to serve my documents?
EDIT
So there is not any cross-browser ActiveX
After read Alfresco's action.js, I find out that there is something called Sharepoint plugin.
I have no problem generating the edit link now
EDIT 2
Microsoft Office works fine with normal WebDAV server, so there is no need for embedding Alfresco in my web application
There should be no need for any special code within the browser. As Gagravarr said, the links should work fine when Office is installed on the client.
Although it can be done, most likely you do not want to embed an Alfresco repository (with or without Jetty) within your application and use its CMIS and/or RESTful HTTP interfaces to work on content. Embedding a repository means introducing various dependencies. I see no reasoning in your scenario.
Related
OK, here are some more details. I need to remove/replace Alfresco from a Java application, the content that Alfresco manages is some HTML and some PDFs. My team wants to move the content to a remote website that runs with Drupal.
So is there a supported way to have my Java application retrieve the content from alfresco and move it to Drupal? Thanks in advance.
Drupal 8 provides RESTful Web Services which you can use to retrieve data from the Drupal site into your Java application. A similar feature exists for Drupal 7 with the RESTful module.
You also have the Services module, available for both Drupal 8 and 7 and providing a different Web Service interface
It sounds like you are trying to permanently remove Alfresco from your solution. To do that, you'll need to export the HTML and PDFs out of the Alfresco repository and make those available to Drupal. As mitpatoliya suggests, there are multiple approaches to getting the files out of Alfresco, including FTP and WebDAV. You could also use OpenCMIS to write a little Java application that will grab the files out of Alfresco and write them somewhere.
It's not clear from your question whether or not your Alfresco objects have custom metadata. If they do, and Drupal needs to know about it, you'll need more than the binary files exported out of Alfresco. You'll also need property values from those objects. The advantage to using OpenCMIS to do the export is that you can use it to read the metadata stored about the files and then write that to a CSV or some other format for loading into Drupal.
Now that you have all of the files and potentially metadata copied out of Alfresco you need to import that into Drupal. But Drupal's model is completely different from Alfresco, so how you do that will depend very much on how your Drupal site was built. Your binary files might not go into Drupal at all but will instead be served up as static assets, for example. Or you might need to take some of that metadata you exported out of Alfresco and create Drupal nodes.
If you need to create those Drupal nodes programmatically and you have to use Java, you might want to look at Drupal's RESTful module and just use an HTTP client from your Java code to make calls against endpoints that create the nodes. But there are many ways to go about this.
If you only have some HTML and PDF files which are stored in alfresco and you do not want to pull any metadata then you can just get all your contents from alfresco via FTP or Webdev and then dump it to your Drupal site.
There are Alfresco Drupal connector available but It is not required in your case because you just want to migrate data one time right?
Im currently looking to implement a document repository for a web application (i.e. a user opens a document and saves it directly on a server). I've done some research and found WebDAV that has support for this (www.webdav.org).
However, WebDAV seems to lack firefoxsupport unless you download and use a extention. I'm looking for a way to accomplish this without the need for a 3rd party extention
Questions:
How can this be accomplished with webDAV without a 3rd party extention?
Is there another lib/way to accomplish this?
John, thats right you can launch documents in the appropriate editor (eg Word, Excel) directly from IE but to do the same in FF or Chrome requires some sort of extension.
Note that with webdav your users can browse for documents on the server as if they are on a normal drive, and open them using normal tools such as windows explorer or the file open dialog.
I routinely assist customers implementing this with my webdav server library product - http://milton.io
In Spring Framework you can enable support for multipart upload and then just use the standard java form upload functionality from any web browser to upload the document to your web server.
For my Java project I need to embed a web server to provide various web pages to the user. Until now we used the "official" com.sun.net.httpserver.HttpServer class, which basically works fine.
However, now we want to extend our application in order to not only serve static HTML pages via the embeded HTTP server, but also dynamic content (PHP if possible).
Any recommendations?
EDIT: Nevermind, I found it quite easy to integrate Jython within my Java application :)
I am trying to create a web application which will allow the user to upload a file. The file will be encrypted and transferred to a web service via SOAP. The web service will carry out simple operations such as 'storeFileToCloud(byte[])' and 'downloadFile(string)'.
So far, using Google App Engine, I have created the web services, however, I'm not sure how to encode the file using SOAP. I've also created the form for the user to upload his/her file, but I'm stuck on what to do after this. Any tips or guides will be extremely helpful.
The tools I'm using include Java, Google App Engine and Eclipse Indigo.
JAX-RPC uses xsd:base64Binary. See the JAX-RPC Spec, chapter 10. You could probably do worse than copying them. Be aware that the size of the data will expand by about 33%.
I am looking for a java based CMS that exposes an API for external file upload.
So for instance I have a Tomcat server with a running CMS. I also have a (standalone) client that needs to add content to the CMS automatically (without user interference).
I already looked into Liferay (using Jackrabbit) but there is no way to upload documents/files from a client.
Does anyone know of a java CMS where this is possible ?
Thanks!
Coenos
If you are ready to take time in coding then you could make use of Liferay webservices to create a client yourself. Liferay exposes its core api as web service, using which you can do most of the things. To see the list of services that Liferay exposes check this url
http://localhost:8080/tunnel-web/axis
Replace localhost:8080 with yours.
To know more about this check out this wiki link
http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Web+services+-+Manage+Users,+Organizations,+User+Groups,+and+Roles+via+SOAP