Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
bala malasani
Auto Disabling users after certain days
24. Januar 2013 06:31
Antwort

bala malasani

Rang: New Member

Nachrichten: 20

Eintrittsdatum: 25. September 2012

Neue Beiträge

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. Januar 2013 03:05
Antwort

Rahul Pande

Rang: Expert

Nachrichten: 308

Eintrittsdatum: 6. Juli 2010

Neue Beiträge

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. Januar 2013 05:46
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7949

Eintrittsdatum: 23. März 2010

Neue Beiträge

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. Januar 2013 05:51
Antwort

Apoorva Prakash

Rang: Liferay Master

Nachrichten: 659

Eintrittsdatum: 15. Juni 2010

Neue Beiträge

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. Januar 2013 06:03
Antwort

Siby Mathew

Rang: Expert

Nachrichten: 267

Eintrittsdatum: 4. März 2011

Neue Beiträge

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. Januar 2013 12:37
Antwort

Apoorva Prakash

Rang: Liferay Master

Nachrichten: 659

Eintrittsdatum: 15. Juni 2010

Neue Beiträge

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. Februar 2013 00:55
Antwort

bala malasani

Rang: New Member

Nachrichten: 20

Eintrittsdatum: 25. September 2012

Neue Beiträge

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 .