掲示板

Automation Liferay through Scripts

8年前 に Deepanshu Seth によって更新されました。

Automation Liferay through Scripts

Junior Member 投稿: 55 参加年月日: 15/10/12 最新の投稿
Hi,

Can we automate Liferay CE 6.2 GA6 through scripts like xml access? Are there any specific steps to do so

Regards,
Deepanshu Seth
thumbnail
8年前 に Olaf Kock によって更新されました。

RE: Automation Liferay through Scripts

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
Deepanshu Seth:
Can we automate Liferay CE 6.2 GA6 through scripts like xml access?


What's the problem you're trying to solve? Automate clicking on the UI, configuration of your instance? Installing a new or updated portal? Extending Liferay's default behaviour? Even if you choose one of these options: Give a specific story of what you're trying to achieve. We can always generalize from that one.

Yes, you can "automate". Which way to go depends on what you're trying to achieve.
8年前 に Deepanshu Seth によって更新されました。

RE: Automation Liferay through Scripts

Junior Member 投稿: 55 参加年月日: 15/10/12 最新の投稿
Hi Olaf,

We need to achieve the following through scripts: -

1. How to start/stop Portal server?
2. Export/Import pages, portlets, themes
3. Deploy portlets
4. Activate portlet etc.

The reason we want to do is to avoid logging to console and perform the activity.
thumbnail
8年前 に David H Nebinger によって更新されました。

RE: Automation Liferay through Scripts

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
1. This is not a portal function, it's an app server function.
2. If you have a lar file, I believe you can drop it in the deploy folder, but I might be thinking of the new version.
3. Drop the wars in the deploy folder.
4. Activate portlet? What does that mean?

So all of these things are console-level activities, they are not portal activities. The drops in the deploy folder can be done using scp to upload files and rsh to exec a script remotely.
8年前 に Deepanshu Seth によって更新されました。

RE: Automation Liferay through Scripts

Junior Member 投稿: 55 参加年月日: 15/10/12 最新の投稿
Yes David, I meant Application Server, but in IBM WebSphere Portal Server, we have scripts to Activate Portlet, Create Pages, Create Virtual Portal, etc. So, do we have something like that in Liferay, as we will be using Liferay over Linux.
thumbnail
8年前 に David H Nebinger によって更新されました。

RE: Automation Liferay through Scripts

Liferay Legend 投稿: 14916 参加年月日: 06/09/02 最新の投稿
Dude, that's a different product with a different feature set and a different implementation and a different set of goals.

Your websphere portal-specific stuff is not going to work under Liferay and your Liferay-specific stuff is not going to work under websphere portal.
8年前 に Deepanshu Seth によって更新されました。

RE: Automation Liferay through Scripts

Junior Member 投稿: 55 参加年月日: 15/10/12 最新の投稿
So, you mean to say that, we don't have such type of automation scripts in Liferay
thumbnail
8年前 に Olaf Kock によって更新されました。

RE: Automation Liferay through Scripts

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
The scripts themselves are not there, but all the scripting infrastructure is - meaning that you will have to write the scripts yourself.

As some of your intents have been outside of Liferay (e.g. in Appserver) you'll be able to use the infrastructure that's suitable for the job: Starting and stopping the portal, for example - as David said - is a function of your Appserver, the portal has nothing to say in there.

Liferay's API can be leveraged to access many of Liferay's functions - including Page/Content Export and Import. For scripting inside of the portal (not Appserver related) you might want to check out this app it even comes with a lot of samples..
8年前 に Deepanshu Seth によって更新されました。

RE: Automation Liferay through Scripts

Junior Member 投稿: 55 参加年月日: 15/10/12 最新の投稿
Thanks OIaf.