List of usage examples for com.liferay.portal.kernel.service RoleLocalServiceUtil hasGroupRoles
public static boolean hasGroupRoles(long groupId)
From source file:com.liferay.users.admin.web.internal.display.context.UserDisplayContext.java
License:Open Source License
public List<Group> getRoleGroups() throws PortalException { List<Group> allGroups = getAllGroups(); Stream<Group> stream = allGroups.stream(); stream = stream.filter(group -> RoleLocalServiceUtil.hasGroupRoles(group.getGroupId())); return stream.collect(Collectors.toList()); }