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

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

Introduction

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

Prototype

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

Source Link

Document

Returns all the groups related to the organizations.

Usage

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

License:Open Source License

private List<Group> _getOrganizationRelatedGroups() throws PortalException {
    List<Group> organizationsRelatedGroups = Collections.emptyList();
    List<Organization> organizations = getOrganizations();

    if (!organizations.isEmpty()) {
        organizationsRelatedGroups = GroupLocalServiceUtil.getOrganizationsRelatedGroups(organizations);
    }/*from ww w .  ja  va  2s .c om*/

    return organizationsRelatedGroups;
}