Foros de discusión

Documents and media file conversion

Roy Nahra, modificado hace 11 años.

Documents and media file conversion

New Member Mensajes: 14 Fecha de incorporación: 3/04/12 Mensajes recientes
Hi All,

I want to automatically convert a file while adding it in the documents and media portlet.
I already made the Open Office integration within liferay and it works.
But i need to control the document's format while uploading it to the portlet.

Any suggestions?

thanks.
prashant deshpande, modificado hace 11 años.

RE: Documents and media file conversion

New Member Mensajes: 16 Fecha de incorporación: 17/06/10 Mensajes recientes
Files are added in
"updateFileEntry" method in "com.liferay.portlet.documentlibrary.action.EditFileEntryAction" class

fileEntry = DLAppServiceUtil.addFileEntry(
repositoryId, folderId, sourceFileName, contentType, title,
description, changeLog, inputStream, size, serviceContext);

above code makes file entry, try to UPDATE same fileEntry Object by setting

public void setExtension(String extension);
public void setMimeType(String mimeType);

and using "updateDLFileEntry()" from "com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil" class
Roy Nahra, modificado hace 11 años.

RE: Documents and media file conversion

New Member Mensajes: 14 Fecha de incorporación: 3/04/12 Mensajes recientes
Thanks for you response,

I searched for the mentioned class, and i found several classes related to the document library such as "upload_005fmultiple_005ffile_005fentries_jsp.java".
But i didn't find the "EditFileEntryAction" class.

Where can i find it?
prashant deshpande, modificado hace 11 años.

RE: Documents and media file conversion

New Member Mensajes: 16 Fecha de incorporación: 17/06/10 Mensajes recientes
If you have portal src code then you can get this class in
"/portal-impl/src/" Its a struts action class.
You cal override this class using plugin-ext/docroot/WEB-INF/ext-impl/