Foros de discusión

Auto Disabling users after certain days

bala malasani, modificado hace 11 años.

Auto Disabling users after certain days

New Member Mensajes: 20 Fecha de incorporación: 25/09/12 Mensajes recientes
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 hace 11 años.

RE: Auto Disabling users after certain days

Expert Mensajes: 310 Fecha de incorporación: 7/07/10 Mensajes recientes
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 hace 11 años.

RE: Auto Disabling users after certain days

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
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 hace 11 años.

RE: Auto Disabling users after certain days

Liferay Master Mensajes: 658 Fecha de incorporación: 15/06/10 Mensajes recientes
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 hace 11 años.

RE: Auto Disabling users after certain days

Expert Mensajes: 268 Fecha de incorporación: 4/03/11 Mensajes recientes
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 hace 11 años.

RE: Auto Disabling users after certain days

Liferay Master Mensajes: 658 Fecha de incorporación: 15/06/10 Mensajes recientes
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 hace 11 años.

RE: Auto Disabling users after certain days

New Member Mensajes: 20 Fecha de incorporación: 25/09/12 Mensajes recientes
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 .