Fórum

Automation Liferay through Scripts

Deepanshu Seth, modificado 8 Anos atrás.

Automation Liferay through Scripts

Junior Member Postagens: 55 Data de Entrada: 12/10/15 Postagens Recentes
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
Olaf Kock, modificado 8 Anos atrás.

RE: Automation Liferay through Scripts

Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
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.
Deepanshu Seth, modificado 8 Anos atrás.

RE: Automation Liferay through Scripts

Junior Member Postagens: 55 Data de Entrada: 12/10/15 Postagens Recentes
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
David H Nebinger, modificado 8 Anos atrás.

RE: Automation Liferay through Scripts

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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.
Deepanshu Seth, modificado 8 Anos atrás.

RE: Automation Liferay through Scripts

Junior Member Postagens: 55 Data de Entrada: 12/10/15 Postagens Recentes
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
David H Nebinger, modificado 8 Anos atrás.

RE: Automation Liferay through Scripts

Liferay Legend Postagens: 14919 Data de Entrada: 02/09/06 Postagens Recentes
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.
Deepanshu Seth, modificado 8 Anos atrás.

RE: Automation Liferay through Scripts

Junior Member Postagens: 55 Data de Entrada: 12/10/15 Postagens Recentes
So, you mean to say that, we don't have such type of automation scripts in Liferay
thumbnail
Olaf Kock, modificado 8 Anos atrás.

RE: Automation Liferay through Scripts

Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
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..
Deepanshu Seth, modificado 8 Anos atrás.

RE: Automation Liferay through Scripts

Junior Member Postagens: 55 Data de Entrada: 12/10/15 Postagens Recentes
Thanks OIaf.