掲示板
Generate services for existing portal source
11年前 に Namrata Hangal によって更新されました。
Generate services for existing portal source
Regular Member 投稿: 161 参加年月日: 10/07/27 最新の投稿
Hi,
Is it possible to generate services for existing classes in portal source code?
For example, I need to use the exportLayoutAsFile method in LayoutExporter. I don't see any class like LayoutExporterLocalServiceUtil that I can use to access that method.
What should be the procedure I need to follow to be able to access this method without a Permissions error?
Is it possible to generate services for existing classes in portal source code?
For example, I need to use the exportLayoutAsFile method in LayoutExporter. I don't see any class like LayoutExporterLocalServiceUtil that I can use to access that method.
What should be the procedure I need to follow to be able to access this method without a Permissions error?
11年前 に Michał Kolenda によって更新されました。
RE: Generate services for existing portal source
New Member 投稿: 2 参加年月日: 12/09/17 最新の投稿
Hi,
Try to use LayoutLocalServiceUtil's exportLayoutsAsFile method. It creates a new LayoutExporter object and calls its exportLayoutsAsFile method.
Try to use LayoutLocalServiceUtil's exportLayoutsAsFile method. It creates a new LayoutExporter object and calls its exportLayoutsAsFile method.
11年前 に Namrata Hangal によって更新されました。
RE: Generate services for existing portal source
Regular Member 投稿: 161 参加年月日: 10/07/27 最新の投稿
Hi Michal,
I did, in fact, use the LayoutLocalServiceUtil but at the end of execution, I get a .zip file instead of a .lar file.
So I thought maybe it's because I need to call a service on LayoutExporter itself?
Here's the link to my other thread (from where it started ) http://www.liferay.com/community/forums/-/message_boards/message/15973608
I did, in fact, use the LayoutLocalServiceUtil but at the end of execution, I get a .zip file instead of a .lar file.
So I thought maybe it's because I need to call a service on LayoutExporter itself?
Here's the link to my other thread (from where it started ) http://www.liferay.com/community/forums/-/message_boards/message/15973608
11年前 に Michał Kolenda によって更新されました。
RE: Generate services for existing portal source
New Member 投稿: 2 参加年月日: 12/09/17 最新の投稿
As far as I know, LAR files are actually ZIPs with .lar extensions.
11年前 に Namrata Hangal によって更新されました。
RE: Generate services for existing portal source
Regular Member 投稿: 161 参加年月日: 10/07/27 最新の投稿
Hmm.. maybe I can first export using my method and try importing it.
If Liferay rejects it, then it means that .lar is needed or there's something else missing
If Liferay rejects it, then it means that .lar is needed or there's something else missing