Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nilesh Gundecha
Get organization list with active site
May 5, 2012 3:24 AM
Answer

Nilesh Gundecha

Rank: Regular Member

Posts: 196

Join Date: November 30, 2009

Recent Posts

Hi All,

I want to retrieve the list of organizations whose site (group) is active. Whats the most optimum way to achieve this? I dont want to create group object for every organization object to check its active status.

Regards,
Nilesh
Amos Fong
RE: Get organization list with active site
May 8, 2012 11:01 PM
Answer

Amos Fong

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1897

Join Date: October 7, 2008

Recent Posts

Hi Nilesh,

GroupLocalServiceUtil.search() should be able to handle that query. You can pass the organization's classNameId and then params should be able to do active although I'm not sure what the key is.