フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Roy Nahra
Documents and media file conversion
2012/04/17 23:14
答え

Roy Nahra

ランク: New Member

投稿: 14

参加年月日: 2012/04/02

最近の投稿

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
2012/04/17 23:53
答え

Prashant Deshpande

ランク: New Member

投稿: 17

参加年月日: 2010/06/17

最近の投稿

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
2012/04/18 1:30
答え

Roy Nahra

ランク: New Member

投稿: 14

参加年月日: 2012/04/02

最近の投稿

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
2012/04/18 1:56
答え

Prashant Deshpande

ランク: New Member

投稿: 17

参加年月日: 2010/06/17

最近の投稿

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/