Example usage for com.liferay.portal.kernel.service UserGroupLocalServiceUtil hasUserUserGroups

List of usage examples for com.liferay.portal.kernel.service UserGroupLocalServiceUtil hasUserUserGroups

Introduction

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

Prototype

public static boolean hasUserUserGroups(long userId) 

Source Link

Usage

From source file:eu.gerhards.liferay.services.angular.service.impl.AngularUserGroupServiceImpl.java

License:Open Source License

@Override
public boolean hasUserUserGroups(long userId) throws PortalException {

    _log.info("Checking if team " + userId + " has user groups");

    _log.debug("    ... security check ... ");

    this.checkMultiplePersonalPermission(
            new String[] { AngularActionKeys.LIST_USERS, AngularActionKeys.LIST_USER_USER_GROUPS });

    TeamPermissionUtil.check(getPermissionChecker(), userId, ActionKeys.VIEW);

    _log.debug("    ... processing ... ");

    return UserGroupLocalServiceUtil.hasUserUserGroups(userId);
}