Fórum

Auto Disabling users after certain days

bala malasani, modificado 11 Anos atrás.

Auto Disabling users after certain days

New Member Postagens: 20 Data de Entrada: 25/09/12 Postagens Recentes
Hi all,
How to disable the users in liferay based on thair laslogindate through programming ,any suggetions or reference links available please provide to me.
thumbnail
Rahul Pande, modificado 11 Anos atrás.

RE: Auto Disabling users after certain days

Expert Postagens: 310 Data de Entrada: 07/07/10 Postagens Recentes
Hi,

You have to write a scheduler for it, which will execute say every EOD and checks all user's last login date and deactivate them based on the condition

HTH

Thanks
Rahul
thumbnail
Hitoshi Ozawa, modificado 11 Anos atrás.

RE: Auto Disabling users after certain days

Liferay Legend Postagens: 7942 Data de Entrada: 24/03/10 Postagens Recentes
Google "liferay cron" to find how to schedule cron jobs. You can do it by specifying it in xml file or programmatically.
thumbnail
Apoorva Prakash, modificado 11 Anos atrás.

RE: Auto Disabling users after certain days

Liferay Master Postagens: 658 Data de Entrada: 15/06/10 Postagens Recentes
bala malasani:
Hi all,
How to disable the users in liferay based on thair laslogindate through programming ,any suggetions or reference links available please provide to me.


Hello Bala,

You can use Liferay Portlet schedular, see this...

Hope this will help...

Thanks and Regards,
Apoorva Prakash
Siby Mathew, modificado 11 Anos atrás.

RE: Auto Disabling users after certain days

Expert Postagens: 268 Data de Entrada: 04/03/11 Postagens Recentes
Hi Apoorva,
I think an easier way is to use the message listener.
Check : http://liferayazam.wordpress.com/2012/06/10/create-a-scheduler-in-liferay-6/

Thanks,
Siby
thumbnail
Apoorva Prakash, modificado 11 Anos atrás.

RE: Auto Disabling users after certain days

Liferay Master Postagens: 658 Data de Entrada: 15/06/10 Postagens Recentes
Siby Mathew:
Hi Apoorva,
I think an easier way is to use the message listener.
Check : http://liferayazam.wordpress.com/2012/06/10/create-a-scheduler-in-liferay-6/

Thanks,
Siby


Yea Siby, it also seems a good option...

Thanks for sharing...
bala malasani, modificado 11 Anos atrás.

RE: Auto Disabling users after certain days

New Member Postagens: 20 Data de Entrada: 25/09/12 Postagens Recentes
Thanks for your help, as per the requirement i need to call procedure from portlet to disable users after certain days bassed on their lastlogin date value. how to call procedure from portlet? i wil write schedular for this portlet .