Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Roy Nahra
Documents and media file conversion
17 de abril de 2012 23:14
Respuesta

Roy Nahra

Ranking: New Member

Mensajes: 14

Fecha de incorporación: 2 de abril de 2012

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
RE: Documents and media file conversion
17 de abril de 2012 23:53
Respuesta

Prashant Deshpande

Ranking: New Member

Mensajes: 17

Fecha de incorporación: 17 de junio de 2010

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
RE: Documents and media file conversion
18 de abril de 2012 1:30
Respuesta

Roy Nahra

Ranking: New Member

Mensajes: 14

Fecha de incorporación: 2 de abril de 2012

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
RE: Documents and media file conversion
18 de abril de 2012 1:56
Respuesta

Prashant Deshpande

Ranking: New Member

Mensajes: 17

Fecha de incorporación: 17 de junio de 2010

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/