I need to get all user groups from liferay portal, but UserGroupServiceUtil from it’s api has only method to get user groups of the specific user. I found method I need in persistence/UserGroupUtil – findAll(). But when I try to use it, I get an exception:
No Hibernate Session bound to thread, and configuration does not allow
creation of non-transactional one here.
I found that I need to write a facade to class with needed method – *ServiceImpl.
I don’t understand how to do this, could you help?
thanks
What about
from UserGroupLocalServiceUtil.
It returns all user groups for specified company. You can get company id from ThemeDisplay from your portlet request.