Example usage for com.liferay.portal.kernel.service UserGroupServiceUtil fetchUserGroup

List of usage examples for com.liferay.portal.kernel.service UserGroupServiceUtil fetchUserGroup

Introduction

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

Prototype

public static com.liferay.portal.kernel.model.UserGroup fetchUserGroup(long userGroupId)
        throws com.liferay.portal.kernel.exception.PortalException 

Source Link

Document

Fetches the user group with the primary key.

Usage

From source file:com.liferay.user.groups.admin.web.internal.portlet.action.ActionUtil.java

License:Open Source License

public static UserGroup getUserGroup(HttpServletRequest request) throws Exception {

    long userGroupId = ParamUtil.getLong(request, "userGroupId");

    UserGroup userGroup = null;/*ww  w. j  a v a  2s.  c o  m*/

    if (userGroupId > 0) {
        userGroup = UserGroupServiceUtil.fetchUserGroup(userGroupId);
    }

    return userGroup;
}