掲示板
Save json file in Liferay
Hi all! I have JSONArray object than I need save as .json file on server. Of course I can call
What is the best way to do this?
toJSONString()
and write to file. But what location of this file i should set to see that file in Documents and Media in Control Panel?What is the best way to do this?
10年前 に Joaquin Cabal によって更新されました。
RE: Save json file in Liferay
Regular Member 投稿: 106 参加年月日: 09/09/07 最新の投稿
Hi Alex,
Are you working on a portlet with this file?
If it is, you can crate a folder and then add the file with the DLFileEntryLocalServiceUtil service. You have to see the parameters you need to pass.
Hope this helps
Are you working on a portlet with this file?
If it is, you can crate a folder and then add the file with the DLFileEntryLocalServiceUtil service. You have to see the parameters you need to pass.
Hope this helps
10年前 に Alex Filia によって更新されました。
RE: Save json file in Liferay
New Member 投稿: 24 参加年月日: 13/04/15 最新の投稿Joaquin Cabal:
Hi Alex,
Are you working on a portlet with this file?
If it is, you can crate a folder and then add the file with the DLFileEntryLocalServiceUtil service. You have to see the parameters you need to pass.
Hope this helps
The problem is I haven't request and I don't know how get repositoryId and folderId params for DLAppServiceUtil.addFileEntry(...)
How I can get default value of repositoryId and folderId?
10年前 に Joaquin Cabal によって更新されました。
RE: Save json file in Liferay
Regular Member 投稿: 106 参加年月日: 09/09/07 最新の投稿
Hi Alex,
RepositoryId = scopeGroupId (in default liferay repository), and the folder you can obtein by name
Regards!
RepositoryId = scopeGroupId (in default liferay repository), and the folder you can obtein by name
Regards!