Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ketkee A
to get all organization in liferay portal
March 12, 2012 2:45 AM
Answer

Ketkee A

Rank: Junior Member

Posts: 78

Join Date: March 10, 2011

Recent Posts

Hi all,

I want to get the list of ALL organizations that have been added to the Liferay Portal.

I do not have any parameters with me to fetch the organizations.. for example: userId, orgId etc..

I just want the entire list of organizations.. how to fetch it?

any idea?

Please help!

--Ketkee
Jelmer Kuperus
RE: to get all organization in liferay portal
March 12, 2012 2:50 AM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

1OrganizationLocalServiceUtil.getOrganizations(QueryUtil.ALL_POS,QueryUtil.ALL_POS)
Ketkee A
RE: to get all organization in liferay portal
March 12, 2012 10:57 PM
Answer

Ketkee A

Rank: Junior Member

Posts: 78

Join Date: March 10, 2011

Recent Posts

Hi jelmer kuperus,

Thank you. works.

One more question. I had added some users to Liferay Portal. later, I deactivated them. but since I did that I started getting NoSuchUserException. so I had to go and add users with given userId in the exception so that the user may be found.

but now what happens is that when I click on Users through Control Panel, I am not getting the list of users. I get it only when I search for a user. I get this exception:

Current URL /group/control_panel/manage?p_p_id=125&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&doAsGroupId=10136&refererPlid=23105 generates exception: java.lang.NullPointerException

Can you please help me resolve this?

--Ketkee
Jitendra Rajput
RE: to get all organization in liferay portal
March 12, 2012 11:05 PM
Answer

Jitendra Rajput

Rank: Liferay Master

Posts: 858

Join Date: January 7, 2011

Recent Posts

Re-index all search indexes from Control Pannel -- > Server Administration and then try.

And clear Database cache as well.