Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
bala malasani
Auto Disabling users after certain days
24 de Janeiro de 2013 06:31
Resposta

bala malasani

Ranking: New Member

Mensagens: 20

Data de entrada: 25 de Setembro de 2012

Mensagens 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.
Rahul Pande
RE: Auto Disabling users after certain days
25 de Janeiro de 2013 03:05
Resposta

Rahul Pande

Ranking: Expert

Mensagens: 308

Data de entrada: 6 de Julho de 2010

Mensagens 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
Hitoshi Ozawa
RE: Auto Disabling users after certain days
25 de Janeiro de 2013 05:46
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7949

Data de entrada: 23 de Março de 2010

Mensagens recentes

Google "liferay cron" to find how to schedule cron jobs. You can do it by specifying it in xml file or programmatically.
Apoorva Prakash
RE: Auto Disabling users after certain days
25 de Janeiro de 2013 05:51
Resposta

Apoorva Prakash

Ranking: Liferay Master

Mensagens: 659

Data de entrada: 15 de Junho de 2010

Mensagens 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
RE: Auto Disabling users after certain days
25 de Janeiro de 2013 06:03
Resposta

Siby Mathew

Ranking: Expert

Mensagens: 267

Data de entrada: 4 de Março de 2011

Mensagens 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
Apoorva Prakash
RE: Auto Disabling users after certain days
25 de Janeiro de 2013 12:37
Resposta

Apoorva Prakash

Ranking: Liferay Master

Mensagens: 659

Data de entrada: 15 de Junho de 2010

Mensagens 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
RE: Auto Disabling users after certain days
6 de Fevereiro de 2013 00:55
Resposta

bala malasani

Ranking: New Member

Mensagens: 20

Data de entrada: 25 de Setembro de 2012

Mensagens 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 .