Example usage for com.liferay.portal.kernel.service GroupLocalServiceUtil getOrganizationsGroups

List of usage examples for com.liferay.portal.kernel.service GroupLocalServiceUtil getOrganizationsGroups

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.service GroupLocalServiceUtil getOrganizationsGroups.

Prototype

public static java.util.List<com.liferay.portal.kernel.model.Group> getOrganizationsGroups(
        java.util.List<com.liferay.portal.kernel.model.Organization> organizations) 

Source Link

Document

Returns the specified organization groups.

Usage

From source file:com.liferay.users.admin.web.internal.display.context.UserDisplayContext.java

License:Open Source License

public List<Group> getAllGroups() throws PortalException {
    List<Group> allGroups = new ArrayList<>();

    allGroups.addAll(getGroups());/*  w w  w  .j  a va2 s.c o  m*/
    allGroups.addAll(getInheritedSites());
    allGroups.addAll(_getOrganizationRelatedGroups());
    allGroups.addAll(GroupLocalServiceUtil.getOrganizationsGroups(getOrganizations()));
    allGroups.addAll(GroupLocalServiceUtil.getUserGroupsGroups(getUserGroups()));

    return allGroups;
}