Example usage for com.liferay.portal.service.persistence.constants UserGroupFinderConstants PARAM_KEY_USER_GROUPS_GROUPS

List of usage examples for com.liferay.portal.service.persistence.constants UserGroupFinderConstants PARAM_KEY_USER_GROUPS_GROUPS

Introduction

In this page you can find the example usage for com.liferay.portal.service.persistence.constants UserGroupFinderConstants PARAM_KEY_USER_GROUPS_GROUPS.

Prototype

String PARAM_KEY_USER_GROUPS_GROUPS

To view the source code for com.liferay.portal.service.persistence.constants UserGroupFinderConstants PARAM_KEY_USER_GROUPS_GROUPS.

Click Source Link

Usage

From source file:com.liferay.site.admin.web.internal.display.context.SiteAdminDisplayContext.java

License:Open Source License

public int getUserGroupsCount(Group group) {
    LinkedHashMap<String, Object> userGroupParams = new LinkedHashMap<>();

    ThemeDisplay themeDisplay = (ThemeDisplay) _request.getAttribute(WebKeys.THEME_DISPLAY);

    Company company = themeDisplay.getCompany();

    userGroupParams.put(UserGroupFinderConstants.PARAM_KEY_USER_GROUPS_GROUPS, group.getGroupId());

    return UserGroupLocalServiceUtil.searchCount(company.getCompanyId(), null, userGroupParams);
}