Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
bala malasani
Auto Disabling users after certain days
January 24, 2013 6:31 AM
Answer

bala malasani

Rank: New Member

Posts: 20

Join Date: September 25, 2012

Recent Posts

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
January 25, 2013 3:05 AM
Answer

Rahul Pande

Rank: Regular Member

Posts: 220

Join Date: July 6, 2010

Recent Posts

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
January 25, 2013 5:46 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

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
January 25, 2013 5:51 AM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

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
January 25, 2013 6:03 AM
Answer

Siby Mathew

Rank: Expert

Posts: 259

Join Date: March 4, 2011

Recent Posts

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
January 25, 2013 12:37 PM
Answer

Apoorva Prakash

Rank: Liferay Master

Posts: 659

Join Date: June 15, 2010

Recent Posts

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
February 6, 2013 12:55 AM
Answer

bala malasani

Rank: New Member

Posts: 20

Join Date: September 25, 2012

Recent Posts

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 .